After upgrading to xorg 1.13, I have been getting the following error when shutting down x and returning to the console. However, while X is running, everything seems fine. I can post additional information if needed, but I'm not sure exactly what would help in resolving this.

I'm not very experienced at troubleshooting Linux error messages like this, but I glanced through /var/log/Xorg.0.log and do not see any errors with anything. If I roll back to the 1.12 version of xorg that I was running, the server exits normally and I do not see any errors.

Thanks!

Last edited by fhaddad78 on Thu Jan 03, 2013 7:34 pm; edited 2 times in total

While there are many posts about people with problem with the new xorg-server 1.13, interestingly there no 1 central root cause. For one person, they forgot to rebuild the drviers afterwards; one had a problem becasue they had an xorg.conf and shouldn't; one having problem because their Xorg driver is now KMS-only; one was missing their card in VIDEO_DRIVERS; and - in my case, the default gdm file was passing X a command line that caused it to crash.

One thing that might help is to get a better backtrace, if you have splitdebug enabled (if not, enabling it requires changes CFLAGS and FEATURES and rebuilding the entire system). Tricky part is FINDING the core dump, in my case, it was in /var/gdm, so if you can replicate this without the DM (by using startx) it makes that part easier.

@sgao I don't have an xorg.conf file in /etc/X11. However, I did try removing the display configuration file /usr/share/X11/xorg.conf.d/20-nvidia.conf to see if that was causing the issue, but after removing it, X wouldn't even start. The error message said something about not finding a display.

@sgao Thanks for the quick reply. Unfortunately none of the suggested steps worked. Out of curiosity, when you are suggesting steps to try and resolve the issue, what sorts of things do you think about? The reason I ask is, I don't have any clue as to what could be causing the problem, so it's hard for me to troubleshoot.

Today I pulled out my Nvidia card and removed all the Nvidia drivers to try the Intel GPU built into my core i5 2500k. I reconfigured/compiled the kernel and removed the 20-nvidia.conf file in /usr/share/X11/xorg.conf.d, but I am still getting the segmentation fault message on exit.

I added to my .xinitrc file the following line to enable/configure dual monitors:

I tried the 2.19 intel drivers and had the same result, so I went back to xorg-server 1.12.4 and all is well in the world again. This is one of those issues I don't know how to troubleshoot and I can't seem to find any similar topics on-line.

I had to revert to xorg-server-1.12.4 too. In my case it was because the latest version of the mach64 driver (x11-drivers/xf86-video-mach64-6.9.3) won't build with xorg-server-1.13.0-r1. _________________Clevo W230SS: amd64, OpenRC, Optimus.
Compal NBLB2: ~amd64, OpenRC, FGLRX, dual booting with Windows 7 Professional 64-bit.
KDE on both laptops.Fitzcarraldo's blog

I may have "spoken" too soon, since I did get a couple of "hangups" later.
Anyway, I suggest you put your "USE" flags into /etc/portage/package.use, and then just execute 'emerge -uDN sys-fs/udev', as a more 'correct' method of operation.
ie:--
sys-fs/udev <list of desired flags>

The flags I have set are 'gudev hwdb introspection keymap rule_generator'. You can check your settings with 'equery u sys-fs/udev'. That will show you a list of set and unset flags.

I should also point out that I use 'slim' as a login manager, have a radeon ( ati) graphics card and use enlightenment as desktop manager. That may have some bearing, for a second computer I have with a nividia card and gnome 2 gave no problems at all on upgrade.

USE flags.
I actually do use a package.use file where I set all my USE flags. What I posted was just for you to see all the possible flags and how I had them set.

Bug 445158
I think that's a slightly different bug. Its regarding an ATI graphics card and a segmentation fault on STARTUP. I am able to start and successfully run the xorg-server. My issue is when I shut it down and return to the console. I boot my machine in console mode and use startx to launch an xsession.

Openrc
I do not think the cause is openrc. I hadn't updated my version prior to upgrading xorg-server to 1.13. I did upgrade openrc afterwards, but I can confirm I was getting the seg fault on server shutdown prior to upgrading openrc.

When searching the web for xorg 1.13 segmentation fault on shutdown, my post here is the only one that appears. I know others are getting segmentation faults but in their cases its when trying to start the x server. I don't know if that would be the same issue as mine or not though. The only thing I can confirm 100% is that my issue is directly related to xorg 1.13 because the issue goes away when I revert back to a prior version.

I guess I'll just keep on doing research and see what happens when another update to the xserver is released.

I recently switched to the the unstable tree and upgraded my entire system. This of course put xorg-server 1.13.0-r1 back along with the Intel 2.20.15 driver. In addition, pretty much every single package was updated and I'm still getting the segmentation fault when shutting down X.

Lastly, I noticed today (after upgrading to the 3.6. kernel the following lines in dmesg: