Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69049 - glxinfo and glxgears crashed (Segmentation fault) with i915 DRI
Summary: glxinfo and glxgears crashed (Segmentation fault) with i915 DRI
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-26 11:40 UTC by Chris
Modified: 2005-05-18 13:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2004-10-26 11:40:33 UTC
Hardware: DELL Dimension 4600 with Intel Extreme Graphics II onboard video.
System: kernel 2.6.9-gentoo-r1 with vesafb driver, xorg-6.8.0-r1
modules agpgart, intel-agp, intel-mch-agp and i915 are automatically loaded
When enable DRI in xorg.conf,  glxinfo and glxgears both crashed.

Reproducible: Always
Steps to Reproduce:
1. loaded all modules
2. enable DRI and set mode to 666 in xorg.conf
3. bring X
4. run glxinfo or glxgears in a treminal window

Actual Results:  
name of display: :1.0
Segmentation fault


Expected Results:  
blah blah blah...
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-26 14:51:38 UTC
Here's a couple of comments on debugging this from https://freedesktop.org/bugzilla/show_bug.cgi?id=930 --

 ------- Additional Comment #3 From ajax@nwnk.net  2004-07-27 10:22  [reply] -------

please run glxinfo under gdb and obtain a backtrace.

type 'gdb /usr/X11R6/bin/glxinfo' at a shell prompt.  at the (gdb) prompt, type
'run', then 'bt' after the segfault.

this may be caused by, or fixed by, fxkuehl's xmlconfig.c changes, depending on
timing.  could you also try the most recent DRI snapshot?


------- Additional Comment #4 From Michel D
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-26 14:51:38 UTC
Here's a couple of comments on debugging this from https://freedesktop.org/bugzilla/show_bug.cgi?id=930 --

 ------- Additional Comment #3 From ajax@nwnk.net  2004-07-27 10:22  [reply] -------

please run glxinfo under gdb and obtain a backtrace.

type 'gdb /usr/X11R6/bin/glxinfo' at a shell prompt.  at the (gdb) prompt, type
'run', then 'bt' after the segfault.

this may be caused by, or fixed by, fxkuehl's xmlconfig.c changes, depending on
timing.  could you also try the most recent DRI snapshot?


------- Additional Comment #4 From Michel Dänzer 2004-07-27 11:27 [reply] -------

Beware that debugging a DRI client from the same display will deadlock the X
server if execution is stopped while the client holds the hardware lock. Run gdb
from another machine, e.g. via ssh, to be safe.

Comment 3 Chris 2004-10-27 06:03:41 UTC
my problem is very similar, even the gdb output.  I have no time to try the latest DRI in the next month.  I will try it in mid-November. 

gdb output:

(gdb) run
Starting program: /usr/X11R6/bin/glxinfo 
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
name of display: :1.0

Program received signal SIGFPE, Arithmetic exception.
0x405ab91c in ?? ()
(gdb) bt
#0  0x405ab91c in ?? ()
#1  0x3f800000 in ?? ()
#2  0x3f800000 in ?? ()
#3  0x3f800000 in ?? ()
#4  0x3f800000 in ?? ()
#5  0x00001d80 in ?? ()
#6  0x00001f80 in ?? ()
#7  0xbfffed50 in ?? ()
#8  0x405ab58b in ?? ()
#9  0x405fe490 in ?? ()
#10 0x405ab420 in ?? ()
#11 0xbfffecc0 in ?? ()
#12 0xbfffedb0 in ?? ()
(gdb) 
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-17 22:33:22 UTC
Hi,
Could you try that with an xorg-x11 built with USE=debug please
Comment 5 Yuri Vasilevski (RETIRED) gentoo-dev 2004-11-20 13:34:21 UTC
Had the same error until I added:

Section "DRI"
        Group        0
        Mode         0666
EndSection

to my /etc/X11/xorg.conf.

Yuri.
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2005-05-18 13:18:40 UTC
Chris: could you please try the solution in Comment #4 and then, if that doesn't
work, debugging with the instructions in Comment #3 .  Reopen the bug once you
do so.