Bug 3862

Summary: [r128] Seg. fault with r128 driver
Product: Mesa Reporter: Manuel Pancorbo <mpancorbo>
Component: Drivers/DRI/r128Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: high CC: egon.alter
Version: 5.0.2Keywords: NEEDINFO
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Manuel Pancorbo 2005-07-24 21:06:34 UTC
Dell 4550, ATI-Rage card and "r128" driver. Xorg installed from Debian unstable.
DRM-modules installed from fresh snapshots at
http://dri.freedesktop.org/snapshots/ : 
http://dri.freedesktop.org/snapshots/common-20050718-linux.i386.tar.bz2 
http://dri.freedesktop.org/snapshots/rage128-20050718-linux.i386.tar.bz2

Installation was ok. Further X-launch reported no problem:
(II) R128(0): [drm] created "r128" driver at busid "pci:0000:01:00.0"
(II) R128(0): [dri] Visual configs initialized

But 'glxinfo' yielded following:

libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x28
libGL warning: 3D driver claims to not support visual 0x2c
libGL warning: 3D driver claims to not support visual 0x30
Violación de segmento

(so, "segmentation fault")
My .drirc is simple <driconf></driconf>

The output of 'gdb /usr/X11R6/bin/glxinfo' after 'run' and 'bt' is:
#0  0xb7976180 in driSetTextureSwapCounterLocation (heap=0x0,
    counter=0x8051f24) at ../common/texmem.c:652
#1  0xb7979cb6 in r128CreateContext (glVisual=0x804ed18,
    driContextPriv=0x804fd20, sharedContextPrivate=0x0) at r128_context.c:175
#2  0xb79775b0 in driCreateNewContext (dpy=0x804d008, modes=0x804ed18,
    render_type=0, sharedPrivate=0x0, pctx=0x8050eac)
    at ../common/dri_util.c:1059
#3  0xb7f260de in DriverCreateContextWrapper () from /usr/lib/libGL.so.1
#4  0xb7f2650d in CreateContext () from /usr/lib/libGL.so.1
#5  0xb7f2670e in glXCreateContext () from /usr/lib/libGL.so.1
#6  0x0804901a in ?? ()
#7  0x0804d008 in ?? ()
#8  0x080507e8 in ?? ()
#9  0x00000000 in ?? ()
#10 0x00000001 in ?? ()
#11 0x00000064 in ?? ()
#12 0x00000064 in ?? ()
#13 0x00000000 in ?? ()
#14 0x00000018 in ?? ()
#15 0x00000001 in ?? ()
#16 0x0804e2a8 in ?? ()
#17 0x0000280a in ?? ()
#18 0xbffffae0 in ?? ()

I can give any log-output that you consider relevant
Comment 1 Michel Dänzer 2005-07-25 07:40:15 UTC
Please attach (as opposed to paste) the full X server log and configuration files.
Comment 2 Manuel Pancorbo 2005-07-25 20:49:48 UTC
Created attachment 3136 [details]
xc/include/extensions/interactive.h (shared by client-side and server-side)
Comment 3 Manuel Pancorbo 2005-07-25 20:51:19 UTC
Created attachment 3137 [details]
xc/include/extensions/interactiveCommon.h
Comment 4 Manuel Pancorbo 2005-07-25 20:55:22 UTC
I've just seen a warning when inserting "r128":
PCI: Unable to reserve mem region #1:4000000@f8000000 for device 0000:01:00.0

This seems uncritical warning, because the module keeps inserted and the whole
X-system works ok with no error at launch time. But perhaps this concerns the
reported bug on DRM-system.
Comment 5 Eric Anholt 2005-08-05 14:56:04 UTC
(II) R128(0): Reserved 0 kb for textures at offset 0xfff000

That sure looks like the problem to me.
Comment 6 Egon Alter 2008-04-06 06:12:32 UTC
*** Bug 15361 has been marked as a duplicate of this bug. ***
Comment 7 Matt Turner 2010-12-02 13:02:21 UTC
Is this still a problem?
Comment 8 Ian Romanick 2015-11-30 23:43:09 UTC
The r128 driver longer exists in Mesa.

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.