Comment 0 for bug 1313042

Revision history for this message
Ariel Faigon (ariel.faigon) wrote : console-kit-daemon related ssh session hang w/ Glib-CRITICAL warning

The day I upgraded from 13.10 to 14.04 some of my ssh sessions into the new system (server side is Ubuntu 14.04) started hanging.
The symptom is: I run some command with a lot of output in an ssh session, and the second the command completes and the shell displays a new prompt, it stops responding to keyboard input.

At the exact time of the hang (to the second) I always see these 3 warnings in syslog:

Apr 21 18:15:25 xx console-kit-daemon[3357]: GLib-CRITICAL: Source ID 469 was not found when attempting to remove it
Apr 21 18:15:25 xx console-kit-daemon[3357]: GLib-CRITICAL: Source ID 86 was not found when attempting to remove it
Apr 21 18:15:25 xx console-kit-daemon[3357]: GLib-CRITICAL: Source ID 86 was not found when attempting to remove it

A quote from an upstream (bugzilla.gnome.org) comment:

https://bugzilla.gnome.org/show_bug.cgi?id=721369

    GLib recently started throwing a warning when g_source_remove()
    is passed garbage (as per warning). Your applications have probably been broken
    for a while, and there's no telling what could actually have happened in the
    past when g_source_remove() would happily close any random source because the
    programmer got the wrong argument to g_source_remove().

So based on this I'm opening a bug against consolekit for bad calls to g_source_remove() which seem to be related to the ssh hang.