Bug 541370

Summary: [abrt] crash detected in glx-utils-7.6-0.17.fc12
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: ajax, bjoras, mcepl
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:4b10f23dd2ace8ab20f944c952d45ec065c749f0
Fixed In Version: mesa-7.7-5.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-15 18:46:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
Xorg.0.log for IBM ThinkPad T23 [SuperSavage/IXC 64] none

Description Joachim Frieben 2009-11-25 17:40:08 UTC
abrt detected a crash.

How to reproduce
-----
1. Run 'env LIBGL_DEBUG=verbose glxgears' on IBM Thinkpad T23.

Comment: Run 'env LIBGL_DEBUG=verbose glxgears' on IBM Thinkpad T23.
Attached file: backtrace
cmdline: glxgears
component: mesa
executable: /usr/bin/glxgears
kernel: 2.6.31.5-127.fc12.i686.PAE
package: glx-utils-7.6-0.17.fc12
rating: 4
reason: Process was terminated by signal 6

Comment 1 Joachim Frieben 2009-11-25 17:40:11 UTC
Created attachment 373794 [details]
File: backtrace

Comment 2 Joachim Frieben 2009-11-25 17:46:07 UTC
Created attachment 373795 [details]
Xorg.0.log for IBM ThinkPad T23 [SuperSavage/IXC 64]

Comment 3 Matěj Cepl 2009-11-25 18:08:43 UTC
#0  0x00cf7416 in __kernel_vsyscall ()
No symbol table info available.
#1  0x001caa81 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
        resultvar = <value optimized out>
        resultvar = <value optimized out>
        pid = 3215348
        selftid = 2780
#2  0x001cc34a in abort () at abort.c:92
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x312380 <main_arena>, 
            sa_sigaction = 0x312380 <main_arena>}, sa_mask = {__val = {
              3215348, 224, 1, 3217398096, 3217397884, 0, 304, 220, 3220352, 
              3215348, 220, 219, 3217398056, 2124802, 152014864, 220, 
              3217398096, 152014760, 0, 4222451712, 152014864, 152014965, 
              152014864, 152014864, 152015083, 152015164, 152014864, 
              152015164, 0, 0, 0, 0}}, sa_flags = 0, sa_restorer = 0xb}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3  0x001c3bd8 in __assert_fail (assertion=<value optimized out>, 
    file=<value optimized out>, line=<value optimized out>, 
    function=<value optimized out>) at assert.c:81
        buf = 0x90f9010 "glxgears: ../common/drirenderbuffer.c:69: driNewRenderbuffer: Assertion `format == 0x1908 || format == 0x8050 || format == 0x8058 || format == 0x81A5 || format == 0x81A6 || format == 0x81A7 || format "...
#4  0x00e03530 in driNewRenderbuffer (format=<value optimized out>, 
    addr=<value optimized out>, cpp=<value optimized out>, 
    offset=<value optimized out>, pitch=<value optimized out>, 
    dPriv=<value optimized out>) at ../common/drirenderbuffer.c:71
        drb = <value optimized out>
        __PRETTY_FUNCTION__ = "driNewRenderbuffer"
#5  0x00e03efa in savageCreateBuffer (driScrnPriv=<value optimized out>, 
    driDrawPriv=<value optimized out>, mesaVis=<value optimized out>, 
    isPixmap=<value optimized out>) at savage_xmesa.c:605
        frontRb = <value optimized out>
        swStencil = 6 '\006'
        fb = <value optimized out>
        float_depth = 0 '\000'
        __PRETTY_FUNCTION__ = "savageCreateBuffer"
#6  0x00dfeee0 in driCreateNewDrawable (psp=<value optimized out>, 
    config=<value optimized out>, hwDrawable=<value optimized out>, 
    renderType=<value optimized out>, attrs=<value optimized out>, 
    data=<value optimized out>) at ../common/dri_util.c:457
        pdp = 0x90f8c08
#7  0x001435f3 in driCreateDrawable (psc=<value optimized out>, 
    xDrawable=<value optimized out>, drawable=<value optimized out>, 
    modes=<value optimized out>) at dri_glx.c:604
        pdraw = 0x8e6bc68
        hwDrawable = 1
#8  0x00126fe3 in FetchDRIDrawable (dpy=<value optimized out>, 
    glxDrawable=79691778, gc=<value optimized out>) at glxcurrent.c:293
        priv = <value optimized out>
        pdraw = <value optimized out>
        psc = 0x8e2f7c0
#9  0x00127419 in MakeContextCurrent (dpy=<value optimized out>, 
    draw=<value optimized out>, read=<value optimized out>, 
    gc=<value optimized out>) at glxcurrent.c:369
        pdraw = 0xadc
        pread = 0x6
        reply = {type = 1 '\001', unused = 0 '\000', sequenceNumber = 0, 
          length = 3217398608, contextTag = 10089317, pad2 = 10160792, 
          pad3 = 0, pad4 = 1, pad5 = 1, pad6 = 0}
        oldGC = 0x19e45c
        opcode = <value optimized out>
        oldOpcode = 152 '\230'
        bindReturnValue = <value optimized out>
        state = <value optimized out>

Comment 4 Joachim Frieben 2010-02-04 14:48:06 UTC
After updating to locally rebuilt packages libdrm-2.4.17-2.fc12.i686 and mesa-libGL-7.8-0.14.fc12.i686, glxinfo still crashes on my IBM ThinkPad T23 with message:

$ glxinfo 
name of display: :0.0
glxinfo: ../common/drirenderbuffer.c:69: driNewRenderbuffer: Assertion `format == 0x1908 || format == 0x8050 || format == 0x8058 || format == 0x81A5 || format == 0x81A6 || format == 0x81A7 || format == 0x8D48' failed.
Abort

Comment 5 Bjoern Rasmussen 2010-02-21 09:40:11 UTC
I updated my system a couple of days ago (yum update).  I got the same problem:

# glxinfo
name of display: :0.0
glxinfo: ../common/drirenderbuffer.c:69: driNewRenderbuffer: Assertion `format == 0x1908 || format == 0x8050 || format == 0x8058 || format == 0x81A5 || format == 0x81A6 || format == 0x81A7 || format == 0x8D48' failed.
Avbrutt (SIGABRT) (core dumped)

# LIBGL_DEBUG=verbose glxgears 
libGL: XF86DRIGetClientDriverName: 2.3.1 savage (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/savage_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:00
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
glxgears: ../common/drirenderbuffer.c:69: driNewRenderbuffer: Assertion `format == 0x1908 || format == 0x8050 || format == 0x8058 || format == 0x81A5 || format == 0x81A6 || format == 0x81A7 || format == 0x8D48' failed.
Avbrutt (SIGABRT) (core dumped)

I've to run these commands as root.  Otherwise mesa fall back to software rendering.  Looks like there is a problem with permissions (probably because I ran the xserver directly as X in a tty):

$ env LIBGL_DEBUG=verbose glxgears
libGL: XF86DRIGetClientDriverName: 2.3.1 savage (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/savage_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: Open failed
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: Open failed
drmOpenByBusid: drmOpenMinor returns -13
drmOpenDevice: node name is /dev/dri/card1
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card2
drmOpenByBusid: drmOpenMinor returns -1
drmOpenDevice: node name is /dev/dri/card300:01:00.0
....
....

Comment 6 Bjoern Rasmussen 2010-03-28 13:30:01 UTC
Yesterday I updated my system.  savage_dri.so works fine now.

Current versions:

mesa-dri-drivers-7.7-4.fc12.i686
kernel-PAE-2.6.32.9-70.fc12.i686
libdrm-2.4.17-1.fc12.i686
xorg-x11-drv-savage-2.3.1-1.fc12.i686
xorg-x11-server-Xorg-1.7.6-1.fc12.i686

Comment 7 Joachim Frieben 2010-08-15 18:46:18 UTC
Tried mesa-7.7-5.fc12, and it just wworks.