Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Xorg segfaults, but GDM welcome screen loads (http://www.linux-archive.org/gentoo-user/485279-xorg-segfaults-but-gdm-welcome-screen-loads.html)

Grant 02-04-2011 11:54 PM

Xorg segfaults, but GDM welcome screen loads
 
>> Yesterday I caught up with portage and updated quite a few packages on
>> a remote workstation. *The system hadn't been updated for about a
>> month. *The updates included some xorg stuff and some xfce4 stuff.
>> Today when the workstation's user logged in via gdm, she clicked the
>> xfce4 "Migrate Config" option, something weird happened, and she ended
>> up back on the gdm welcome screen. *Now whenever she logs is via gdm,
>> the screen immediately goes black and she is routed back to the gdm
>> welcome screen again. *When I have grsecurity enabled I get this in
>> dmesg:
>>
>> Segmentation fault occurred at 000068e453633fdc in
>> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
>> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
>
>
> When you upgraded x.org, did you also rebuild it's drivers?

I rebuilt nv but not evdev. Could that be responsible for this? I'm
not sure how since the gdm welcome screen comes up and the keyboard
works fine there for username/password input.

- Grant


> There should have been an elog about it, it's not something that protage can
> tarck easily as the driver's version numbers did not change.
>
>
>
>
>
>>
>> She also tried skipping gdm and issuing startxfce4 manually but it
>> fails in a similar way and displays "disconnected from session
>> manager". *I get this in Xorg.0.log:
>>
>> Backtrace:
>> [ * *74.799] 0: /usr/bin/X (xorg_backtrace+0x28) [0x49eeb8]
>> [ * *74.799] 1: /usr/bin/X (0x400000+0x62849) [0x462849]
>> [ * *74.799] 2: /lib/libpthread.so.0 (0x64727eac2000+0xf3f0)
>> [0x64727ead13f0] [ * *74.800] 3: /usr/lib64/xorg/modules/drivers/nv_drv.so
>> (0x64727bed7000+0x112d0) [0x64727bee82d0]
>> [ * *74.800] 4: /usr/lib64/xorg/modules/libshadowfb.so
>> (0x64727a682000+0x3db2) [0x64727a685db2]
>> [ * *74.800] 5: /usr/bin/X (0x400000+0x2da29) [0x42da29]
>> [ * *74.800] 6: /usr/bin/X (0x400000+0x2eda9) [0x42eda9]
>> [ * *74.800] 7: /usr/bin/X (0x400000+0x2475a) [0x42475a]
>> [ * *74.800] 8: /lib/libc.so.6 (__libc_start_main+0xe6) [0x64727dcb2ba6]
>> [ * *74.800] 9: /usr/bin/X (0x400000+0x242f9) [0x4242f9]
>> [ * *74.800] Segmentation fault at address 0x64727462bfdc
>> [ * *74.800]
>> Fatal server error:
>> [ * *74.800] Caught signal 11 (Segmentation fault). Server aborting
>>
>> and when grsecurity is enabled I get this in dmesg:
>>
>> Segmentation fault occurred at 000064727462bfdc in
>> /usr/bin/Xorg[X:4647] uid/euid:1003/0 gid/egid:1010/1010, parent
>> /usr/bin/xinit[xinit:4646] uid/euid:1003/1003 gid/egid:1010/1010
>>
>> I have tried disabling all security options in the kernel but I get
>> the same results with the exception of the dmesg info. *I tried
>> re-emerging xorg-server, xf86-video-nv, xinit, and gdm. *Strangely,
>> after re-emerging xorg-server and xinit there were files to change in
>> etc-update. *I don't see how that's possible since I'm caught up with
>> emerge -DuN world. *revdep-rebuild comes up with nothing. *I'm running
>> an emerge -e world now. *It's weird that the gdm welcome screen will
>> load (which implies xorg) but nothing afterward. *Any ideas?
>>
>> - Grant

Florian Philipp 02-05-2011 10:44 AM

Xorg segfaults, but GDM welcome screen loads
 
Am 04.02.2011 23:26, schrieb Grant:
> Yesterday I caught up with portage and updated quite a few packages on
> a remote workstation. The system hadn't been updated for about a
> month. The updates included some xorg stuff and some xfce4 stuff.
> Today when the workstation's user logged in via gdm, she clicked the
> xfce4 "Migrate Config" option, something weird happened, and she ended
> up back on the gdm welcome screen. Now whenever she logs is via gdm,
> the screen immediately goes black and she is routed back to the gdm
> welcome screen again. When I have grsecurity enabled I get this in
> dmesg:
>
> Segmentation fault occurred at 000068e453633fdc in
> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
>
> She also tried skipping gdm and issuing startxfce4 manually but it
> fails in a similar way and displays "disconnected from session
> manager". I get this in Xorg.0.log:
>
> Backtrace:
> [ 74.799] 0: /usr/bin/X (xorg_backtrace+0x28) [0x49eeb8]
> [ 74.799] 1: /usr/bin/X (0x400000+0x62849) [0x462849]
> [ 74.799] 2: /lib/libpthread.so.0 (0x64727eac2000+0xf3f0) [0x64727ead13f0]
> [ 74.800] 3: /usr/lib64/xorg/modules/drivers/nv_drv.so
> (0x64727bed7000+0x112d0) [0x64727bee82d0]
> [ 74.800] 4: /usr/lib64/xorg/modules/libshadowfb.so
> (0x64727a682000+0x3db2) [0x64727a685db2]
> [ 74.800] 5: /usr/bin/X (0x400000+0x2da29) [0x42da29]
> [ 74.800] 6: /usr/bin/X (0x400000+0x2eda9) [0x42eda9]
> [ 74.800] 7: /usr/bin/X (0x400000+0x2475a) [0x42475a]
> [ 74.800] 8: /lib/libc.so.6 (__libc_start_main+0xe6) [0x64727dcb2ba6]
> [ 74.800] 9: /usr/bin/X (0x400000+0x242f9) [0x4242f9]
> [ 74.800] Segmentation fault at address 0x64727462bfdc
> [ 74.800]
> Fatal server error:
> [ 74.800] Caught signal 11 (Segmentation fault). Server aborting
>
> and when grsecurity is enabled I get this in dmesg:
>
> Segmentation fault occurred at 000064727462bfdc in
> /usr/bin/Xorg[X:4647] uid/euid:1003/0 gid/egid:1010/1010, parent
> /usr/bin/xinit[xinit:4646] uid/euid:1003/1003 gid/egid:1010/1010
>
> I have tried disabling all security options in the kernel but I get
> the same results with the exception of the dmesg info. I tried
> re-emerging xorg-server, xf86-video-nv, xinit, and gdm. Strangely,
> after re-emerging xorg-server and xinit there were files to change in
> etc-update. I don't see how that's possible since I'm caught up with
> emerge -DuN world. revdep-rebuild comes up with nothing. I'm running
> an emerge -e world now. It's weird that the gdm welcome screen will
> load (which implies xorg) but nothing afterward. Any ideas?
>
> - Grant
>

Please try to run
`strace startx`
and post the output as a file attachment.

Grant 02-05-2011 03:57 PM

Xorg segfaults, but GDM welcome screen loads
 
>> Yesterday I caught up with portage and updated quite a few packages on
>> a remote workstation. *The system hadn't been updated for about a
>> month. *The updates included some xorg stuff and some xfce4 stuff.
>> Today when the workstation's user logged in via gdm, she clicked the
>> xfce4 "Migrate Config" option, something weird happened, and she ended
>> up back on the gdm welcome screen. *Now whenever she logs is via gdm,
>> the screen immediately goes black and she is routed back to the gdm
>> welcome screen again. *When I have grsecurity enabled I get this in
>> dmesg:
>>
>> Segmentation fault occurred at 000068e453633fdc in
>> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
>> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
>>
>> She also tried skipping gdm and issuing startxfce4 manually but it
>> fails in a similar way and displays "disconnected from session
>> manager". *I get this in Xorg.0.log:
>>
>> Backtrace:
>> [ * *74.799] 0: /usr/bin/X (xorg_backtrace+0x28) [0x49eeb8]
>> [ * *74.799] 1: /usr/bin/X (0x400000+0x62849) [0x462849]
>> [ * *74.799] 2: /lib/libpthread.so.0 (0x64727eac2000+0xf3f0) [0x64727ead13f0]
>> [ * *74.800] 3: /usr/lib64/xorg/modules/drivers/nv_drv.so
>> (0x64727bed7000+0x112d0) [0x64727bee82d0]
>> [ * *74.800] 4: /usr/lib64/xorg/modules/libshadowfb.so
>> (0x64727a682000+0x3db2) [0x64727a685db2]
>> [ * *74.800] 5: /usr/bin/X (0x400000+0x2da29) [0x42da29]
>> [ * *74.800] 6: /usr/bin/X (0x400000+0x2eda9) [0x42eda9]
>> [ * *74.800] 7: /usr/bin/X (0x400000+0x2475a) [0x42475a]
>> [ * *74.800] 8: /lib/libc.so.6 (__libc_start_main+0xe6) [0x64727dcb2ba6]
>> [ * *74.800] 9: /usr/bin/X (0x400000+0x242f9) [0x4242f9]
>> [ * *74.800] Segmentation fault at address 0x64727462bfdc
>> [ * *74.800]
>> Fatal server error:
>> [ * *74.800] Caught signal 11 (Segmentation fault). Server aborting
>>
>> and when grsecurity is enabled I get this in dmesg:
>>
>> Segmentation fault occurred at 000064727462bfdc in
>> /usr/bin/Xorg[X:4647] uid/euid:1003/0 gid/egid:1010/1010, parent
>> /usr/bin/xinit[xinit:4646] uid/euid:1003/1003 gid/egid:1010/1010
>>
>> I have tried disabling all security options in the kernel but I get
>> the same results with the exception of the dmesg info. *I tried
>> re-emerging xorg-server, xf86-video-nv, xinit, and gdm. *Strangely,
>> after re-emerging xorg-server and xinit there were files to change in
>> etc-update. *I don't see how that's possible since I'm caught up with
>> emerge -DuN world. *revdep-rebuild comes up with nothing. *I'm running
>> an emerge -e world now. *It's weird that the gdm welcome screen will
>> load (which implies xorg) but nothing afterward. *Any ideas?
>>
>> - Grant
>>
>
> Please try to run
> `strace startx`
> and post the output as a file attachment.

Gladly. Is there anything else I should try? The workstation is
remote and its user only has access infrequently. Is there anything
else I should have her try while she's there?

- Grant

Grant 02-05-2011 03:59 PM

Xorg segfaults, but GDM welcome screen loads
 
>> Yesterday I caught up with portage and updated quite a few packages on
>> a remote workstation. *The system hadn't been updated for about a
>> month. *The updates included some xorg stuff and some xfce4 stuff.
>> Today when the workstation's user logged in via gdm, she clicked the
>> xfce4 "Migrate Config" option, something weird happened, and she ended
>> up back on the gdm welcome screen. *Now whenever she logs is via gdm,
>> the screen immediately goes black and she is routed back to the gdm
>> welcome screen again. *When I have grsecurity enabled I get this in
>> dmesg:
>>
>> Segmentation fault occurred at 000068e453633fdc in
>> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
>> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
>>
>> She also tried skipping gdm and issuing startxfce4 manually but it
>> fails in a similar way and displays "disconnected from session
>> manager". *I get this in Xorg.0.log:
>>
>> Backtrace:
>> [ * *74.799] 0: /usr/bin/X (xorg_backtrace+0x28) [0x49eeb8]
>> [ * *74.799] 1: /usr/bin/X (0x400000+0x62849) [0x462849]
>> [ * *74.799] 2: /lib/libpthread.so.0 (0x64727eac2000+0xf3f0) [0x64727ead13f0]
>> [ * *74.800] 3: /usr/lib64/xorg/modules/drivers/nv_drv.so
>> (0x64727bed7000+0x112d0) [0x64727bee82d0]
>> [ * *74.800] 4: /usr/lib64/xorg/modules/libshadowfb.so
>> (0x64727a682000+0x3db2) [0x64727a685db2]
>> [ * *74.800] 5: /usr/bin/X (0x400000+0x2da29) [0x42da29]
>> [ * *74.800] 6: /usr/bin/X (0x400000+0x2eda9) [0x42eda9]
>> [ * *74.800] 7: /usr/bin/X (0x400000+0x2475a) [0x42475a]
>> [ * *74.800] 8: /lib/libc.so.6 (__libc_start_main+0xe6) [0x64727dcb2ba6]
>> [ * *74.800] 9: /usr/bin/X (0x400000+0x242f9) [0x4242f9]
>> [ * *74.800] Segmentation fault at address 0x64727462bfdc
>> [ * *74.800]
>> Fatal server error:
>> [ * *74.800] Caught signal 11 (Segmentation fault). Server aborting
>>
>> and when grsecurity is enabled I get this in dmesg:
>>
>> Segmentation fault occurred at 000064727462bfdc in
>> /usr/bin/Xorg[X:4647] uid/euid:1003/0 gid/egid:1010/1010, parent
>> /usr/bin/xinit[xinit:4646] uid/euid:1003/1003 gid/egid:1010/1010
>>
>> I have tried disabling all security options in the kernel but I get
>> the same results with the exception of the dmesg info. *I tried
>> re-emerging xorg-server, xf86-video-nv, xinit, and gdm. *Strangely,
>> after re-emerging xorg-server and xinit there were files to change in
>> etc-update. *I don't see how that's possible since I'm caught up with
>> emerge -DuN world. *revdep-rebuild comes up with nothing. *I'm running
>> an emerge -e world now. *It's weird that the gdm welcome screen will
>> load (which implies xorg) but nothing afterward. *Any ideas?
>>
>> - Grant
>>
>
> Please try to run
> `strace startx`
> and post the output as a file attachment.

Another question, is there anything I need to prepare to make sure the
strace works?

- Grant

Florian Philipp 02-05-2011 04:39 PM

Xorg segfaults, but GDM welcome screen loads
 
Am 05.02.2011 17:59, schrieb Grant:
>>> Yesterday I caught up with portage and updated quite a few packages on
>>> a remote workstation. The system hadn't been updated for about a
>>> month. The updates included some xorg stuff and some xfce4 stuff.
>>> Today when the workstation's user logged in via gdm, she clicked the
>>> xfce4 "Migrate Config" option, something weird happened, and she ended
>>> up back on the gdm welcome screen. Now whenever she logs is via gdm,
>>> the screen immediately goes black and she is routed back to the gdm
>>> welcome screen again. When I have grsecurity enabled I get this in
>>> dmesg:
>>>
>>> Segmentation fault occurred at 000068e453633fdc in
>>> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
>>> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
>>>
>>> She also tried skipping gdm and issuing startxfce4 manually but it
>>> fails in a similar way and displays "disconnected from session
>>> manager". I get this in Xorg.0.log:
>>>
[...]

>>>
>>> Segmentation fault occurred at 000064727462bfdc in
>>> /usr/bin/Xorg[X:4647] uid/euid:1003/0 gid/egid:1010/1010, parent
>>> /usr/bin/xinit[xinit:4646] uid/euid:1003/1003 gid/egid:1010/1010
>>>
>>> I have tried disabling all security options in the kernel but I get
>>> the same results with the exception of the dmesg info. I tried
>>> re-emerging xorg-server, xf86-video-nv, xinit, and gdm. Strangely,
>>> after re-emerging xorg-server and xinit there were files to change in
>>> etc-update. I don't see how that's possible since I'm caught up with
>>> emerge -DuN world. revdep-rebuild comes up with nothing. I'm running
>>> an emerge -e world now. It's weird that the gdm welcome screen will
>>> load (which implies xorg) but nothing afterward. Any ideas?
>>>
>>> - Grant
>>>
>>
>> Please try to run
>> `strace startx`
>> and post the output as a file attachment.
>
> Another question, is there anything I need to prepare to make sure the
> strace works?
>
> - Grant
>

Um, emerge it?

By the way: I recently had a similar freak problem with X11 on a KDE
machine. It turned out the system tried to start the default session
with twm and xterm (default when no window environment is installed) and
crashed because xterm was no longer present.

I don't think this is your problem but maybe it gets you closer to a
solution if you try to get such a light-weight solution running instead
of the full-blown xfce.

Did you also try to remove your xorg.conf, if you have any?

Hope this helps,
Florian Philipp

Alan McKinnon 02-05-2011 07:10 PM

Xorg segfaults, but GDM welcome screen loads
 
Apparently, though unproven, at 02:54 on Saturday 05 February 2011, Grant did
opine thusly:

> >> Yesterday I caught up with portage and updated quite a few packages on
> >> a remote workstation. The system hadn't been updated for about a
> >> month. The updates included some xorg stuff and some xfce4 stuff.
> >> Today when the workstation's user logged in via gdm, she clicked the
> >> xfce4 "Migrate Config" option, something weird happened, and she ended
> >> up back on the gdm welcome screen. Now whenever she logs is via gdm,
> >> the screen immediately goes black and she is routed back to the gdm
> >> welcome screen again. When I have grsecurity enabled I get this in
> >> dmesg:
> >>
> >> Segmentation fault occurred at 000068e453633fdc in
> >> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
> >> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
> >
> > When you upgraded x.org, did you also rebuild it's drivers?
>
> I rebuilt nv but not evdev. Could that be responsible for this? I'm
> not sure how since the gdm welcome screen comes up and the keyboard
> works fine there for username/password input.

I only mention it because in my experience I always have weird shit happening
when I upgrade xorg-server over a big version number change.

And rebuilding everything that underpins xorg always fixes it. Including
drivers and mesa.

In the old days when xorg was monolithic this never happened, as all the
drivers always got rebuilt anyway. Nowadays with xorg sources being modular,
we have to be a little more alert.


--
alan dot mckinnon at gmail dot com

walt 02-05-2011 09:15 PM

Xorg segfaults, but GDM welcome screen loads
 
On 02/04/2011 04:54 PM, Grant wrote:

Yesterday I caught up with portage and updated quite a few packages on
a remote workstation. The system hadn't been updated for about a
month. The updates included some xorg stuff and some xfce4 stuff.
Today when the workstation's user logged in via gdm, she clicked the
xfce4 "Migrate Config" option, something weird happened, and she ended
up back on the gdm welcome screen. Now whenever she logs is via gdm,
the screen immediately goes black and she is routed back to the gdm
welcome screen again. When I have grsecurity enabled I get this in
dmesg:

Segmentation fault occurred at 000068e453633fdc in
/usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
/usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002



When you upgraded x.org, did you also rebuild it's drivers?


I rebuilt nv but not evdev. Could that be responsible for this?


I can't answer that specifically, but you should definitely re-emerge
it anyway.

What happens when you run /usr/bin/Xorg directly instead of with startx?
If Xorg still segfaults it may give you better error messages.

Grant 02-05-2011 11:14 PM

Xorg segfaults, but GDM welcome screen loads
 
>>>> Yesterday I caught up with portage and updated quite a few packages on
>>>> a remote workstation. *The system hadn't been updated for about a
>>>> month. *The updates included some xorg stuff and some xfce4 stuff.
>>>> Today when the workstation's user logged in via gdm, she clicked the
>>>> xfce4 "Migrate Config" option, something weird happened, and she ended
>>>> up back on the gdm welcome screen. *Now whenever she logs is via gdm,
>>>> the screen immediately goes black and she is routed back to the gdm
>>>> welcome screen again. *When I have grsecurity enabled I get this in
>>>> dmesg:
>>>>
>>>> Segmentation fault occurred at 000068e453633fdc in
>>>> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
>>>> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
>>>
>>>
>>> When you upgraded x.org, did you also rebuild it's drivers?
>>
>> I rebuilt nv but not evdev. *Could that be responsible for this?
>
> I can't answer that specifically, but you should definitely re-emerge
> it anyway.
>
> What happens when you run /usr/bin/Xorg directly instead of with startx?
> If Xorg still segfaults it may give you better error messages.

Thank you everyone. This was due to my using the nv driver on that
system. I tried switching to nouveau but it wouldn't work with my
onboard GeForce 6150SE nForce 430. I switched to the nvidia driver
and all is working.

- Grant

Mick 02-07-2011 10:05 PM

Xorg segfaults, but GDM welcome screen loads
 
On Saturday 05 February 2011 20:10:31 Alan McKinnon wrote:
> Apparently, though unproven, at 02:54 on Saturday 05 February 2011, Grant
> did
>
> opine thusly:
> > >> Yesterday I caught up with portage and updated quite a few packages on
> > >> a remote workstation. The system hadn't been updated for about a
> > >> month. The updates included some xorg stuff and some xfce4 stuff.
> > >> Today when the workstation's user logged in via gdm, she clicked the
> > >> xfce4 "Migrate Config" option, something weird happened, and she ended
> > >> up back on the gdm welcome screen. Now whenever she logs is via gdm,
> > >> the screen immediately goes black and she is routed back to the gdm
> > >> welcome screen again. When I have grsecurity enabled I get this in
> > >> dmesg:
> > >>
> > >> Segmentation fault occurred at 000068e453633fdc in
> > >> /usr/bin/Xorg[X:4777] uid/euid:0/0 gid/egid:0/0, parent
> > >> /usr/sbin/gdm-binary[gdm:4775] uid/euid:0/0 gid/egid:1010/1002
> > >
> > > When you upgraded x.org, did you also rebuild it's drivers?
> >
> > I rebuilt nv but not evdev. Could that be responsible for this? I'm
> > not sure how since the gdm welcome screen comes up and the keyboard
> > works fine there for username/password input.
>
> I only mention it because in my experience I always have weird shit
> happening when I upgrade xorg-server over a big version number change.
>
> And rebuilding everything that underpins xorg always fixes it. Including
> drivers and mesa.
>
> In the old days when xorg was monolithic this never happened, as all the
> drivers always got rebuilt anyway. Nowadays with xorg sources being
> modular, we have to be a little more alert.

... and if you have just upgraded to xorg-server-1.9 you'll (probably) need an
xorg.conf file. The old .fdi files are no longer being used.
--
Regards,
Mick

Grant 02-08-2011 03:38 PM

Xorg segfaults, but GDM welcome screen loads
 
>> I only mention it because in my experience I always have weird shit
>> happening when I upgrade xorg-server over a big version number change.
>>
>> And rebuilding everything that underpins xorg always fixes it. Including
>> drivers and mesa.
>>
>> In the old days when xorg was monolithic this never happened, as all the
>> drivers always got rebuilt anyway. Nowadays with xorg sources being
>> modular, we have to be a little more alert.
>
> ... and if you have just upgraded to xorg-server-1.9 you'll (probably) need an
> xorg.conf file. *The old .fdi files are no longer being used.
> --
> Regards,
> Mick

My laptop is on xorg-server-1.9.2 and it doesn't use an xorg.conf. In
what type of situation is it needed?

- Grant


All times are GMT. The time now is 05:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.