handle interruped read and write calls

Bug #1648637 reported by Alberts Muktupāvels on 2016-12-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Light Display Manager
High
Unassigned
1.10
High
Unassigned
1.18
High
Unassigned
1.2
High
Unassigned
1.20
High
Unassigned
lightdm (Ubuntu)
Status tracked in Zesty
Precise
Undecided
Unassigned
Trusty
Undecided
Unassigned
Xenial
Undecided
Unassigned
Yakkety
Undecided
Unassigned
Zesty
Undecided
Unassigned

Bug Description

Use SA_RESTART flag to make sure that interrupted calls to read and/or write are restarted.

In my case read is interrupted when reading login1_session_id. Result of not handling EINTR error is that login1_session_id is set to NULL and console_kit_cookie gets login1 session id.

Related warnings in lightdm.log:
[+0.44s] WARNING: Session pid=617: Error reading from session: Interrupted system call
[+0.70s] DEBUG: Activating VT 7
[+0.70s] DEBUG: Activating ConsoleKit session c1
[+0.70s] WARNING: Error getting ConsoleKit session: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files

And because login1_session_id is null fix for 1637758 bug does not work.

Changed in lightdm:
status: New → Triaged
importance: Undecided → High
description: updated
Changed in lightdm:
status: Triaged → Fix Committed
Changed in lightdm:
milestone: none → 1.21.2
status: Fix Committed → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lightdm - 1.21.3-0ubuntu1

---------------
lightdm (1.21.3-0ubuntu1) zesty; urgency=medium

  * New upstream release:
    - Fix crashes introduced in 1.21.2 due to environment variable changes
    - Fix incorrect unref in XDMCP server code
    - Fix logging warning

 -- Robert Ancell <email address hidden> Fri, 09 Dec 2016 14:04:49 +1300

Changed in lightdm (Ubuntu Zesty):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers