aptdaemon kills all my processes 10 minutes after starting an upgrade

Bug #446534 reported by David Gnedt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptdaemon (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: aptdaemon

$ lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10

$ apt-cache policy aptdaemon
aptdaemon:
  Installiert: 0.10+bzr258-0ubuntu1
  Kandidat: 0.10+bzr258-0ubuntu1
  Versions-Tabelle:
 *** 0.10+bzr258-0ubuntu1 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

I started the upgrade process through update-manager.
When the upgrade takes longer than 10 minutes, aptdaemon kills all processes of the current user exactly 10 minutes after the upgrade was started.

Furthermore I found the following messages in /var/log/syslog:
Oct 8 18:45:56 r00t-desktop AptDaemon.Worker: CRITICAL: Killing child since timeout of 600 s
Oct 8 18:45:56 r00t-desktop modem-manager: Caught signal 15, shutting down...
Oct 8 18:45:56 r00t-desktop avahi-daemon[968]: Disconnected from D-Bus, exiting.
Oct 8 18:45:56 r00t-desktop avahi-daemon[968]: Got SIGQUIT, quitting.
Oct 8 18:45:56 r00t-desktop avahi-daemon[968]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.10.226.
Oct 8 18:45:56 r00t-desktop NetworkManager: <info> disconnected by the system bus.
Oct 8 18:45:56 r00t-desktop console-kit-daemon[1086]: WARNING: no sender#012
Oct 8 18:45:56 r00t-desktop NetworkManager: no sender
Oct 8 18:45:56 r00t-desktop init: Disconnected from system bus
Oct 8 18:45:56 r00t-desktop init: dbus main process ended, respawning
Oct 8 18:45:56 r00t-desktop init: avahi-daemon main process (968) terminated with status 255
Oct 8 18:45:56 r00t-desktop init: avahi-daemon main process ended, respawning
Oct 8 18:45:56 r00t-desktop init: network-manager main process (1236) terminated with status 1
Oct 8 18:45:58 r00t-desktop dbus-daemon: Reloaded configuration
Oct 8 18:46:01 r00t-desktop gdm-simple-slave[23101]: WARNING: Unable to load file '/etc/gdm/custom.conf': No such file or directory
Oct 8 18:46:01 r00t-desktop acpid: client 1337[108:115] has disconnected
Oct 8 18:46:01 r00t-desktop acpid: client 1299[0:0] has disconnected
Oct 8 18:46:01 r00t-desktop acpid: client connected from 23102[0:0]
Oct 8 18:46:01 r00t-desktop bonobo-activation-server (r00t-23123): could not associate with desktop session: Failed to connect to socket /tmp/dbus-CDDVovhxzn: Connection refused
[...]

/var/log/apt/term.log says:
Log started: 2009-10-08 18:35:55
[...]
(Lese Datenbank ... 226965 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereiten zum Ersetzen von linux-image-2.6.31-12-generic 2.6.31-12.40 (durch .../linux-image-2.6.31-12-generic_2.6.31-12.41_amd64.deb) ...
Done.
Entpacke Ersatz für linux-image-2.6.31-12-generic ...
Running postrm hook script /usr/sbin/update-grub.
[...]
Richte mesa-utils ein (7.6.0-1ubuntu1) ...
Verarbeite Trigger für libc-bin ...
ldconfig deferred processing now taking place
Log ended: 2009-10-08 18:46:23

Now some guesses:
I think that the bug must be in the class DaemonInstallProgress in progress.py and that child_pid has to be set correctly since it is only initialised with 0. Furthermore last_activity should be updated properly as it is only updated on start, when start_time is also updated.

ProblemType: Bug
Architecture: amd64
Date: Thu Oct 8 19:33:31 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: fglrx
Package: aptdaemon 0.10+bzr258-0ubuntu1
PackageArchitecture: all
ProcEnviron:
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.41-generic
SourcePackage: aptdaemon
Uname: Linux 2.6.31-12-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:2593): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2593): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2678): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2743): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
David Gnedt (lxp13) wrote :
Revision history for this message
David Gnedt (lxp13) wrote :

Problem also applies to 0.10+bzr259-0ubuntu1

$ apt-cache policy aptdaemon
aptdaemon:
  Installiert: 0.10+bzr259-0ubuntu1
  Kandidat: 0.10+bzr259-0ubuntu1
  Versions-Tabelle:
 *** 0.10+bzr259-0ubuntu1 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
pablomme (pablomme) wrote :

I saw this a couple of days ago on a Dell Mini 9. Something killed all the desktop apps during an upgrade involving many packages. This forced me to hard-reset the machine, boot into the half-upgraded system and fix the mess from one of the VTs. Very annoying if it indeed happens systematically.

Changed in aptdaemon (Ubuntu):
status: New → Confirmed
Changed in aptdaemon (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package aptdaemon - 0.10+bzr260-0ubuntu1

---------------
aptdaemon (0.10+bzr260-0ubuntu1) karmic; urgency=low

  [ Sebastian Heinlein ]
  * Merge fix for killing randomly user processes on hung dpkg
    operations - fixes LP: #446534

 -- Michael Vogt <email address hidden> Mon, 12 Oct 2009 17:20:15 +0200

Changed in aptdaemon (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
dino99 (9d9) wrote :

just received this in daemon.log in Lucid:

console-kit-daemon[1075]: WARNING: no sender

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.