gnome fails to start - segfault in migrate-trash.c

Bug #214574 reported by sam tygier
2
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-session

after todays updates on logging it gnome i get the following error

"Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of disk space. Try logging in with one of the failsafe sessions to see if you can fix this problem."

xsession errors:

/etc/gdm/Xsession: Beginning session setup...
Setting IM through im-switch for locale=en_GB.
Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default.
SESSION_MANAGER=local/titania:/tmp/.ICE-unix/6233
CRTC 4a Timestamp: 1668314
CRTC 4b Timestamp: 1668314
Output 4c Timestamp: 1668314
Output 4d Timestamp: 1668314
Output 4e Timestamp: 1668314
Reading config file /home/sam/.gnome2/monitors-onetime.xml
CRTC 4a Timestamp: 1668314
CRTC 4b Timestamp: 1668314
Output 4c Timestamp: 1668314
Output 4d Timestamp: 1668314
Output 4e Timestamp: 1668314
expected keysym, got XF86KbdLightOnOff: line 70 of pc
last scanned symbol is: XF86KbdLightOnOff
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
last scanned symbol is: XF86KbdBrightnessDown
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
last scanned symbol is: XF86KbdBrightnessUp
Warning: Type "PC_RALT_LEVEL2" has 2 levels, but <LALT> has 3 symbols
                  Ignoring extra symbols
Warning: No symbols defined for <SYRQ> (keycode 92)
Warning: No symbols defined for <II65> (keycode 101)
(there are hundreds of these, i can post them all if you want. i have seen them before so i dont think they are the problem - sam)
Warning: No symbols defined for <I7E> (keycode 254)
Warning: No symbols defined for <I7F> (keycode 255)
Shutdown failed or nothing to shut down.
xrdb: "*Label.background" on line 220 overrides entry on line 150
xrdb: "*Text.background" on line 226 overrides entry on line 191
xrdb: "*Label.foreground" on line 232 overrides entry on line 151
xrdb: "*Text.foreground" on line 238 overrides entry on line 192
Window manager warning: "" found in configuration database is not a valid value for keybinding "toggle_shaded"
Window manager warning: Failed to read saved session file /home/sam/.metacity/sessions/default0.ms: Failed to open file '/home/sam/.metacity/sessions/default0.ms': No such file or directory
(gnome-panel:6356): GnomeUI-WARNING **: While connecting to session manager:
IO error occured opening connection.
(nautilus:6357): GnomeUI-WARNING **: While connecting to session manager:
IO error occured opening connection.

however the panel and nautilus are started, so i can use the desktop. if it click ok in the dialog i get taken back to the login screen.

sometimes i dont get the message and get taken straight back to the login screen.

my gnome-session version is 2.22.1-0ubuntu3

the first time this happened i got an oops in dmesg, see Bug #214563 (is it possible for an application bug to cause and oops?)

Revision history for this message
sam tygier (samtygier) wrote :

if i create a new user, then the new user can log in fine.

Revision history for this message
sam tygier (samtygier) wrote :

i got a backtrace

#0 0x0f4b5e9c in ?? () from /usr/lib/libglib-2.0.so.0
#1 0x0f4b5f94 in ?? () from /usr/lib/libglib-2.0.so.0
#2 0x0f4b61d4 in g_build_filename () from /usr/lib/libglib-2.0.so.0
#3 0x1001f310 in migrate_trash () at migrate-trash.c:222
#4 0x1000f7a0 in main (argc=1, argv=0xbfed06c4) at main.c:766

full trace (with lots of stdout/stderr mess) attached

Revision history for this message
sam tygier (samtygier) wrote :

if i remove all files from my ~/.Trash then gnome starts happily

if i put anything back then it wont boot. my files did not have any funny characters in the names, just numbers, english letters and dots.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. Could you install libglib2.0-0-dbgsym and get a new stacktrace?

Changed in gnome-session:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

no need the code error was obvious and upstream fixed it now

Changed in gnome-session:
status: Incomplete → Fix Committed
Revision history for this message
sam tygier (samtygier) wrote :

i am too slow, but here is is incase it is ever useful (full log attached). thanks

(gdb) bt
#0 g_build_path_va (separator=0xf55185c "/", first_element=0x100772f7 "s",
    args=0xbfd3d274, str_array=0x0)
    at /build/buildd/glib2.0-2.16.3/glib/gfileutils.c:1478
#1 0x0f4b61d4 in IA__g_build_filename (first_element=<value optimized out>)
    at /build/buildd/glib2.0-2.16.3/glib/gfileutils.c:1794
#2 0x1001f310 in migrate_trash () at migrate-trash.c:222
#3 0x1000f7a0 in main (argc=1, argv=0xbfd3d6c4) at main.c:766

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-session - 2.22.1.1-0ubuntu1

---------------
gnome-session (2.22.1.1-0ubuntu1) hardy; urgency=low

  * New upstream version:
    - Fix a crash in the trash migration code (lp: #214574)

 -- Sebastien Bacher <email address hidden> Thu, 10 Apr 2008 16:03:41 +0100

Changed in gnome-session:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.