Red Hat Bugzilla – Bug 964592
[abrt] xfce4-session-4.10.0-4.fc18: g_slice_alloc: Process /usr/bin/xfce4-session was killed by signal 11 (SIGSEGV)
Last modified: 2013-05-22 10:50:47 EDT
Description of problem:
Ran systemd from .xsession
Version-Release number of selected component:
xsession_errors: ** (xfce4-session:1792): WARNING **: Unable to launch "/media/safe/etc/X11/xkb/load-keymap dafrito" (specified by autostart/load-keymap.desktop): Failed to execute child process "/media/safe/etc/X11/xkb/load-keymap" (No such file or directory)
Thread no. 1 (10 frames)
#0 g_slice_alloc at /lib64/libglib-2.0.so.0
#1 g_slice_alloc0 at /lib64/libglib-2.0.so.0
#2 binding_signal_new at gtkbindings.c:80
#3 _gtk_binding_entry_add_signall at gtkbindings.c:841
#4 gtk_binding_entry_add_signal at gtkbindings.c:985
#5 gtk_widget_class_init at gtkwidget.c:2420
#6 g_type_class_ref at /lib64/libgobject-2.0.so.0
#8 g_object_new_valist at /lib64/libgobject-2.0.so.0
#10 gtk_invisible_new_for_screen at gtkinvisible.c:140
#11 xfsm_logout_dialog at xfsm-logout-dialog.c:758
Created attachment 749964 [details]
Created attachment 749965 [details]
Created attachment 749966 [details]
Created attachment 749967 [details]
Created attachment 749968 [details]
Created attachment 749969 [details]
Created attachment 749970 [details]
Created attachment 749971 [details]
Created attachment 749972 [details]
Created attachment 749973 [details]
Created attachment 749974 [details]
"Ran systemd from .xsession"
Can you expand on what you mean there? What exactly do you have in your .xsession?
Kevin, thanks for responding. This is my .xsession in full:
systemd --user &
It's possible (probable?) that I'm doing something wrong here, but I wouldn't anticipate a crash in xfce4-session due to it.
systemd user sessions are not something we have tested or looked into at all.
I'm not at all surprised it doesn't work for you.
Remove the 'systemd --user &' line, does it then work?
So I did some more investigating:
### systemd user session is likely not the problem
For starters, I don't think systemd was a culprit:
I removed 'systemd --user &' as you suggested and tested rebooting 10 times, all succeeding without crashes.
I then re-added the 'systemd --user &' and rebooted 10 more times, also all succeeding.
### More details on how this bug occurred
I'd also like to point out that this bug didn't prevent me from using XFCE. Generally speaking, I could log in, use the desktop, and everything else. The problem was that it would intermittently crash my desktop back to the login screen. This crash would occur after I closed an application like Firefox or Terminator.
Another symptom of this problem was that, when running from the .xsession (as opposed to the default XFCE desktop), choosing the "Log out" option in the Applications menu would not show the "Log out, restart, shutdown, etc." dialog. It would, when opened, immediately log out. This may have been a crash, but I unfortunately can't remember.
### Partial steps to reproduce
After doing the 20 reboot tests, I played around more with the session, and got the bug to pop up once after doing the following steps:
1. Have a saved session with Firefox and Terminator open. Firefox opens with the 'Restore session' dialog.
2. Close Firefox without restoring the session.
3. Note that XFCE appears to log out.
4. Log back in.
5. See the report that xfce4-session crashed.
These steps sadly aren't a definitive way to reproduce it.
I opened up XFCE's "Session and Startup" and cleared the cached sessions and saved an existing session. Once I did this, the problem could no longer be reproduced. Even after creating the session described in the steps above, things seem to work fine, and the Logout dialog opens as expected again.
My hypothesis was that, during the transition from XFCE desktop to my User Script (which was done the same day as this bug first appeared), the saved session was somehow corrupted. Clearing the cache and saving an entirely new session eliminated this corruption.
Since this problem was likely user error, and I can't reproduce it anymore, this bug could probably be closed. Of course, if you have any further steps you'd like me to take, I'm all for it. I'll also update and re-open this bug if this issue pops up again.
Odd. There was a bug a while back related to session saving an multiple applications that needed to save. ie, open a gedit and make some changes, open a libreoffice-write and make some changes and then try and quit your session, both gedit and libreoffice-write asks "do you want to save this document" and the Xfce session blows up. However, that was fixed a while back. ;(
Anyhow, I'm fine closing this now if you have things working. Do re-open if it happens again or you get more info.