Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349809 - ksmserver crashes with segfault with new x11-base/xorg-server-1.9.2 and x11-drivers/nvidia-drivers-260.19.29
Summary: ksmserver crashes with segfault with new x11-base/xorg-server-1.9.2 and x11-d...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 18:14 UTC by Melendro
Modified: 2012-06-19 04:16 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info_proto1.txt,5.09 KB, text/plain)
2011-01-02 16:38 UTC, Zsolti
Details
xorg.conf (xorg.conf,6.12 KB, text/plain)
2011-01-02 16:41 UTC, Zsolti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Melendro 2010-12-26 18:14:04 UTC
With new xorg-server 1.9.2 and nvidia-drivers 260.19.29, X dies just after initiating the KDE session. The only related log entry I've found is in /var/log/messages and says:

kernel: ksmserver[9788]: segfault at 8 ip 00007f6f45276f1b sp 00007f6f388a8378 error 4 in libQtDBus.so.4.6.3[7f6f45232000+75000]
kdm[4167]: X server for display :0 terminated unexpectedly

The workaround I've found is to switch opengl to xorg-x11 instead of nvidia (eselect opengl set xorg-x11), but rendering is too sloooooow.

It seems to be a problem related with new nvidia drivers opengl support and/or new xorg-server.

Versions installed yesterday (before the problem appeared):
New kernel (gentoo-sources-2.6.36-r5)
xorg-server-1.9.2 vdpau-video-0.7.3_pre2 mesa-7.9 libdrm-2.4.22 glproto-1.4.12 xf86-input-evdev-2.5.0 xf86-video-fbdev-0.4.2 xf86-video-vesa-2.3.0 (and more than 100 related packages)
nvidia-drivers-260.19.29
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-27 17:54:26 UTC
Please paste your `emerge --info' output in a comment.
Comment 2 Melendro 2010-12-27 20:29:32 UTC
Here you have:

~ $ sudo emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-1.12.14
Timestamp of tree: Mon, 27 Dec 2010 01:45:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 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.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/portage/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X X509 a52 aac aalib accessibility acl acpi alsa amd64 amr apache2 apm asf audiofile berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr clamav cli consolekit cracklib crypt css cups curl cxx dbus dirac dri dts dvd dvdr embedded emboss enca encode exif faac faad fam ffmpeg firefox flac fortran ftp gcrypt gdbm gdu geoip gif gimp glut gnutls gphoto2 gpm gstreamer gtk hal httpd iconv id3tag idn ipod java javascript jpeg kate kde lcms libass libcaca libmms libnotify libtiger lm_sensors mad matroska midi mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mtp mudflap multilib musepack musicbrainz mysql ncurses network nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl png policykit portaudio ppds pppd python qt3support qt4 rdesktop readline rtc rtsp samba sasl scanner schroedinger sdl session smp speex spell sse sse2 ssl startup-notification subtitles svg sysfs taglib tcpd theora threads tiff timidity tordns truetype udev unicode usb vaapi vcd vcdx vdpau vorbis vpx wav webm wifi wma wxwidgets wxwindows x264 xcb xine xml xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" 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" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Alex Domingo 2010-12-27 20:34:09 UTC
I think that I'm experiencing this bug in a quite different setup.

I'm on a amd64 Gentoo with Gnome desktop and since the last xorg-server-1.9.2 and nvidia-drivers-260.19.29 stabilization some 32 bit games started crashing with "Segmentation violation" errors though they used to work just fine before the update.

For example, Machinarium fail produces this log line in /var/log/messages:
kernel: Machinarium[3140]: segfault at fffffff8 ip 00000000f35c6225 sp 00000000ffb6f950 error 4 in libnvidia-glcore.so.260.19.29[f2789000+1645000]

And even thought this error is related to libnvidia-glcore.so and not libQtDBus.so (as in the reporter's case) the same workaround applies, and switching to xorg-x11 renderer solves it.

I'm sorry if my report has nothing to do with this one, if you confirm that they are actually related I'll submit my `emerge --info`.
Comment 4 Melendro 2010-12-27 20:40:28 UTC
I forgot to say that changing opengl from nvidia to xorg-x11 is not enough.

X crashes less often, but still crashes sometimes. Now without any log entry in all log files, except kdm reporting that X has crashed:
kdm[14371]: X server for display :0 terminated unexpectedly

I've had to mask x11-base/xorg-server-1.9.2 and x11-apps/xinit-1.3.0-r1 and now xorg-server-1.7.7-r1 is working fine with new nvidia-drivers-260.19.29.
Comment 5 Melendro 2010-12-27 20:51:46 UTC
xorg-server-1.7.7-r1 works fine even with opengl set to nvidia

(Sorry for the multiple messages)
Comment 6 Zsolti 2011-01-02 16:37:25 UTC
I can confirm this. xorg-server-1.7.7-r1 worked fine. 1.9.2 crashes with nvidia-modules. Dunno if its related but it tries to load dri modules despite i disabled both: dri and dri2, after that it crashes. 
I just switched to nouveau.
Comment 7 Zsolti 2011-01-02 16:38:20 UTC
Created attachment 258650 [details]
emerge --info
Comment 8 Zsolti 2011-01-02 16:41:40 UTC
Created attachment 258652 [details]
xorg.conf
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2011-04-12 21:42:21 UTC
Happens in both kde and gnome and looks nvidia-specific, reassigning...
Comment 10 Doug Goldstein (RETIRED) gentoo-dev 2012-06-19 04:16:14 UTC
Another similar situation to bug #350336. Turns out NVIDIA drivers were conforming to the Khornos OpenGL spec headers and X.org and mesa were not. X.org and mesa have done much to improve their issues.

Try with a newer software stack and feel free to reopen if its still an issue.