Bug 725187

Summary: gnome-shell crashes/hangs when I switch users
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: browning48ky, bugzilla.redhat.com, collura, jmccann, lsof, m3freak, maxamillion, otaylor, paul, rstrode, samkraju, walters
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-30 06:18:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 697199    
Attachments:
Description Flags
strace -f -s 250 CRASHED-GNOME-SHELL-PID 1
none
strace -f -s 250 CRASHED-GNOME-SHELL-PID 2 none

Description Need Real Name 2011-07-23 20:08:08 UTC
Description of problem:
If I switch users, sometimes gnome-shell crashes (i.e. hangs/becomes unusable) and I have to kill -9 -u USER

Version-Release number of selected component (if applicable):
gnome-shell-3.0.2-4.fc15.x86_64

How reproducible:
Every day.

Steps to Reproduce:
1. Switch users a couple or a few times
2.
3.
  
Actual results:
Desktop becomes unresponsive.

Expected results:
Desktop continues to behave as usual.

Additional info:
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)

Comment 1 Need Real Name 2011-07-26 21:15:50 UTC
Two things that happen

Option 1: I can switch user, but the interface is unusable - I can type, but not interact with any windows or alt+tab. Moving the mouse to the top left of the screen does nothing.

Option 2: black screen instead of login prompt.

Comment 2 Need Real Name 2011-07-27 19:53:34 UTC
This is definitely a gnome shell problem. If I kill -9 gnome-shell, everything comes back to life.

Comment 3 Need Real Name 2011-07-29 18:57:40 UTC
Created attachment 515922 [details]
strace -f -s 250 CRASHED-GNOME-SHELL-PID 1

Comment 4 Need Real Name 2011-07-29 18:58:26 UTC
Created attachment 515923 [details]
strace -f -s 250 CRASHED-GNOME-SHELL-PID 2

Comment 5 Need Real Name 2011-07-29 19:03:49 UTC
Hopefully this strace will help.

Comment 6 Need Real Name 2011-08-21 18:19:08 UTC
Again:

Process 10647 attached with 6 threads - interrupt to quit
[pid 10762] read(40,  <unfinished ...>
[pid 10655] futex(0x138241c, FUTEX_WAIT_PRIVATE, 5, NULL <unfinished ...>
[pid 10654] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 10653] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 10652] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 10647] restart_syscall(<... resuming interrupted call ...> <unfinished ...>

Comment 7 Need Real Name 2011-11-15 20:45:43 UTC
Still the same problem with Fedora 16.

Switching from user1 to user2 works fine.
Switching back from user2 to user1 fails.

Xorg.0.log has this:

[398851.797] (II) AIGLX: Suspending AIGLX clients for VT switch

[398875.982] (II) AIGLX: Resuming AIGLX clients after VT switch

Comment 8 Need Real Name 2012-01-10 21:51:31 UTC
Any chance of upping severity? I have to kill gdm and I lose my work.

Comment 9 cblaauw 2012-01-11 07:12:50 UTC
I see the same here.

There are two different things that can happen if user switching fails:

a) the screen is completely black solution -> switch to another VT to find gdm, that is gdm is running fine, but the correct VT is not selected automatically. This does not happen very often.

b) gdm shows just one user entry picture and nothing else (no input fields etc.) and does not accept any input solution -> ctrl-alt-backspace restarts gdm on that particular VT. This does happen a lot more often than type a.

I think a is related to xorg and b is a problem of gnome-shell/gdm

Comment 10 Paul Howarth 2012-01-11 09:41:04 UTC
(In reply to comment #9)
> I see the same here.
> 
> There are two different things that can happen if user switching fails:
> 
> a) the screen is completely black solution -> switch to another VT to find gdm,
> that is gdm is running fine, but the correct VT is not selected automatically.
> This does not happen very often.
> 
> b) gdm shows just one user entry picture and nothing else (no input fields
> etc.) and does not accept any input solution -> ctrl-alt-backspace restarts gdm
> on that particular VT. This does happen a lot more often than type a.
> 
> I think a is related to xorg and b is a problem of gnome-shell/gdm

Don't often see (a) but I see (b) regularly, having three users share a machine.

Comment 11 Need Real Name 2012-01-11 16:41:33 UTC
A colleague of mine reports problem (a) on RHEL6. I haven't seen this very often in F16.

For (b) I see just a blue screen. The login chooser is missing.

Comment 12 Need Real Name 2012-01-19 17:09:59 UTC
This bug seems to have disappeared! I will update in a week if it has gone.

Comment 13 Kanwar Ranbir Sandhu 2012-04-06 14:40:40 UTC
I've been having the exact same problem since Fedora 15, and it DEFINITELY has not disappeared.  It's infuriating - I see the bug several times every single day.

The one thing I can add is it appears to start after waking the PC a few times from a suspended state.  If I shutdown every night, I can switch users to my heart's content.  As soon as I've done a few suspend/wake cycles, the bug comes back.

Comment 14 Ray Strode [halfline] 2012-04-09 21:20:30 UTC
We fixed this upstream a while back, but I don't know if it's made it into an update.

The upstream bug report is here:

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

Comment 15 Need Real Name 2012-05-18 14:54:13 UTC
Could you please fix this bloody bug? gdm hanging while user switching. gdm can't be complicated, it's only doing one thing. Every single day I wonder why this bug is still open - it's nearly enough to make me switch to OS X!

Comment 16 Need Real Name 2012-05-30 06:18:59 UTC
F17: looks like you nailed it! Thanks!