Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255327 - x11-base/xorg-x11 crashes whenever OpenGL is called
Summary: x11-base/xorg-x11 crashes whenever OpenGL is called
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 23:46 UTC by Stefano Priore
Modified: 2009-02-03 16:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg.0.log after crash (Xorg.0.log.old,42.00 KB, text/plain)
2009-01-19 16:59 UTC, Stefano Priore
Details
Current xorg.conf (xorg.conf,2.73 KB, text/plain)
2009-01-19 16:59 UTC, Stefano Priore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Priore 2009-01-17 23:46:22 UTC
Whenever I launch an OpenGL application (Google Earth, Stellarium, glxinfo, etc.) the xorg server crashes badly. I have attached the backtrace, the output of emerge --info and lspci and xorg.conf.

Reproducible: Always

Steps to Reproduce:
1. Start X
2. Run glxinfo
3. Crash!




Backtrace
---------
0: X(xf86SigHandler+0x6d) [0x4746ee]
1: /lib/libc.so.6 [0x7f81d7ede430]
2: X(xf86_reload_cursors+0x67) [0x4ac2bc]
3: /usr/lib64/xorg/modules/drivers//intel_drv.so [0x7f81d670cf0f]
4: X(xf86CrtcSetMode+0x256) [0x4ab515]
5: X(xf86SetDesiredModes+0x12c) [0x4ab891]
6: /usr/lib64/xorg/modules/drivers//intel_drv.so [0x7f81d671045b]
7: X [0x48560a]
8: X [0x484b37]
9: /usr/lib64/xorg/modules/extensions//libglx.so [0x7f81d75be0e1]
10: X(xf86Wakeup+0x3e4) [0x475a4a]
11: X(WakeupHandler+0x4a) [0x450f37]
12: X(WaitForSomething+0x1c0) [0x557934]
13: X(Dispatch+0x8b) [0x44d60c]
14: X(main+0x458) [0x437c6d]
15: /lib/libc.so.6(__libc_start_main+0xf4) [0x7f81d7ecbb74]
16: X(FontFileCompleteXLFD+0x209) [0x436ff9]

emerge --info
-------------
Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2200_@_2.20GHz-with-glibc2.2.5
Timestamp of tree: Sat, 17 Jan 2009 08:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 arts authdaemond bash-completion berkdb bidi bluetooth branding bzip2 cairo cddb cdr cjk cli cracklib crypt css cups curl curlwrappers dbus djvu dri dts dv dvd dvdr dvdread emboss encode evo exif expat fam fbcon ffmpeg firefox flac fontconfig fortran ftp gd gdbm gif gimp glut gnuplot gnutls gpm graphviz hal hddtemp iconv imagemagick ipod isdnlog java javascript jbig joystick jpeg jpeg2k kde lame latex lcms libcaca libnotify libsamplerate lm_sensors lzo m17n-lib mad maildir midi mikmod mime mmx mng mp3 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nntp nptl nptlonly nsplugin ntfs offensive ogg openexr opengl openmp pam pcre pda pdf perl png ppds pppd python qt3 qt3support qt4 quicktime raw readline recode reflection rss samba sasl sdl session shorten skey slang smp sox speex spell spl sse sse2 ssl startup-notification svg sysfs syslog szip tcpd theora threads tiff timidity truetype unicode usb v4l v4l2 vcd vim-syntax vnc vorbis wavpack wmf x264 xattr xcomposite xface xine xml xorg xpm xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

lspci
-----
00:00.0 Host bridge: Intel Corporation DRAM Controller (rev 10)
00:02.0 VGA compatible controller: Intel Corporation Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

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

Section "Files"
        RgbPath      "/usr/share/X11/rgb"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "/usr/share/fonts/misc/"
        FontPath     "/usr/share/fonts/TTF/"
        FontPath     "/usr/share/fonts/OTF"
        FontPath     "/usr/share/fonts/Type1/"
        FontPath     "/usr/share/fonts/100dpi/"
        FontPath     "/usr/share/fonts/75dpi/"
EndSection

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "it"
EndSection

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

Section "Monitor"
        #DisplaySize      330   250     # mm
        Identifier   "Monitor0"
        VendorName   "GSM"
        ModelName    "00S"
 ### Comment all HorizSync and VertRefresh values to use DDC:
        HorizSync    30.0 - 70.0
        VertRefresh  50.0 - 160.0
        Option      "DPMS"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "ColorKey"                  # <i>
        #Option     "CacheLines"                # <i>
        #Option     "Dac6Bit"                   # [<bool>]
        Option     "DRI"                        # [<bool>]
        #Option     "NoDDC"                     # [<bool>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "XvMCSurfaces"              # <i>
        #Option     "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Integrated Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "dri"
        Mode 0666
EndSection

Section "Extensions"
        Option "Composite" "Enable"
EndSection
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-01-18 21:06:15 UTC
Please try rebuilding the following packages (in that order) :
 - libdrm
 - mesa
 - xorg-server
 - xf86-video-intel

And please paste here the versions of those packages you are currently using.

Thanks
Comment 2 Stefano Priore 2009-01-18 23:38:46 UTC
I have followed your instructions, but unfortunately nothing has changed... these are the versions that I'm currently using:

x11-libs/libdrm-2.3.0
media-libs/mesa-6.5.2-r1
x11-base/xorg-server-1.3.0.0-r6
x11-drivers/xf86-video-intel-2.1.1
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-01-19 13:51:25 UTC
Could you attach your xorg.conf and your Xorg.0.log?

Thanks
Comment 4 Stefano Priore 2009-01-19 16:59:02 UTC
Created attachment 179001 [details]
Xorg.0.log after crash
Comment 5 Stefano Priore 2009-01-19 16:59:44 UTC
Created attachment 179003 [details]
Current xorg.conf
Comment 6 Stefano Priore 2009-01-19 17:02:25 UTC
Ok. The Xorg.0.log.old is "fresh": I've restarted the X server, and the first thing I did was to open a terminal and run 'glxinfo'. the X server promptly crashed and restarted.

It looked like glxinfo succeeded to output the "Unable to open display :0" message, but I'm not sure, because the server crashed the very next moment.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-19 19:15:04 UTC
I'd prefer to "fix" this by stabilizing newer versions. Maybe you could test out xorg-server 1.5.3-r1.
Comment 8 Stefano Priore 2009-01-19 21:49:14 UTC
Hah, so you are suggesting to skip entirely the 1.4 release and live dangerously!

Ok. autounmask x11-base/xorg-server-1.5.3-r1 has added these packages to package.keywords... let's try what happens: I guess I can always revert the changes.

=x11-base/xorg-server-1.5.3-r1 ~amd64
=x11-libs/pixman-0.12.0 ~amd64
=x11-libs/libpciaccess-0.10.5 ~amd64
=x11-libs/libpciaccess-0.10.4 ~amd64
=x11-libs/libpciaccess-0.10.3 ~amd64
=x11-apps/xauth-1.0.3 ~amd64
=x11-libs/libXrender-0.9.4 ~amd64
=x11-proto/xextproto-7.0.4 ~amd64
=x11-proto/xextproto-7.0.3 ~amd64
=x11-libs/libXau-1.0.4 ~amd64
=x11-proto/xproto-7.0.14 ~amd64
=x11-proto/xproto-7.0.13 ~amd64
=media-libs/mesa-7.2 ~amd64
=media-libs/mesa-7.2_rc1 ~amd64
=media-libs/mesa-7.1 ~amd64
=x11-libs/libXext-1.0.4 ~amd64
=x11-proto/inputproto-1.5.0 ~amd64
=x11-proto/inputproto-1.4.4 ~amd64
=x11-misc/xkeyboard-config-1.4 ~amd64
=x11-libs/xtrans-1.2.3 ~amd64
=x11-libs/xtrans-1.2.2 ~amd64
=x11-apps/rgb-1.0.3 ~amd64
=x11-libs/libX11-1.1.5 ~amd64
=x11-apps/xinit-1.0.8-r3 ~amd64
=x11-proto/xf86driproto-2.0.4 ~amd64
=x11-libs/libXxf86vm-1.0.2 ~amd64
=x11-proto/randrproto-1.2.2 ~amd64
=x11-libs/libXfont-1.3.4 ~amd64
=x11-libs/libXfont-1.3.3 ~amd64
=x11-proto/renderproto-0.9.3 ~amd64
=x11-drivers/xf86-video-intel-2.5.1-r1 ~amd64
=x11-drivers/xf86-video-intel-2.5.1 ~amd64
=x11-drivers/xf86-video-intel-2.5.0 ~amd64
=x11-drivers/xf86-video-intel-2.4.3 ~amd64
=x11-drivers/xf86-video-intel-2.4.2-r3 ~amd64
=x11-drivers/xf86-input-keyboard-1.3.2 ~amd64
=x11-drivers/xf86-input-keyboard-1.3.1 ~amd64
=x11-drivers/xf86-input-evdev-2.1.1 ~amd64
=x11-drivers/xf86-input-evdev-2.1.0 ~amd64
=x11-drivers/xf86-input-mouse-1.4.0 ~amd64
=x11-drivers/xf86-input-mouse-1.3.0 ~amd64
=x11-drivers/xf86-input-joystick-1.4.0 ~amd64
=x11-drivers/xf86-input-joystick-1.3.3 ~amd64
=x11-drivers/xf86-input-joystick-1.3.2 ~amd64
=x11-libs/libdrm-2.4.4 ~amd64
=x11-libs/libdrm-2.4.3 ~amd64
=x11-libs/libdrm-2.4.1 ~amd64
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-19 22:47:19 UTC
(In reply to comment #8)
> Hah, so you are suggesting to skip entirely the 1.4 release and live
> dangerously!

Yep. 1.4 is crap.

> =x11-base/xorg-server-1.5.3-r1 ~amd64
> =media-libs/mesa-7.2 ~amd64
> =x11-drivers/xf86-video-intel-2.5.1-r1 ~amd64

Make sure you get these.
Comment 10 Stefano Priore 2009-01-20 23:17:10 UTC
Upgrading to the latest unstable version of the packages has mostly solved the bug: do I have to upgrade also x11-base/xorg-x11 to ~7.4?

There are some issues yet: sometimes when a window is drawn upon another window whose content changes periodically (e.g. an animated gif, a long text scrolling) then the foremost window flickers.

The same happens when the foremost window is maximized to full screen (real full screen, not simply a window maximized thru the titlebar button)

Another, maybe stranger, issue is caused by Google Earth-4.2.205.5730: the program errors out because it doesn't find enough video memory: could an explicit declaration in xorg.conf help?

Anyway, apart from these minor issues, everything seems OK - hopefully the last issue will be ironed out soon ;)
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2009-01-21 00:41:21 UTC
The meta (xorg-x11) really doesn't matter very much. You can update it if you want, but I don't think it will fix any more of your problems.

You might be able to assign more system memory to the video card in your BIOS. I don't really know.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-01-21 09:46:18 UTC
Please try setting the "Legacy3D" option to "false" in your Device section. That should free up some memory space for opengl.

Thanks
Comment 13 Stefano Priore 2009-01-21 22:57:24 UTC
Setting "Legacy3D" to "False" makes all OpenGl applications segfault, so I had to undo this change. However, upon closer investigation, the GoogleEarth bug resulted to be, well, a GoogleEarth bug i.e. not related directly to X.

Upgrading xorg-x11 to version 7.4 has had no effects on the flicker bug, and apparently has not introduced any misbehavior in the system. However, the testing period is still too short to draw any conclusion.

I'd mark this bug as fixed.

Thanks for the support!
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-02-03 16:19:32 UTC
I've added mesa 7.3 and xf86-video-intel 2.6.1 to portage. Both packages should solve the remaining 3D issues.

If they don't, please don't hesitate to open a new bug. Meanwhile, I'll be closing this one as fixed.

Thanks