Bug 12817

Summary: Xorg 7.3 crashes due to Mesa/GL problems
Product: Mesa Reporter: Anders Nordby <freedesktop>
Component: OtherAssignee: mesa-dev
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Anders Nordby 2007-10-15 20:57:20 UTC
According to Eric Anholt, this is due to Mesa/GL problems?

Every now and then, Xorg dies (typically while running xscreensaver):

Oct 15 17:39:40 noname kernel: pid 82286 (Xorg), uid 0: exited on signal 6 (core dumped)

Backtrace:

root@noname:/# gdb -c Xorg.core /usr/local/bin/Xorg
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...
Core was generated by `Xorg'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/local/lib/libXfont.so.1...done.
Loaded symbols for /usr/local/lib/libXfont.so.1
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/libXau.so.6...done.
Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libfontenc.so.1...done.
Loaded symbols for /usr/local/lib/libfontenc.so.1
Reading symbols from /lib/libz.so.3...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libpixman-1.so.9...done.
Loaded symbols for /usr/local/lib/libpixman-1.so.9
Reading symbols from /usr/local/lib/libhal.so.1...done.
Loaded symbols for /usr/local/lib/libhal.so.1
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libdbus-1.so.3...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.3
Reading symbols from /usr/local/lib/libXdmcp.so.6...done.
Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from /usr/lib/librpcsvc.so.3...done.
Loaded symbols for /usr/lib/librpcsvc.so.3
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/xorg/modules//libpcidata.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libpcidata.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//libextmod.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//libextmod.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//librecord.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//librecord.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//libdbe.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//libdbe.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//libglx.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//libglx.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//libxtrap.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//libxtrap.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//libdri.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//libdri.so
Reading symbols from /usr/local/lib/libdrm.so.2...done.
Loaded symbols for /usr/local/lib/libdrm.so.2
Reading symbols from /usr/local/lib/xorg/modules/fonts//libfreetype.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/fonts//libfreetype.so
Reading symbols from /usr/local/lib/xorg/modules/fonts//libtype1.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/fonts//libtype1.so
Reading symbols from /usr/local/lib/xorg/modules/drivers//i810_drv.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/drivers//i810_drv.so
Reading symbols from /usr/local/lib/xorg/modules/input//mouse_drv.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/input//mouse_drv.so
Reading symbols from /usr/local/lib/xorg/modules/input//kbd_drv.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/input//kbd_drv.so
Reading symbols from /usr/local/lib/xorg/modules//libint10.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libint10.so
Reading symbols from /usr/local/lib/xorg/modules//libvbe.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libvbe.so
Reading symbols from /usr/local/lib/xorg/modules//libvgahw.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libvgahw.so
Reading symbols from /usr/local/lib/xorg/modules//libfb.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libfb.so
Reading symbols from /usr/local/lib/xorg/modules//libxaa.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libxaa.so
Reading symbols from /usr/local/lib/xorg/modules//libshadow.so...done.
Loaded symbols for /usr/local/lib/xorg/modules//libshadow.so
Reading symbols from /usr/local/lib/xorg/modules/extensions//libGLcore.so...done.
Loaded symbols for /usr/local/lib/xorg/modules/extensions//libGLcore.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x28629867 in kill () at kill.S:2
2 RSYSCALL(kill)
[New LWP 100094]
(gdb) bt
#0 0x28629867 in kill () at kill.S:2
#1 0x2851d963 in _raise (sig=6)
at /usr/src/lib/libpthread/thread/thr_raise.c:44
#2 0x286271c6 in abort () at /usr/src/lib/libc/stdlib/abort.c:69
#3 0x080aeccd in ddxGiveUp () at xf86Init.c:1063
#4 0x080aed97 in AbortDDX () at xf86Init.c:1112
#5 0x081fc226 in AbortServer () at log.c:406
#6 0x081fc59f in FatalError (
f=0x82064c8 "Caught signal %d. Server aborting\n") at log.c:552
#7 0x080d2b24 in xf86SigHandler (signo=11) at xf86Events.c:764
#8 0x28524232 in _thr_sig_handler (sig=11, info=0xbfbfe760, ucp=0xbfbfe4a0)
at /usr/src/lib/libpthread/thread/thr_sig.c:386
#9 0xbfbfff94 in ?? ()
#10 0x0000000b in ?? ()
#11 0xbfbfe760 in ?? ()
#12 0xbfbfe4a0 in ?? ()
#13 0x00000000 in ?? ()
#14 0x28523e1c in _thr_sig_dispatch () at thr_private.h:1287
#15 0x38a587b3 in _mesa_set_enable (ctx=0x9698000, cap=3553, state=0 '\0')
at enable.c:586
#16 0x38a59ed2 in _mesa_Disable (cap=3553) at enable.c:961
#17 0x287062c3 in __glXDisp_Disable (pc=0x9059198 "รก\r")
at indirect_dispatch.c:1431
#18 0x286fd6e0 in DoRender (cl=0x9bf23c0, pc=0x9059194 "\b", do_swap=0)
at glxcmds.c:1851
#19 0x286fd737 in __glXDisp_Render (cl=0x9bf23c0, pc=0x9059164 "\220\0017")
at glxcmds.c:1865
#20 0x28702081 in __glXDispatch (client=0x9dcae00) at glxext.c:561
#21 0x081735ef in XaceCatchExtProc (client=0x9dcae00) at xace.c:299
#22 0x08083c17 in Dispatch () at dispatch.c:502
#23 0x0806dc08 in main (argc=4, argv=0xbfbfee9c, envp=0xbfbfeeb0) at main.c:452
Current language: auto; currently asm
(gdb)

My xorg.conf:

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/local/share/X11/rgb"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc:unscaled/"
FontPath "/usr/local/lib/X11/fonts/100dpi:unscaled/"
FontPath "/usr/local/lib/X11/fonts/75dpi:unscaled/"
FontPath "/usr/local/lib/X11/fonts/Type1/"
FontPath "/usr/local/lib/X11/fonts/bitstream-vera/"
FontPath "/usr/local/lib/X11/fonts/webfonts/"
FontPath "/usr/local/lib/X11/fonts/TTF/"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/sharefont"
FontPath "/usr/local/lib/X11/fonts/freefont"
EndSection

Section "Module"
Load "extmod"
Load "record"
Load "dbe"
Load "glx"
Load "GLcore"
Load "xtrap"
Load "dri"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "no"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
#DisplaySize 410 310 # mm
Identifier "Monitor0"
VendorName "FUS"
ModelName "P20-2"
VertRefresh 60
Option "DPMS"
EndSection

Section "Device"
Identifier "Card0"
Driver "i810"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1600x1200"
EndSubSection
EndSection

The problem typically occurs after running xscreensaver for a while. To reproduce:

1) Install FreeBSD 6.2-STABLE that I have (RELENG_6_2 as of october 9).

2) Install Xorg 7.3 from ports. I have xorg-server-1.4_1,1 (which uses MesaLib 7.0.1) and xorg-drivers 7.3.

3) Install and run xscreensaver.

4) Wait..
Comment 1 Niclas Zeising 2013-02-22 12:52:17 UTC
This bug can probably be closed, since FreeBSD 6.4 is obsoleted, and xorg is updated to xserver 1.7.7 and Mesa/GL 7.6.1
Comment 2 Niclas Zeising 2013-02-22 12:53:35 UTC
(In reply to comment #1)
> This bug can probably be closed, since FreeBSD 6.4 is obsoleted, and xorg is
                                         ^^^^^^^^^^^
That should read FreeBSD 6.2 of course.
> updated to xserver 1.7.7 and Mesa/GL 7.6.1

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.