console-kit-daemon Glib-CRITICAL warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
consolekit (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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 (say a few hundreds of lines) in an ssh session, and the second the command completes, and the shell displays a new prompt, the shell 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-
Apr 21 18:15:25 xx console-
Apr 21 18:15:25 xx console-
The Source ID numbers vary, but the warnings always come in triplets at the time of the hang. I was able to reproduce this about 10 times today. Every time the session hangs, these warnings appear in the log and vice versa: every time they appear in the log, I have a hanged remote session.
A quote from an upstream (bugzilla.
https:/
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.
tags: |
added: consolekit removed: konsolekit |
affects: | gnome-control-center (Ubuntu) → consolekit (Ubuntu) |
description: | updated |
information type: | Private Security → Public Security |
Changed in consolekit (Ubuntu): | |
status: | New → Confirmed |
summary: |
- console-kit-daemon related ssh session hang w/ Glib-CRITICAL warning + console-kit-daemon session hang (sometimes w/ Glib-CRITICAL warning) |
summary: |
- console-kit-daemon session hang (sometimes w/ Glib-CRITICAL warning) + console-kit-daemon Glib-CRITICAL warning |
tags: |
added: amd64 i386 saucy trusty removed: consolekit libglib2 ssh |
Asked two other users to ssh remotely to my server and noted that the GLib error can also appear on a normal session close (exit the shell) . This is more evidence that the Glib-CRITICAL error is a symptom rather than the cause of the ssh-hang bug. It is also evidence that both successful and buggy-hang session-closes are all resulting in the GLib-CRITICAL error.
In the (no hang) cases, I see only two GLib-CRITICAL errors, as opposed to 3.
Apr 26 02:24:43 go sshd[29233]: pam_unix( sshd:session) : session opened for user zzzz by (uid=0) logind[ 607]: New session 143 of user zzzz. logind[ 607]: Removed session 142. kit-daemon[ 3357]: GLib-CRITICAL: Source ID 4207 was not found when attempting to remove it sshd:session) : session closed for user zzzz
Apr 26 02:24:43 go systemd-
Apr 26 02:24:43 go systemd-
[...session without issues and no hang until exit happens here...]
Apr 26 02:25:15 go console-
Apr 26 02:25:15 go sshd[29233]: pam_unix(
Apr 26 02:25:15 go sshd[29285]: Received disconnect from w.x.y.z: disconnected by user