glxinfo crashes X with SiS661GX graphics

Bug #115609 reported by Roman Polach
8
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I want to setup a direct rendering on notebook
with integrated graphics adapter SiS 661 GX with 64MB memory.

when I tried run "glxinfo" it crashes X and restart the gdm session,
"glxinfo 2>log" shows this error message:

  X connection to :0.0 broken (explicit kill or server shutdown).

Also googleearth crashes could be connected with this problem.

--------

lspci found:

01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter

---------

relevant sections in xorg.conf:

Section "Module"
 Load "i2c"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "int10"
 Load "vbe"
EndSection
Section "Device"
 Identifier "Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter"
 Driver "sis"
 BusID "PCI:1:0:0"
EndSection
Section "DRI"
 Mode 0666
EndSection

----------------------------------------------------------------

some parts of Xorg.0.log which may be intristing:
---

(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
 compiled for 7.2.0, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI

...

(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
 compiled for 7.2.0, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.3
(==) AIGLX enabled
(II) Loading extension GLX

...

(==) SIS(0): DRI disabled

(--) SIS(0): DIMM0 is DDR SDRAM
(--) SIS(0): DIMM1 is not installed
(--) SIS(0): DIMM2 is not installed
(--) SIS(0): DRAM type: DDR SDRAM
(--) SIS(0): Memory clock: 332.892 MHz
(--) SIS(0): DRAM bus width: 64 bit
(--) SIS(0): Linear framebuffer at 0xD0000000
(--) SIS(0): MMIO registers at 0xDFEE0000 (size 64K)
(--) SIS(0): VideoRAM: 32768 KB
(II) SIS(0): Using 32192K of framebuffer memory at offset 0K
(--) SIS(0): Hardware supports two video overlays

...

(EE) AIGLX: Screen 0 is not DRI capable

(II) Loading local sub module "GLcore"
(II) LoadModule: "GLcore"
(II) Loading /usr/lib/xorg/modules/extensions//libGLcore.so
(II) Module GLcore: vendor="X.Org Foundation"
 compiled for 7.2.0, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.3
(II) GLX: Initialized MESA-PROXY GL provider for screen 0

...

ProcXCloseDevice to close or not ?

--------------------------------
especially:
* AIGLX seems not to found DRI capable screen,
* I am not sure if X correctly detect 64KB of gr. memory,
* I do not understand last line..

There is no interesting content in .xsession-errors...

-------------------------------------------------------------

strace output ends with this:
--------

read(4, "GLX_ARB_multisample GLX_EXT_visu"..., 265) = 265
read(4, "\1\0\0", 3) = 3
write(4, "\217\21\4\0\4\0\1\0\3\0\0\0\0\0\0\0", 16) = 16
read(4, "\1\375\f\0\30\1\0\0\5\0\0\0\34\0\0\0p\346A\10H\331\226"..., 32) = 32
read(4, "\v\200\0\0N\0\0\0\23\200\0\0N\0\0\0\22\200\0\0\1\0\0\0"..., 224) = 224
read(4, "\v\200\0\0\"\0\0\0\23\200\0\0\"\0\0\0\22\200\0\0\1\0\0"..., 224) = 224
read(4, "\v\200\0\0#\0\0\0\23\200\0\0#\0\0\0\22\200\0\0\1\0\0\0"..., 224) = 224
read(4, "\v\200\0\0$\0\0\0\23\200\0\0$\0\0\0\22\200\0\0\1\0\0\0"..., 224) = 224
read(4, "\v\200\0\0%\0\0\0\23\200\0\0%\0\0\0\22\200\0\0\1\0\0\0"..., 224) = 224
futex(0xb7f80144, FUTEX_WAKE, 2147483647) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c46000
write(4, "\217\24\f\3\1\0\0\0\4\0\0\0\36\f\0\0GL_ARB_depth_tex"..., 3224) = 3224
read(4, 0xbfa0c31c, 32) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN, revents=POLLIN|POLLHUP}], 1, -1) = 1
read(4, "", 32) = 0
write(2, "X connection to :0.0 broken (exp"..., 65) = 65
exit_group(1) = ?

------------------------------------------------------------------

Commenting out whole Section "DRI" or only Mode 006 did not help.
Setting
  Option "DRI" "off"
in the Device section also did not help.
Commenting out Load "dri" results that glxinfo does not crash any more...
...instead it displays this message:

X Error of failed request: GLXBadContext
  Major opcode of failed request: 143 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 17
  Current serial number in output stream: 17
name of display: :0.0

------
...and googleearth still crash X with these messages in Xorg.0.log:

(EE) DoSwapInterval: cx = 0x842ff58, GLX screen = 0x823b940

Backtrace:
0: /usr/X11R6/bin/X(xf86SigHandler+0x81) [0x80c5d91]
1: [0xffffe420]
2: /usr/lib/xorg/modules/extensions//libglx.so [0xb7bc02da]
3: /usr/lib/xorg/modules/extensions//libglx.so [0xb7bc4acc]
4: /usr/X11R6/bin/X [0x81424ce]
5: /usr/X11R6/bin/X(Dispatch+0x19f) [0x808c61f]
6: /usr/X11R6/bin/X(main+0x495) [0x8074785]
7: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7d36ebc]
8: /usr/X11R6/bin/X(FontFileCompleteXLFD+0x1e1) [0x8073ab1]

Fatal server error:
Caught signal 11. Server aborting

(II) SIS(0): Restoring by setting old mode 0x03

--------------------------------------------------------------

I reinstalled xorg sis driver, but it didn't change anything.
When I switched to vesa driver with dri loading disabled, I saw the same error in glxinfo as with sis driver.
I checked Xorg.0.log that vesa driver is really used for sure.
When I used vesa driver and enabled dri load, then I saw a little bit different message in glxinfo output:

name of display: :0.0
X Error of failed request: BadAlloc (insufficient resources for operation)
  Major opcode of failed request: 142 (GLX)
  Minor opcode of failed request: 3 (X_GLXCreateContext)
  Serial number of failed request: 16
  Current serial number in output stream: 17

Revision history for this message
Frank Siegert (fsiegert) wrote :

I noticed the same problem with the same graphics adapter (lspci output). For me it stopped crashing when I added the "dri" module to the section:

Section "Module"
  Load "i2c"
  Load "bitmap"
  Load "ddc"
  Load "extmod"
  Load "freetype"
  Load "int10"
  Load "type1"
  Load "vbe"
  Load "glx"
  Load "dri"
  load "GLcore"
  load "v4l"
EndSection

Section "Device"
  identifier "Silicon Integrated Systems (SiS) SiS Default Card"
  boardname "SiS Real256E"
  busid "PCI:1:0:0"
  driver "sis"
  screen 0
  vendorname "SiS"
EndSection

Section "DRI"
  Mode 0666
EndSection

Now glxinfo doesn't crash the X server anymore, but delivers this output:
$ glxinfo
name of display: :0.0
X Error of failed request: GLXBadContext
  Major opcode of failed request: 143 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 17
  Current serial number in output stream: 17

Google Earth also won't crash anymore, but it runs (as before) very jerky, almost unusable. I fear there is no solution for that problem with my graphics adapter though, as it probably is not good enough to support 3D acceleration.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

There is no DRI support on SiS 661 (according to http://www.winischhofer.net/sisdri.shtml), but X or glxinfo should not crash anyway.

Can you please try Gutsy Tribe 5 and see if you have the same problem?

This seems to be a common problem when the driver does not support DRI, also for other cards than SiS.

Changed in mesa:
assignee: nobody → tormodvolden
status: New → Incomplete
Revision history for this message
Roman Polach (rpolach) wrote :

On Gutsy Tribe 5 LiveCD: glxinfo still crashes X the same way.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Please install the xserver-xorg-core-dbg package, it can help make the backtrace in the server log more complete. If you could do more debugging it would be great, see https://wiki.ubuntu.com/DebuggingXorg for some tips. Please try the newest drivers from https://wiki.ubuntu.com/XorgOnTheEdge also. I have seen this on an ati card before, but not with the newest drivers.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

FYI, glxinfo would crash the server using the vesa driver on an ATI X1300 in Tribe 5, but not after I installed xserver-xorg-core_1.3.0.0.dfsg-12ubuntu4_i386.deb .

Revision history for this message
Roman Polach (rpolach) wrote :

I have installed xserver-xorg-core_1.3.0.0.dfsg-12ubuntu3_i386.deb
and xserver-xorg-core-dbg_1.3.0.0.dfsg-12ubuntu3_i386.deb
in Gutsy Tribe 5 liveCD and after restart "glxinfo" does not crash anymore

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Thanks. Closing the bug then.

Changed in mesa:
assignee: tormodvolden → nobody
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.