Bug 561281

Summary: chvt 1 hangs, system fails to halt
Product: [openSUSE] openSUSE 11.2 Reporter: Stanislav Brabec <sbrabec>
Component: BasesystemAssignee: Shuang Qiu <sqiu>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo.lst

Description Stanislav Brabec 2009-12-07 09:27:48 UTC
My system sometimes fail to halt. It happens in about 20-30% of cases.

How to reproduce: Start GNOME, Shutdown from the menu

Actual behavior: Session logs-out, halt does not continue

Work-around: Ctrl+Alt+F1 (really, only pressing this key combination will finish the halt)

Shutdown was called at about 08:13:10.
Ctrl+Alt+F1 was pressed at about 08:34:17.


Syslog:

Dec  7 08:13:10 utx shutdown[3810]: shutting down for system halt
Dec  7 08:13:11 utx gdm-session-worker[3273]: pam_env(gdm:setcred): non-alphanumeric key 'alias aumix=padsp aumix' in /etc/env
ironment', ignoring
Dec  7 08:13:11 utx gdm-session-worker[3273]: pam_env(gdm:setcred): non-alphanumeric key 'alias sox=padsp sox' in /etc/environ
ment', ignoring
Dec  7 08:13:11 utx gdm-session-worker[3273]: pam_env(gdm:setcred): non-alphanumeric key 'alias timidity=timidity -Oe' in /etc
/environment', ignoring
Dec  7 08:13:12 utx kernel: [  417.523837] Xorg:2820 freeing invalid memtype f0102000-f0106000
... many nearly identical lines skipped ...
Dec  7 08:13:12 utx kernel: [  417.539587] Xorg:2820 freeing invalid memtype f02fe000-f0302000
Dec  7 08:13:12 utx kernel: [  417.565372] mtrr: no MTRR for ec000000,2000000 found
Dec  7 08:13:14 utx init: Switching to runlevel: 0
Dec  7 08:13:15 utx kernel: [  420.237680] mtrr: no MTRR for ec000000,2000000 found
Dec  7 08:13:15 utx kernel: [  420.285127] agpgart-via 0000:00:00.0: AGP 2.0 bridge
Dec  7 08:13:15 utx kernel: [  420.285216] agpgart-via 0000:00:00.0: putting AGP V2 device into 1x mode
Dec  7 08:13:15 utx kernel: [  420.285294] pci 0000:01:00.0: putting AGP V2 device into 1x mode
Dec  7 08:13:18 utx gdm-simple-greeter[3890]: GLib-GObject-CRITICAL: g_param_spec_flags: assertion `G_TYPE_IS_FLAGS (flags_typ
e)' failed
Dec  7 08:13:18 utx gdm-simple-greeter[3890]: GLib-GObject-CRITICAL: g_object_class_install_property: assertion `G_IS_PARAM_SP
EC (pspec)' failed
Dec  7 08:13:20 utx gdm-simple-greeter[3890]: WARNING: Unable to parse history: (null)   5#012
Dec  7 08:13:25 utx shutdown[3912]: shutting down for system halt
Dec  7 08:13:33 utx shutdown[3916]: shutting down for system halt
Dec  7 08:26:56 utx rsyslogd: -- MARK --
Dec  7 08:34:17 utx kernel: [ 1682.210978] bootsplash: status on console 0 changed to on
Dec  7 08:34:17 utx kernel: [ 1682.549611] Xorg:3833 freeing invalid memtype f0102000-f0106000
... many nearly identical lines skipped ...
Dec  7 08:34:17 utx kernel: [ 1682.573860] Xorg:3833 freeing invalid memtype f02fe000-f0302000
Dec  7 08:34:18 utx smartd[3068]: smartd received signal 15: Terminated
Dec  7 08:34:18 utx smartd[3068]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.ST3160812A-5LS0YJFR.ata.state
Dec  7 08:34:18 utx smartd[3068]: smartd is exiting (exit status 0)
Dec  7 08:34:18 utx avahi-daemon[2696]: Got SIGTERM, quitting.
Dec  7 08:34:18 utx avahi-daemon[2696]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.2.
Dec  7 08:34:19 utx sshd[3050]: Received signal 15; terminating.
Dec  7 08:34:19 utx auditd[2576]: Error sending signal_info request (Operation not supported)
Dec  7 08:34:19 utx auditd[2576]: The audit daemon is exiting.
Dec  7 08:34:20 utx rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Dec  7 08:34:20 utx kernel: Kernel logging (proc) stopped.


Last messages in ~/.xsession-errors:

*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).
Failed to play sound: File or data not found

(gnome-power-manager:3476): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Varování správce oken: CurrentTime used to choose focus window; focus window may not be correct.
Varování správce oken: Got a request to focus the no_focus_window with a timestamp of 0.  This shouldn't happen!
Shutting down nautilus-open-terminal extension
Shutting down nautilus-share extension

--- Hash table keys for warning below:
--> inode/directory
--> xxx {log edited manually}
--> XXXX XXXXXXXXX {log edited manually}
--> users
--> l2055

(nautilus:3460): Eel-WARNING **: "unique eel_ref_str" hash table still has 5 elements at quit time (keys above)

(nautilus:3460): Eel-WARNING **: "nautilus-directory.c: directories" hash table still has 3 elements at quit time

(polkit-gnome-authentication-agent-1:3483): polkit-gnome-1-WARNING **: Error enumerating temporary authorizations: Remote Exception invoking org.freedesktop.PolicyKit1.Authority.EnumerateTemporaryAuthorizations() on /org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: org.freedesktop.PolicyKit1.Error.Failed: Cannot determine session the caller is in
applet.py: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
gnome-settings-daemon: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
gnome-screensaver: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
gpk-update-icon: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
gnome-volume-control-applet: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
nm-applet: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
bluetooth-applet: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
Do: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
polkit-gnome-authentication-agent-1: Fatal IO error 11 (Prostředek je dočasně nepřístupný) on X server :0.0.
Comment 1 Stanislav Brabec 2009-12-07 09:29:30 UTC
Created attachment 331314 [details]
hwinfo.lst

hwinfo.lst. Note that my kernel is an openSUSE 11.2 kernel with fix of bug 557970.
Comment 2 Stanislav Brabec 2009-12-08 08:01:38 UTC
I did some debugging of this problem. It seems to be a race condition:

gdm is just restarting X and /bin/bash /etc/init.d/rc 0 calls chvt 1.

chvt 1 hangs forever

If I login to the machine remotely and call chvt 1 again, halt finishes.
Comment 3 Dr. Werner Fink 2009-12-08 09:43:44 UTC
I'm not GNOME maintainer and AFAIK this problem is already known

*** This bug has been marked as a duplicate of bug 540482 ***