Your message dated Fri, 05 Dec 2008 01:02:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#507815: fixed in consolekit 0.2.10-3
has caused the Debian Bug report #507815,
regarding consolekit: race condition during D-Bus activation
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
507815: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507815
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: consolekit
Version: 0.2.10-2
Severity: normal

Hello,

on a system where ConsoleKit is only used sporadically, a race condition
caused by the interaction between D-Bus' activation code and
console-kit-daemon's backgrounding has surfaced.

If console-kit-daemon backgrounds quickly enough that the D-Bus code hasn't
returned to the caller yet, the caller receives the error "Launch helper
exited with unknown return code 0".

This can be demonstrated by the attached python script.

  $ sudo killall /usr/sbin/console-kit-daemon
  $ ./test-ck
  Unable to use PackageKit: org.freedesktop.DBus.Error.Spawn.ChildExited:
  Launch helper exited with unknown return code 0

(You might need to repeat the above steps a few times to reproduce.)

To avoid the race condition, the following change simply disables the
backgrounding in console-kit-daemon for the D-Bus activation case:

--- /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service 
2008-12-04 18:17:43.000000000 +0100
+++ /usr/share/dbus-1/system-services/org.freedesktop.ConsoleKit.service 
2008-12-04 18:17:34.000000000 +0100
@@ -1,4 +1,4 @@
 [D-BUS Service]
 Name=org.freedesktop.ConsoleKit
-Exec=/usr/sbin/console-kit-daemon
+Exec=/usr/sbin/console-kit-daemon --no-daemon
 User=root

The alternative would be to fix D-Bus to assume return code 0 is fine, as long
as someone continues to provide the requested service. So maybe this is a bug
in D-Bus and not in ConsoleKit.

Cheers, Fabian

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 2.6.18-6-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages consolekit depends on:
ii  dbus                   1.2.1-4           simple interprocess messaging syst
ii  libc6                  2.7-16            GNU C Library: Shared libraries
ii  libck-connector0       0.2.10-2          ConsoleKit libraries
ii  libdbus-1-3            1.2.1-4           simple interprocess messaging syst
ii  libdbus-glib-1-2       0.76-1            simple interprocess messaging syst
ii  libglib2.0-0           2.16.6-1          The GLib library of C routines
ii  libx11-6               2:1.1.5-2         X11 client-side library
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages consolekit recommends:
pn  libpam-ck-connector           <none>     (no description available)

consolekit suggests no packages.

-- no debconf information
#!/usr/bin/python

import dbus
import sys

try:
    bus = dbus.SystemBus()
except dbus.DBusException, e:
    print 'Unable to connect to dbus: %s' % str(e)
    sys.exit()

try:
    proxy = bus.get_object('org.freedesktop.ConsoleKit', '/org/freedesktop/ConsoleKit')
    iface = dbus.Interface(proxy, 'org.freedesktop.ConsoleKit.Manager')
    print 'It worked.'
except dbus.DBusException, e:
    print 'Unable to use PackageKit: %s' % str(e)

--- End Message ---
--- Begin Message ---
Source: consolekit
Source-Version: 0.2.10-3

We believe that the bug you reported is fixed in the latest version of
consolekit, which is due to be installed in the Debian FTP archive:

consolekit_0.2.10-3.diff.gz
  to pool/main/c/consolekit/consolekit_0.2.10-3.diff.gz
consolekit_0.2.10-3.dsc
  to pool/main/c/consolekit/consolekit_0.2.10-3.dsc
consolekit_0.2.10-3_i386.deb
  to pool/main/c/consolekit/consolekit_0.2.10-3_i386.deb
libck-connector-dev_0.2.10-3_i386.deb
  to pool/main/c/consolekit/libck-connector-dev_0.2.10-3_i386.deb
libck-connector0_0.2.10-3_i386.deb
  to pool/main/c/consolekit/libck-connector0_0.2.10-3_i386.deb
libpam-ck-connector_0.2.10-3_i386.deb
  to pool/main/c/consolekit/libpam-ck-connector_0.2.10-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <[EMAIL PROTECTED]> (supplier of updated consolekit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 05 Dec 2008 01:28:46 +0100
Source: consolekit
Binary: consolekit libck-connector0 libck-connector-dev libpam-ck-connector
Architecture: source i386
Version: 0.2.10-3
Distribution: unstable
Urgency: low
Maintainer: Utopia Maintenance Team <[EMAIL PROTECTED]>
Changed-By: Michael Biebl <[EMAIL PROTECTED]>
Description: 
 consolekit - framework for defining and tracking users, sessions and seats
 libck-connector-dev - ConsoleKit development files
 libck-connector0 - ConsoleKit libraries
 libpam-ck-connector - ConsoleKit PAM module
Closes: 507815
Changes: 
 consolekit (0.2.10-3) unstable; urgency=low
 .
   * debian/patches/04-defer_daemonizing.patch
     - Daemonize after registering the dbus name to avoid a race condition
       where dbus-daemon thinks that console-kit-daemon has failed to start
       properly and returns an error to the caller. (Closes: #507815)
   * Document all patches to make lintian happy.
Checksums-Sha1: 
 38911e924347bb564cbe2bbcc5dba6ed137330f2 1484 consolekit_0.2.10-3.dsc
 0d8de9eedf563016e292650a30e42b8ca4eac5fc 7261 consolekit_0.2.10-3.diff.gz
 7da7784c81721b9c5a5afaa1d71a0107e856dbca 125694 consolekit_0.2.10-3_i386.deb
 5e6c626ec22be7c15d655d24f02530f287deaa14 41082 
libck-connector0_0.2.10-3_i386.deb
 f48b0a5fb8c00d7df06ec2f765f7db0bb4b390e2 48534 
libck-connector-dev_0.2.10-3_i386.deb
 d526e206b0740cee1747f71ba1c3678abdb797ca 41322 
libpam-ck-connector_0.2.10-3_i386.deb
Checksums-Sha256: 
 18b37209e14b4e7bc2f8fdba943362d245c7b785f620e1a38e62fee77f85b934 1484 
consolekit_0.2.10-3.dsc
 508af3a1d3afc115558b47814ce372cac845ae3768d5fe43d4df028c9bc4ab85 7261 
consolekit_0.2.10-3.diff.gz
 c1a8c17e1b274ee14524038a9e37cbb938ee5a7267190e21b3adbc35bd9cf7fa 125694 
consolekit_0.2.10-3_i386.deb
 12211da7dc302bd22b952a5775cf7dc6234989a7e293fcf7cb93272f3cfae550 41082 
libck-connector0_0.2.10-3_i386.deb
 0168c2820c387ca86becc481a0f202e571ea2f9e24b3f8a4c6a296c6ef4eda7e 48534 
libck-connector-dev_0.2.10-3_i386.deb
 1cde0914c4d159e8ac02c0c7f816d388ced225a2c13673a86c4e437397332746 41322 
libpam-ck-connector_0.2.10-3_i386.deb
Files: 
 fd14b430ba49c1506218865e776e0911 1484 admin optional consolekit_0.2.10-3.dsc
 fca032c72643cd2f76d886505273b334 7261 admin optional 
consolekit_0.2.10-3.diff.gz
 2264c0bc8d0621e1356509f0b48ef222 125694 admin optional 
consolekit_0.2.10-3_i386.deb
 e2706f2b1e3a3f263eb51bc260be5aba 41082 libs optional 
libck-connector0_0.2.10-3_i386.deb
 93a8770a182cbff28585b20768a41f47 48534 libdevel optional 
libck-connector-dev_0.2.10-3_i386.deb
 d5b39afa208a3593dc579dcb06ae0fac 41322 admin optional 
libpam-ck-connector_0.2.10-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkk4efgACgkQh7PER70FhVSzdgCgrgxti3Xscl/JJvykp2va4tgp
8w8AniX/sFNHekowwMbuvdcIDyegyUQS
=ICcL
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to