Bug 402132

Summary: savage: DRI driver segfaults Xserver
Product: [openSUSE] openSUSE 11.0 Reporter: Andreas Schallenberg <andreas.schallenberg>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P5 - None CC: archon800
Version: Final   
Target Milestone: ---   
Hardware: 32bit   
OS: openSUSE 11.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Schallenberg 2008-06-20 13:30:45 UTC
Backtrace is:

 [?1034h[Thread debugging using libthread_db enabled]
[New Thread 0xb6d0c6d0 (LWP 29687)]
[KCrash handler]
#6  0xb6b6c27d in savageGetLock () from /usr/lib/dri/savage_dri.so
#7  0xb6b971d8 in savageFlushCmdBuf () from /usr/lib/dri/savage_dri.so
#8  0xb6b6b0e4 in ?? () from /usr/lib/dri/savage_dri.so
#9  0xb6b67247 in ?? () from /usr/lib/dri/savage_dri.so
#10 0xb732b502 in ?? () from /usr/lib/libGL.so.1
#11 0x0804dbbc in hasDirectRendering ()
    at /usr/src/debug/kdebase-3.5.9/kscreensaver/random.cpp:86
#12 0x0804e814 in main (argc=-2147483647, argv=0x0)
    at /usr/src/debug/kdebase-3.5.9/kscreensaver/random.cpp:144


It is a fresh openSUSE 11.0 installation on a
FujitsuSiemens laptop. Using KDE 3.5.9 desktop.
Comment 1 Andreas Schallenberg 2008-06-20 14:20:49 UTC
It can be reproduced by simply clicking on the random
screen saver in the tree of screen savers.

I noticed "savage" in the backtrace.
The Laptop has the following gfx chip:

(--) PCI:*(1:0:0) S3 Inc. VT8375 [ProSavage8 KM266/KL266] rev 0, Mem @ 0xe0000000/19, 0x90000000/27, BIOS @ 0x000c0000/16

(one line from Xorg log file)

I tried to disable DRI in xorg.conf:

#Section "DRI"
#    Group      "video"
#    Mode       0660
#EndSection

but this did not change anything.
Maybe it would be better considered an X11 bug
with the savage driver? The screen saver would
then just be the way to trigger it.
Comment 2 Stefan Dirsch 2008-06-20 14:40:51 UTC
Could you add

  Disable "dri"

to Section "Module" of your /etc/X11/xorg.conf and restart your Xsession? Does it still crash?
Comment 3 Andreas Schallenberg 2008-06-20 15:03:17 UTC
No, that did help. Even OpenGL screen savers work now.
So the bug _is_ triggered by DRI.
Comment 4 Andreas Schallenberg 2008-06-20 15:11:46 UTC
Maybe I should add two things:
a) The laptop ran 10.2 until now and haven't encountered any
   problems with screen savers. But I did not test,
   if DRI was enabled before. The laptop just ran the
   generated X11 configuration from isax. I still have
   this file and it pretty much looks like the current
   one, withour the disable-dri line.
b) To me, disabling DRI is a suitable workaround. It is
   a business notebook anyway and needs to run editors,
   shells etc. No fancy 3D needed. However, I will happily
   assist by trying out further things to squash this
   bug, if you consider it important to do so.
Comment 5 Stefan Dirsch 2008-06-20 15:18:12 UTC
The reason is, that DRI is now enabled by default since openSUSE 11.0.
Comment 6 Stefan Dirsch 2008-06-24 18:56:00 UTC
I will disable savage DRI support for the next openSUSE release.
Comment 7 Stefan Dirsch 2009-02-16 14:20:22 UTC
*** Bug 476068 has been marked as a duplicate of this bug. ***