Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361571 - x11-base/xorg-server-1.10.0.901 segfaults with xf86-video-nouveau when logging out from desktop
Summary: x11-base/xorg-server-1.10.0.901 segfaults with xf86-video-nouveau when loggin...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 09:47 UTC by Adrian Bassett
Modified: 2012-07-26 12:15 UTC (History)
5 users (show)

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


Attachments
Log file from xorg-server-1.10.0.901 sessiong (Xorg.0.log,48.14 KB, text/plain)
2011-04-01 09:48 UTC, Adrian Bassett
Details
Xorg.0.log (Xorg.0.log.old,32.08 KB, text/plain)
2011-04-07 10:08 UTC, Vikraman (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2011-04-01 09:47:05 UTC
After upgrading from xorg-server-1.9.5 to xorg-server-1.10.0.901 /usr/bin/X segfaults when trying to log out from desktop session (xfce).

x11-base/xorg-drivers was upgraded to 1.10 from 1.9 and x11-drvivers/xf86* were also rebuilt to avoid non-startup of X due to ABI mis-match.

My graphics device is an onboard nvidia NV63 and I am using the nouveau driver, etc. from the X11 overlay, i.e. 'live' *9999.ebuilds.

# emerge -pv libdrm mesa nouveau-drm xf86-video-nouveau
[ebuild   R   ] x11-libs/libdrm-9999  USE="libkms -static-libs" VIDEO_CARDS="nouveau radeon -intel -vmware" 
[ebuild   R   ] x11-base/nouveau-drm-99999999 
[ebuild   R   ] media-libs/mesa-9999  USE="classic egl gallium gles llvm motif nptl openvg wayland -d3d -debug -pic (-selinux)" VIDEO_CARDS="nouveau radeon -i810 -i915 -i965 -intel -mach64 -mga -r100 -r128 -r200 -r300 -r600 -savage -sis -tdfx -via -vmware" 
[ebuild   R   ] x11-drivers/xf86-video-nouveau-9999 

Apart from xf86-video-nouveau these were not rebuilt as a result of the xorg-server upgrade.  Thus the problem seems to be a directly connected to the xorg-server upgrade.

X is started using startx:

(from .xinitrc):
setxkbmap -option terminate:ctrl_alt_bksp && exec ck-launch-session dbus-launch --auto-syntax --exit-with-session startxfce4

I have tried both with my usual xorg.conf and without any xorg.conf at all, i.e. just the internal defaults.  No difference.

The effect of the segfault is that I cannot return to the normal session on VT1 as there is no resetting of the graphics mode.  I get a black screen with a non-blinking cursor in top left corner.  Whilst X is running properly I can switch between different virtual terminals and can in fact kill X via the Ctrl->Alt->Backspace key sequence and re-start it again without problem.  It is logging out from the desktop that causes the problem.

The system is not dead but is unusable from the desktop without any graphic display.  Alt->SysRq key sequences work (without displaying anything, of course) and I have to resort to halting the system using this method.

Is it useful to mention that I cannot suspend when using nouveau?  This works with the proprietary nvidia-drviver, as does logging-out from the desktop with this driver and xorg-server-1.10.0.901.

I cannot think what else, if anything, might need rebuilding at the same time as upgrading xorg-server.

Xorg.0.log to follow as attachment.



Reproducible: Always

Steps to Reproduce:
1.Upgrade xorg-server to 1.10.0.901
2.Try to logout from xfce desktop session
3.
Actual Results:  
/usr/bin/X segfaults and there is no graphics output at all on the system.  Needs hard reset to fix.
Comment 1 Adrian Bassett 2011-04-01 09:48:48 UTC
Created attachment 268099 [details]
Log file from xorg-server-1.10.0.901 sessiong
Comment 2 Vikraman (RETIRED) gentoo-dev 2011-04-07 10:06:55 UTC
Segfaults on xf86-video-intel too, I have an intel arrandale GPU.
Comment 3 Vikraman (RETIRED) gentoo-dev 2011-04-07 10:08:59 UTC
Created attachment 268831 [details]
Xorg.0.log

Xorg log file after crash
Comment 4 Adrian Bassett 2011-04-11 11:21:19 UTC
(In reply to comment #0)

Upgrading to =x11-base/xorg-server-1.10.0.902 has fixed things for me.

(libdrm, mesa, and xf86-video-nouveau are all *-9999 from x11 overlay and rebuilt from git trees current as of earlier today.)  Kernel is 2.6.38.2 with built-in nouveau-drm (current external nouveau-drm git does not build against 2.6.38.2).

This setup does not work against 2.6.37.6, but the problem there is a different one - needs an older xf86-video-nouveau version I imagine.
Comment 5 Adrian Bassett 2011-04-11 15:09:19 UTC
(In reply to comment #4)
> (In reply to comment #0)
> 
> Upgrading to =x11-base/xorg-server-1.10.0.902 has fixed things for me.

Unfortunately, and rather stupidly, I hadn't tested properly.

So, the problem remains.

Sometimes, but not always, it's possible to restore the original framebuffer with a Alt-SysRq V key sequence.

So I have reverted to xorg-server-1.9.5 again.
Comment 6 Marius Brehler 2011-06-30 19:55:11 UTC
This seems to be related to https://bugzilla.xfce.org/show_bug.cgi?id=7442 and https://bugs.gentoo.org/show_bug.cgi?id=373085

The issue also appears with x11-base/xorg-server-1.10.2 and xf86-video-intel.
Comment 7 Fabian Köster 2011-07-29 17:37:03 UTC
The bug is gone for me using version 1.10.3.
Comment 8 Fabian Köster 2011-07-29 17:37:34 UTC
(In reply to comment #7)
> The bug is gone for me using version 1.10.3.

(Using xf86-video-intel)
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-07-26 12:15:21 UTC
Please check with latest xorg-server and reopen this bug if the problem still exists.