Bug#370814: libgl1-mesa-dri: The Rage 128 DRI driver causes all GL apps to segfault.

Da-Breegster dabreesgter at gmail.com
Tue Jun 6 21:27:47 UTC 2006


Package: libgl1-mesa-dri
Version: 6.4.1-0.4
Severity: important


^ (Do I leave that in? :P)

Hi. Recently I have been experiencing issues with all OpenGL programs. Any
program linked with libGL.so will segfault when run. I have determined the
issue to be specific to my video card. First, some information.

Kernel (uname -r): 2.6.12-1-386
Video card (lspci -v output, only the card.):
0000:00:0a.0 VGA compatible controller: ATI Technologies Inc Rage 128 RE/SG (prog-if 00 [VGA])
        Subsystem: ATI Technologies Inc Rage 128 AIW
        Flags: bus master, stepping, medium devsel, latency 66, IRQ 10
        Memory at 44000000 (32-bit, prefetchable) [size=64M]
        I/O ports at 1800 [size=256]
        Memory at 41100000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [5c] Power Management version 1
libgl1-mesa-dri: 6.4.1-0.4
libgl1-mesa-glx: 6.4.1-0.4
Release: Testing

An example of what running an OpenGL app does:
[8][~]# glxinfo
name of display: :0.0
Segmentation fault

I tried strace first and found nothing interesting. So I used gdb and found the
problem:

[6][~]# gdb glxinfo
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/glxinfo
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 5262)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
name of display: :0.0
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5262)]
0xb79182f8 in driSetTextureSwapCounterLocation () from /usr/lib/dri/r128_dri.so
(gdb) bt
#0  0xb79182f8 in driSetTextureSwapCounterLocation ()
   from /usr/lib/dri/r128_dri.so
#1  0xb791d4bb in r128CreateContext () from /usr/lib/dri/r128_dri.so
#2  0xb7919ee3 in __driUtilUpdateDrawableInfo () from /usr/lib/dri/r128_dri.so
#3  0xb7f5472c in __glFillMap2d () from /usr/lib/libGL.so.1
#4  0xb7f54a42 in glXCreateContext () from /usr/lib/libGL.so.1
#5  0x080490bd in ?? ()
#6  0x0804d050 in ?? ()
#7  0x08054030 in ?? ()
#8  0x00000000 in ?? ()

The issue seems to be with the source of r128_dri.so. I searched around for
this problem and found a thread on the RedHat BTS that explained the bug rather
well:

http://64.233.179.104/search?q=cache:p2IRRnAk0YcJ:https://bugzilla.redhat.com/bugzilla/long_list.cgi%3Fbuglist%3D124932+driSetTextureSwapCounterLocation+r128&hl=en&gl=us&ct=clnk&cd=3&ie=UTF-8

I'm not a C programmer (Plus I had problems compiling the mesa source package), 
so I haven't managed to fix the issue myself, though it doesn't look tough. I
just wanted to notify the team of the issue so it could be fixed as soon as
possible. If there's more information I need to provide, or any other way I
could help, please contact me at dabreegster at gmail.com, or on irc.freenode.net
as dabreegster.

Thanks.


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages libgl1-mesa-dri depends on:
ii  libgl1-mesa-glx               6.4.1-0.4  A free implementation of the OpenG

libgl1-mesa-dri recommends no packages.

-- no debconf information




More information about the Pkg-mesa-devel mailing list