Bug 13860

Summary: Reproducable segfault in X server if config file is wrong
Product: xorg Reporter: David F. Skoll <dfs>
Component: Server/Ext/DRIAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: esigra
Version: 7.1 (2006.05)   
Hardware: x86 (IA32)   
OS: Linux (All)   
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 10101    

Description David F. Skoll 2007-12-29 20:31:19 UTC
I accidentally changed the "Mode 0666" to "Mode 666" in the DRI section of xorg.conf.  That results in crazy permissions on /dev/dri/card0 like this:

c-w--wx-wT root root 226, 0 Dec 29 22:18 /dev/dri/card0

Trying to run glxinfo or glxgears makes the server segfault:

0: /usr/bin/X(xf86SigHandler+0x84) [0x80c4374]
1: [0xb7f85420]
2: /usr/lib/dri/mga_dri.so [0xb5f3d36d]
3: /usr/lib/dri/mga_dri.so [0xb5ef4473]
4: /usr/lib/xorg/modules/extensions/libglx.so [0xb7c6cdbb]
5: /usr/lib/xorg/modules/extensions/libglx.so(DoCreateContext+0x10f) [0xb7c4717f]
6: /usr/lib/xorg/modules/extensions/libglx.so(__glXCreateContext+0x44) [0xb7c47994]
7: /usr/lib/xorg/modules/extensions/libglx.so [0xb7c49f6a]
8: /usr/bin/X(Dispatch+0x19b) [0x8086ccb]
9: /usr/bin/X(main+0x489) [0x806e6b9]
10: /lib/tls/libc.so.6(__libc_start_main+0xc8) [0xb7d7eea8]
11: /usr/bin/X(FontFileCompleteXLFD+0xa5) [0x806d9f1]

Fatal server error:
Caught signal 11.  Server aborting

A simple misconfiguration shouldn't cause a segfault.


Comment 1 David Nusinow 2008-03-02 14:13:18 UTC
I've just pushed a fix to git. Thanks for your report!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.