Bug 13860 - Reproducable segfault in X server if config file is wrong
Summary: Reproducable segfault in X server if config file is wrong
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Ext/DRI (show other bugs)
Version: 7.1 (2006.05)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xorg-7.4
  Show dependency treegraph
 
Reported: 2007-12-29 20:31 UTC by David F. Skoll
Modified: 2008-03-02 14:13 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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:

Backtrace:
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.

Regards,

David.
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.