Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339135 - xorg-server-1.9 crashes when QT app is started
Summary: xorg-server-1.9 crashes when QT app is started
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2010-09-29 14:59 UTC by Saul Peebsen
Modified: 2010-10-18 23:04 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Saul Peebsen 2010-09-29 14:59:04 UTC
xorg-server-1.9.x crashes with segfault when any QT app is started. I rebuilt mesa and qt-core just in case, nothing changed. Not much in Xorg log, it's every time the same:

[   205.085] 0: /usr/bin/X (xorg_backtrace+0x28) [0x45d858]
[   205.085] 1: /usr/bin/X (0x400000+0x5ddd9) [0x45ddd9]
[   205.085] 2: /lib/ (0x3599600000+0xfc20) [0x359960fc20]
[   205.085] 3: /usr/bin/X (0x400000+0x160c9f) [0x560c9f]
[   205.085] 4: /usr/bin/X (0x400000+0x44c09) [0x444c09]
[   205.085] 5: /usr/bin/X (0x400000+0x23e6a) [0x423e6a]
[   205.085] 6: /lib/ (__libc_start_main+0xfd) [0x3598a1ed2d]
[   205.085] 7: /usr/bin/X (0x400000+0x23a09) [0x423a09]
[   205.085] Segmentation fault at address 0x4
[   205.085] 
Fatal server error:
[   205.085] Caught signal 11 (Segmentation fault). Server aborting

Reproducible: Always

Steps to Reproduce:
1.Start Xorg using latest nvidia-drivers
2.Start an application that uses QT

Actual Results:  
X server is killed due to segfault.

 ~ $ emerge --info xorg-server
Portage 2.2_rc88 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r9 x86_64)
                        System Settings
System uname: Linux-2.6.35-gentoo-r9-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 29 Sep 2010 13:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=core2 -mcx16 -msahf -O2 -pipe"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mcx16 -msahf -O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
LINGUAS="en_US en"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
USE="X acpi alsa amd64 berkdb bzip2 cairo cli cups cxx dbus dga dri exif fftw flac fontconfig fortran gdbm gnutls iconv id3tag imagemagick jbig jpeg lcms libsamplerate mmx modules mp3 mp4 mudflap multilib ncurses nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png policykit python readline sdl session spell sse sse2 sse3 ssl ssse3 svg sysfs threads thunar unicode usb vdpau vorbis xcomposite xft xinerama xorg xv xvmc 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" LIRC_DEVICES="all" RUBY_TARGETS="ruby18" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 

                        Package Settings

x11-base/xorg-server-1.9.0-r2 was built with the following:
USE="(multilib) nptl xorg -dmx -doc -ipv6 -kdrive -minimal -static-libs -tslib -udev"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,lazy"
Comment 1 Saul Peebsen 2010-09-29 16:47:04 UTC
Just found disabling xinerama allows me to run QT apps. Using TwinView right now.
Comment 2 Jory A. Pratt gentoo-dev 2010-09-30 16:11:52 UTC
binary drivers are not supported. They are provided for your convience only.
Comment 3 Kevin McCarthy 2010-09-30 19:10:16 UTC
I have this same problem, actually in Archlinux.  This is the only thing Google can find.  I can also reproduce the bug with the open-source nouveau "nv" driver.  Same crash backtrace, only when starting any qt app.

If I disable Xinerama, it works fine, with either driver. 

Since the bug does not depend on the closed-source nvidia binary, the rationalle for closing this bug seems to be invalid.
Comment 4 Kevin McCarthy 2010-10-06 20:10:57 UTC
A couple other places I have seen this bug reported lately:
Comment 5 Kevin McCarthy 2010-10-18 19:22:30 UTC
OK, turns out it was a bug in Xorg.  Here's the patch:
Comment 6 Saul Peebsen 2010-10-18 23:04:47 UTC
Thanks, much appreciated!