Bug 8026

Summary: r300/mesa segfault in quake 3 engine based software
Product: Mesa Reporter: Simon <Simon80>
Component: Drivers/DRI/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: glisse
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: backtrace of crash while running ioquake3
backtrace of crash while running closed source quake3
backtrace of crash while running tremulous

Description Simon 2006-08-27 04:50:03 UTC
I compiled mesa cvs according to the build guide and "installed" it by setting
LIBGL_DRIVERS_PATH, and when running quake 3 or tremulous, both games segfault
while loading, during the creation of the main window.  glxgears works fine with
this driver, and unsetting LIBGL_DRIVERS_PATH allows both games to work fine.

Attached are backtraces for quake3, icculus.org quake3, and tremulous.
Comment 1 Simon 2006-08-27 04:50:55 UTC
Created attachment 6718 [details]
backtrace of crash while running ioquake3
Comment 2 Simon 2006-08-27 04:51:29 UTC
Created attachment 6719 [details]
backtrace of crash while running closed source quake3
Comment 3 Simon 2006-08-27 04:51:50 UTC
Created attachment 6720 [details]
backtrace of crash while running tremulous
Comment 4 Michel Dänzer 2006-08-27 05:02:53 UTC
Are you making sure they're picking up the new libGL as well?
Comment 5 Simon 2006-08-27 07:55:22 UTC
(In reply to comment #4)
> Are you making sure they're picking up the new libGL as well?

like I said, unsetting the LIBGL_DRIVERS_PATH env variable causes the programs
to work
Comment 6 Michel Dänzer 2006-08-27 08:20:35 UTC
There have recently been changes to the GL dispatch mechanism which require
libGL to be updated as well if the drivers are updated. So, please make sure the
apps are using the newly built libGL.so.1 as well.
Comment 7 Simon 2006-08-27 08:35:56 UTC
(In reply to comment #6)
> There have recently been changes to the GL dispatch mechanism which require
> libGL to be updated as well if the drivers are updated. So, please make sure the
> apps are using the newly built libGL.so.1 as well.

is this as easy as setting another env var? how do I do this?
Comment 8 Michel Dänzer 2006-08-27 08:43:07 UTC
You can try setting LD_LIBRARY_PATH, but these games may require
LD_PRELOAD=/path/to/Mesa/lib/libGL.so.1 (as well?).
Comment 9 Simon 2006-08-27 08:45:56 UTC
Thanks, while you were replying, I tried running export
LD_LIBRARY_PATH=/path/to/Mesa/lib, and it fixed it.

Quick response time, I might add..
Comment 10 Simon 2006-08-27 08:49:24 UTC
err.. maybe fixed was the wrong resolution, you can change it if it's a big deal
though, I guess... also,
http://dri.freedesktop.org/wiki/Building#head-2ed4b11a128d7d28159498e7df102f15967088fb
should be changed to include this step, if you don't have any problems I can add
that to the page.
Comment 11 Michel Dänzer 2006-08-27 08:54:05 UTC
Sure, go ahead, thanks.
Comment 12 Adam Jackson 2009-08-24 12:24:13 UTC
Mass version move, cvs -> git

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.