Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 429642

Summary: =sys-kernel/gentoo-sources-3.5.0 with =x11-drivers/xf86-video-nouveau-0.0.16 - After enabling 3D acceleration X often crashes, segfaults on restart
Product: Gentoo Linux Reporter: Luca Wehrstedt <luca.wehrstedt>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal CC: nikoli, x11
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://cgit.freedesktop.org/nouveau/linux-2.6/commit/?h=drm-nouveau-fixes&id=2064db725cc6d4ea19a24c138bc37939b63e3ae6
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=54359
Whiteboard: linux-3.6
Package list:
Runtime testing required: ---
Attachments: The dmesg output
The X.org log
Another dmesg output
Another X.org log

Description Luca Wehrstedt 2012-08-03 13:12:27 UTC
I have a NVIDIA GeForce 8600GT graphics card. I've been using nouveau for more than a year by now without any kind of problems. Yet, a few days ago I enabled the last kernel options I needed to get 3D hardware acceleration. Since then I'm having some issues. Some times X suddenly hangs (I cannot even move the pointer) and, after a few seconds, it crashes and I see a TTY console. Then, I think, gdm tries to restart it and after a few seconds I have again some graphics on the screen which often is a corrupted image of what I was seeing before the crash. Then X crashes again, gdm tries to restart it and so on until I get to log in the TTY and kill gdm (and xdm).

I have been able to get the dmesg output in one of these situations and an X log. I'll attach them both to this bug. In the dmesg logs you'll see some "SysRq : Keyboard mode set to system default" messages. That was me trying to get a usable keyboard to log in the TTY, because I was getting some keys double-typed and other missed. The X log is from one of those X processes that gdm tried to start *after* the first crash.

I can't see a pattern in the situations that cause this to appear: for example one time I was opening the browser, another time I had just closed a video player. On the other hand the 3D acceleration works just fine: I've been able to play openarena with a high framerate.

I'm not able to reproduce this bug at will. Yet, it happens frequently, several times a day.

Reproducible: Sometimes




Portage 2.1.11.9 (default/linux/amd64/10.0/no-multilib, gcc-4.6.3, glibc-2.15-r2, 3.5.0-gentoo x86_64)
=================================================================
System uname: Linux-3.5.0-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-gentoo-2.1
Timestamp of tree: Tue, 24 Jul 2012 09:35:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.5, 1.12.2
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL skype-eula AdobeFlash-10.3 googleearth dlj-1.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-m64 -march=core2 -O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-m64 -march=core2 -O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news nostrip parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en it de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus ac3 acl acpi alsa amd64 bash-completion berkdb bluetooth bluray bzip2 cairo cdda cli clutter colord consolekit cracklib crypt cups cxx dbus dconf device-mapper devicekit dri drm dts dvd empathy flac fortran gallium gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk+ gtk3 h264 iconv jpeg libdrm libnotify libproxy libudev libv4l libv4l2 matroska mesa metacity mkv mmx mmxext modules mp3 mpeg mudflap mutter nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit posix pppd pulseaudio python qt3support readline session spell sse sse2 sse3 sse4_1 ssl ssse3 svg tcpd telepathy theora threads tiff udev udisks unicode upower usb v4l v4l2 vorbis win64codecs x264 xinerama xorg xrandr 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 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en it de" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Luca Wehrstedt 2012-08-03 13:14:54 UTC
Created attachment 320164 [details]
The dmesg output
Comment 2 Luca Wehrstedt 2012-08-03 13:15:13 UTC
Created attachment 320166 [details]
The X.org log
Comment 3 Luca Wehrstedt 2012-08-05 09:23:32 UTC
I think this problem may be related to a suspend/resume issue. Yesterday I worked all day without a single crash. Then I suspended the computer for the night and today, a few minutes after resuming it, it crashed. I cannot remember if this was also the case the other times this bug happened, but since I suspend frequently it's very likely.

I'm attaching again some logs from dmesg and X. This X log comes from the first crash, and not from subsequent ones.
Comment 4 Luca Wehrstedt 2012-08-05 09:25:29 UTC
Created attachment 320436 [details]
Another dmesg output
Comment 5 Luca Wehrstedt 2012-08-05 09:25:50 UTC
Created attachment 320438 [details]
Another X.org log
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-09-01 10:06:05 UTC
This looks like a kernel problem. You could try using x11-base/nouveau-drm instead of in-kernel nouveau to see if it is fixed in newer nouveau code.

If not, it would be good to file a bug for this at https://bugs.freedesktop.org/ (if no report already exists) so that upstream is aware of the issue.
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-01-20 17:45:34 UTC
> 3.5.0-gentoo

Can you try more recent kernels like the stable gentoo-sources-3.6.11 or the development git-sources-3.8_rc3?
Comment 8 Luca Wehrstedt 2013-01-20 18:03:37 UTC
Sorry, I forgot to mention here that I fixed this issue after reporting it upstream: https://bugs.freedesktop.org/show_bug.cgi?id=54359