Bug 795169

Summary: Desktop freezes randomly when closing windows.
Product: [Fedora] Fedora Reporter: Paul <engr.maxyan>
Component: kernelAssignee: Martin Stransky <stransky>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: gansalmon, gecko-bugs-nobody, itamar, jonathan, kernel-maint, madhu.chinakonda, rstrode, stransky
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-02-26 21:02:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Paul 2012-02-19 21:40:22 UTC
Description of problem:
Desktop freezes when closing firefox.

Version-Release number of selected component (if applicable):
GNOME Shell 3.2.2.1; Firefox 10.0.1
X.Org X Server 1.11.4

Release Date: 2012-01-27
X Protocol Version 11, Revision 0
Build Operating System: x86-01 2.6.32-220.4.1.el6.x86_64 
Current Operating System: Linux kubik-main 3.2.6-3.fc16.x86_64 #1 SMP Mon Feb 13 20:35:42 UTC 2012 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.6-3.fc16.x86_64 root=UUID=3c30fccf-2545-44db-b057-ac7d07ae9314 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 KEYTABLE=pl2 LANG=en_US.UTF-8
Build Date: 08 February 2012  10:54:57PM
Build ID: xorg-x11-server 1.11.4-1.fc16 
Current version of pixman: 0.22.2

How reproducible:
Every time.

Steps to Reproduce:
1.Log in Gnome Desktop, and wait till the Shell launches
2.Launch Firefox
3.Open Random webpage (probably not necessary)
4.Close Firefox window using "X" button. 
  
Actual results:
Whole Shell freezes. I can't open Activities nor Alt+Tab. The mouse is working but that's all. None button is responding. I can still switch to another tty and kill xorg to restore shell.

Expected results:
To close Firefox.

Additional info:
When multiple windows are opened, closing only one of them doesn't cause freeze. May be connected with Bug 713907, however freezes appear randomly there and problem is bound to Xorg. I am not sure if I could be able to move mouse if the X server was frozen.

Comment 1 Paul 2012-02-19 21:56:41 UTC
After freeze I am unable to kill firefox proces (with is marked as defunct), and gnome-shell process. Only killing xorg or gdm-session-wor (the name is cut in ps -A output), causes the gnome restart. I don't know whether it's useful or not.

Comment 2 Paul 2012-02-19 22:13:25 UTC
Revolutionary discovery. The freeze appears only if I close the window by clocking on "X" button on regular window. When I'll use File->Close(or Exit/Quit, I'm not sure how it's translated), or simply clock on the circle which appears when I move mouse to upper right corner of the window. 
But the problem doesn't lay in solely button. When two tab's are opened the window appears and asks if I want to close all of them. It doesn't affect freezing, so the broken code isn't directly describing the button.

Comment 3 Paul 2012-02-20 14:56:40 UTC
So far I have found out that the trick from comment 2 doesn't always work. Freezes still appear randomly. More over it happens in other apps, like for example terminal. Booting previous kernel fixes the issue so I have renamed the bug and changed component to kernel.

Comment 4 Paul 2012-02-20 20:31:19 UTC
Another discovery. Booting previous kernel does not solve the problem. It simply decreases frequency. At this point I must admit that I don't think my help might be useful any longer. I don't have any sure tips at the moment. Sorry.

Comment 5 Martin Stransky 2012-02-24 15:54:28 UTC
Cau you provide bactrace of the crash? See https://fedoraproject.org/wiki/StackTraces#Firefox

Comment 6 Paul 2012-02-26 21:02:21 UTC
The bug is not connected with Firefox and has been already fixed. Sorry for delay in reporting. It's gone since kernel update 3.2.7, but I can't say whether it's because of kernel or another package that was updated along with it.