Xorg crash; Xlib errors

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Xorg crash; Xlib errors

Deanna Phillips-2
Reposting this with links, since the last one is stalled for
being too long.

Here are some issues I'm trying to resolve with the Gnash port.
Gnash is a shockwave flash player that is currently using
OpenGL, a GTK gui, the GTK GL extensions (gtkglext), and
pthreads.

Problem 1:

Something like 50% of the time, it hangs or fails to start,
giving Xlib errors such as:

Xlib: sequence lost (0x10000 > 0xb8) in reply type 0x1!

Here's the bug: https://savannah.gnu.org/bugs/?18062

This problem has only been reported on OpenBSD.

Problem 2:

When troubleshooting this, I found that one of the gtkglext
example programs crashes the X server.  I don't know whether or
not this is related to the gnash bug.

To try to reproduce it, make the x11/gtkglext port, cd into the
examples directory and make there, then run the pixmap example.

So, if anyone could help me out here, with either issue, it'd be
appreciated.

Here's a little more info on the X crash: I'm using an ATI
Radeon Mobility M7 LW on a T30 Thinkpad and it is 100%
reproducible here.  However, a friend could not reproduce it on
his T42 which, according to his dmesg, has the same card.

http://deanna.freeshell.org/dmesg.boot
http://deanna.freeshell.org/Xorg.0.log.old

GNU gdb 6.3
Copyright 2004 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 "i386-unknown-openbsd4.0"...
Core was generated by `Xorg'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libz.so.4.1...done.
Loaded symbols for /usr/lib/libz.so.4.1
Reading symbols from /usr/lib/libm.so.2.3...done.
Loaded symbols for /usr/lib/libm.so.2.3
Reading symbols from /usr/lib/libusbhid.so.3.0...done.
Loaded symbols for /usr/lib/libusbhid.so.3.0
Reading symbols from /usr/X11R6/lib/libXau.so.9.0...done.
Loaded symbols for /usr/X11R6/lib/libXau.so.9.0
Reading symbols from /usr/X11R6/lib/libXdmcp.so.9.0...done.
Loaded symbols for /usr/X11R6/lib/libXdmcp.so.9.0
Reading symbols from /usr/lib/libc.so.40.0...done.
Loaded symbols for /usr/lib/libc.so.40.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
Reading symbols from /usr/X11R6/lib/modules/fonts/libbitmap.so...done.
Loaded symbols for /usr/X11R6/lib/modules/fonts/libbitmap.so
Reading symbols from /usr/X11R6/lib/modules/libpcidata.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libpcidata.so
Reading symbols from /usr/X11R6/lib/modules/extensions/libdbe.so...done.
Loaded symbols for /usr/X11R6/lib/modules/extensions/libdbe.so
Reading symbols from /usr/X11R6/lib/modules/extensions/libextmod.so...done.
Loaded symbols for /usr/X11R6/lib/modules/extensions/libextmod.so
Reading symbols from /usr/X11R6/lib/modules/extensions/libglx.so...done.
Loaded symbols for /usr/X11R6/lib/modules/extensions/libglx.so
Reading symbols from /usr/X11R6/lib/modules/extensions/libGLcore.so...done.
Loaded symbols for /usr/X11R6/lib/modules/extensions/libGLcore.so
Reading symbols from /usr/X11R6/lib/modules/extensions/librecord.so...done.
Loaded symbols for /usr/X11R6/lib/modules/extensions/librecord.so
Reading symbols from /usr/X11R6/lib/modules/extensions/libxtrap.so...done.
Loaded symbols for /usr/X11R6/lib/modules/extensions/libxtrap.so
Reading symbols from /usr/X11R6/lib/modules/fonts/libfreetype.so...done.
Loaded symbols for /usr/X11R6/lib/modules/fonts/libfreetype.so
Reading symbols from /usr/X11R6/lib/modules/fonts/libtype1.so...done.
Loaded symbols for /usr/X11R6/lib/modules/fonts/libtype1.so
Reading symbols from /usr/X11R6/lib/modules/drivers/ati_drv.so...done.
Reading symbols from /usr/X11R6/lib/modules/input/mouse_drv.so...done.
Loaded symbols for /usr/X11R6/lib/modules/input/mouse_drv.so
Reading symbols from /usr/X11R6/lib/modules/input/kbd_drv.so...done.
Loaded symbols for /usr/X11R6/lib/modules/input/kbd_drv.so
Reading symbols from /usr/X11R6/lib/modules/drivers/radeon_drv.so...done.
Loaded symbols for /usr/X11R6/lib/modules/drivers/radeon_drv.so
Reading symbols from /usr/X11R6/lib/modules/libvgahw.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libvgahw.so
Reading symbols from /usr/X11R6/lib/modules/libint10.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libint10.so
Reading symbols from /usr/X11R6/lib/modules/libddc.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libddc.so
Reading symbols from /usr/X11R6/lib/modules/libi2c.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libi2c.so
Reading symbols from /usr/X11R6/lib/modules/libfb.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libfb.so
Reading symbols from /usr/X11R6/lib/modules/libramdac.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libramdac.so
Reading symbols from /usr/X11R6/lib/modules/libxaa.so...done.
Loaded symbols for /usr/X11R6/lib/modules/libxaa.so
Reading symbols from /usr/X11R6/lib/modules/multimedia/theatre_detect_drv.so...done.
Loaded symbols for /usr/X11R6/lib/modules/multimedia/theatre_detect_drv.so
#0  0x064bae58 in _mesa_make_current (newCtx=0x89411000, drawBuffer=0x8367f000, readBuffer=0x8367f000) at context.c:1562
1562             if (!newCtx->DrawBuffer || newCtx->DrawBuffer->Name == 0) {
(gdb) bt
#0  0x064bae58 in _mesa_make_current (newCtx=0x89411000, drawBuffer=0x8367f000, readBuffer=0x8367f000) at context.c:1562
#1  0x0665ea09 in XMesaMakeCurrent2 (c=0x89411000, drawBuffer=0x8367f000, readBuffer=0x8367f000) at xm_api.c:2088
#2  0x0665b4d6 in __MESA_makeCurrent (gc=0x89411000) at xf86glx.c:831
#3  0x0370a7bd in DoMakeCurrent (cl=0x7eee1980, drawId=8388641, readId=8388641, contextId=8388638, tag=0) at glxcmds.c:651
#4  0x0370a2b8 in __glXMakeCurrent (cl=0x7eee1980, pc=0x7f551014 "\217\005\004") at glxcmds.c:405
#5  0x037111ed in __glXDispatch (client=0x7f7cd000) at glxext.c:447
#6  0x1c08b9f5 in Dispatch () at dispatch.c:459
#7  0x1c0a2729 in main (argc=5, argv=0xcf7fa6a0, envp=0xcf7fa6b8) at main.c:450



pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x1002 device 0x4c57
 ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]

PCI: 01:00:0: chip 1002,4c57 card 1014,0517 rev 00 class 03,00,00 hdr 00

Reply | Threaded
Open this post in threaded view
|

Re: Xorg crash; Xlib errors

Matthieu Herrb
Deanna Phillips wrote:

>
> Here are some issues I'm trying to resolve with the Gnash port.
> Gnash is a shockwave flash player that is currently using
> OpenGL, a GTK gui, the GTK GL extensions (gtkglext), and
> pthreads.
>
> Problem 1:
>
> Something like 50% of the time, it hangs or fails to start,
> giving Xlib errors such as:
>
> Xlib: sequence lost (0x10000 > 0xb8) in reply type 0x1!
>
> Here's the bug: https://savannah.gnu.org/bugs/?18062
>
> This problem has only been reported on OpenBSD.

This is generally caused either by applications that do Xlib calls in
their Xlib error handler, or by multi-threaded application that use a
non-thread-safe version of libX11.

Normally libX11 is built on OpenBSD to be thread safe, but it's
difficult to say if it's really the case, given the number of difficult
problems in this area.

>
> Problem 2:
>
> When troubleshooting this, I found that one of the gtkglext
> example programs crashes the X server.  I don't know whether or
> not this is related to the gnash bug.
>
> To try to reproduce it, make the x11/gtkglext port, cd into the
> examples directory and make there, then run the pixmap example.

I can't reproduce this on my machines for now. Il will try later on more
 machines/graphics cards.

Sorry not be be able to be more helpful.
--
Matthieu Herrb