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

Bug 541372

Summary: x11-base/xorg-server-1.16.4 /-1.17.1 with x11-drivers/nvidia-drivers-346.35 on Optimus hardware - segmentation fault in /usr/lib64/xorg/modules/drivers/nvidia_drv.so at ?()
Product: Gentoo Linux Reporter: tazinblack <verbeamt>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: normal CC: baccenfutter, jer, pchrist
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Xorg.0.log Version 1.16.4
Xorg.0.log version ~1.17.1

Description tazinblack 2015-02-25 20:39:33 UTC
xserver crashes at startupwith segmentation fault

Reproducible: Always

Steps to Reproduce:
1.upgrade xorg-server to 1.16.4
2.
3.
Comment 1 tazinblack 2015-02-25 20:41:31 UTC
Created attachment 397514 [details]
Xorg.0.log Version 1.16.4
Comment 2 tazinblack 2015-02-25 20:42:53 UTC
I also tried to upgrade xorg-server to testing but that did not helb.
See attachment
Comment 3 tazinblack 2015-02-25 20:44:01 UTC
Created attachment 397518 [details]
Xorg.0.log version ~1.17.1
Comment 4 bacce 2015-02-25 21:44:22 UTC
I am suffering the same issues and have been lead to the belief that it has something to do with NVIDIA Optimus and something that seems to have changed in the code around modesetting.

We could confirm in the forum that we both have this issue on a laptop with an NVIDIA Optimus.

  https://forums.gentoo.org/viewtopic-p-7709174.html#7709174

Before this issue occured I started X running startx and had the following two lines to enable the NVIDIA inside my .xinitrc:

  xrandr --setprovideroutputsource Intel NVIDIA-0
  xrandr --auto

Hope that helps.
Comment 5 tazinblack 2015-02-26 08:01:14 UTC
On my box .xinitrc looks like this:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
exec startkde

If more information is needed, please let me know.
Comment 6 Panagiotis Christopoulos (RETIRED) gentoo-dev 2015-03-03 17:56:56 UTC
Please paste your "emerge --info" and "emerge -pv xorg-server nvidia-drivers" output.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-03-11 06:42:56 UTC
Please post your `emerge --info' output in a comment.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2015-03-11 06:52:11 UTC
Comment on attachment 397518 [details]
Xorg.0.log version ~1.17.1

This segmentation fault is quite different from the one in the other Xorg log. What they might have in common is that you're using modesetting to begin with. What happens when you disable that?
Comment 9 bacce 2015-03-11 08:12:56 UTC
Back in the days, when I had no modesetting in my .xinitrc on my NVIDIA Optimus equipped laptop, I would end up with a black blank screen. I dug myself through tutorials in the net, finally ending up with the modesetting solution, which worked perfectly fine the past 12-ish months.

I've just commented out the xrandr commands in my .xinitrc and my X starts fine but without any 3D support. eselect opengl ist set to nvidia but glxgears fails with:

> Xlib:  extension "GLX" missing on display ":0.0".
> Error: couldn't get an RGB, Double-buffered visual
Comment 10 tazinblack 2015-03-26 20:09:16 UTC
for me x11-drivers/nvidia-drivers-346.47 has fixed the problem