Bug 807205

Summary: Mesa shmget llvmpipe patch causes unhandled X Error, leading to gnome-shell crash
Product: [openSUSE] openSUSE 12.2 Reporter: Stefan Brüns <stefan.bruens>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P3 - Medium    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 12.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Proposed fix

Description Stefan Brüns 2013-03-03 21:35:16 UTC
Created attachment 527869 [details]
Proposed fix

User-Agent:       Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.10.0 Safari/534.34

Happens when using X over network, i.e. xshm is not available

The XShmAttach is protected with a special error handler, but in case attach fails the code jumps to the "out:" part, where XShmDetach is called unconditionally and unprotected. As there is no XSync, the code fails later on the first call to a function causing an XSync

Reproducible: Always

Steps to Reproduce:
1. Start a remote Gnome session, e.g. with LTSP
2. Start any application from inside the session
3. gnome-shell crash
Actual Results:  
crash

Expected Results:  
Fallback to non shm code path
Comment 1 Stefan Brüns 2013-03-05 23:16:05 UTC
As this is caused by a patch taken from Fedora, I filed a bug there:
https://bugzilla.redhat.com/show_bug.cgi?id=917687
Comment 2 Stefan Brüns 2013-09-17 14:46:24 UTC
This is fixed in obs:X11:Xorg/Mesa as of revision 326
SR: https://build.opensuse.org/request/show/199255
Fixed in Factory / oS 13.1?
Comment 3 Stefan Dirsch 2013-09-18 07:17:32 UTC
Yes. Thanks a lot!