[Pkg-utopia-maintainers] Bug#562026: Bug#562026: [PATCH] Re: Bug#562026: kdm cannot open ConsoleKit session on first login attempt

Michael Biebl biebl at debian.org
Thu Dec 31 00:17:00 UTC 2009


George Kiagiadakis wrote:
> reassign 562026 consolekit 0.4.1-2
> tags 562026 + patch
> thanks
> 
> After some hours of debugging, I finally found the cause of this bug. It is a 
> race condition, so no wonder why it is only reproducable on some systems.
> 
> What happens is:
> 1) kdm (or whatever else, I can even reproduce the bug with dbus-send) tries 
> to call a method from the /org/freedesktop/ConsoleKit/Manager object, using 
> the org.freedesktop.ConsoleKit.Manager interface.
> 2) ConsoleKit is not running, so dbus-daemon activates it.
> 3) console-kit-daemon starts and registers the service.
> 4) dbus-daemon recognizes the service registration, tries to find the Manager 
> object, fails, returns error.
> 5) console-kit-daemon registers the Manager object at the same time that dbus-
> daemon returns the error.
> 
> Second call to the same method obviously succeeds.
> Now if you are lucky the kernel scheduler gives some more time to console-kit-
> daemon before it switches back to executing dbus-daemon code, it will succeed. 
> I guess there was a change in the scheduler of linux 2.6.32 that made this bug 
> more easy to spot.
> 
> So, I have modified console-kit-daemon a bit, so that it registers Manager 
> before it registers the service name and it works fine. Patch attached.

Hi,

upstream already has a fix for this in current Git master:
http://cgit.freedesktop.org/ConsoleKit/commit/?id=2418840248f07025ad0edc96ed17e03ce5e47f3e

I would prefer to pull the patch from upstream Git.
Can you confirm that the above patch also works for you?

Michael



-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20091231/573d3a74/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list