! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
r23142 breaks xfce4-session...
Status:
RESOLVED: FIXED
Severity:
blocker
Product:
Xfce4-session
Component:
General

Comments

Description Olivier Fourdan editbugs 2006-09-13 19:49:47 CEST
...and cause a core dump at startup preventing xfce from starting.

gdb xfce4-session
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/xfce4-session
*** glibc detected *** free(): invalid next size (fast): 0x00000000008f5f80 ***

Program received signal SIGABRT, Aborted.
0x00002b3f3bae611d in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00002b3f3bae611d in raise () from /lib/libc.so.6
#1  0x00002b3f3bae784e in abort () from /lib/libc.so.6
#2  0x00002b3f3bb1ae41 in __fsetlocking () from /lib/libc.so.6
#3  0x00002b3f3bb2090e in malloc_usable_size () from /lib/libc.so.6
#4  0x00002b3f3bb20c56 in free () from /lib/libc.so.6
#5  0x0000000000411228 in xfsm_startup_continue_session (previous_id=<value optimized out>) at xfsm-startup.c:538
#6  0x0000000000411375 in xfsm_startup_continue (previous_id=0x7df6 <Address 0x7df6 out of bounds>) at xfsm-startup.c:441
#7  0x000000000040dd65 in xfsm_manager_startup_continue (previous_id=0x0) at xfsm-manager.c:457
#8  0x000000000040dfc8 in xfsm_manager_startup () at xfsm-manager.c:94
#9  0x00002b3f3b809bfd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0x00002b3f3b80cec5 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#11 0x00002b3f3b80d18a in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#12 0x00002b3f39cfd582 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x00000000004097f9 in main (argc=1, argv=0x7fff71569208) at main.c:247
Comment 1 Benedikt Meurer editbugs 2006-09-13 19:56:21 CEST
Created attachment 796 
Fix

Indeed, makes sense. I wonder why it doesn't crash here. Anyway, please verify that this patch fixes the crash.
Comment 2 Olivier Fourdan editbugs 2006-09-13 20:03:48 CEST
It does fix the crash.
Comment 3 Benedikt Meurer editbugs 2006-09-13 20:06:57 CEST
Committed with revision 23146.

2006-09-13	Benedikt Meurer <benny@xfce.org>

	* xfce4-session/xfsm-startup.c(xfsm_startup_continue_session): Fix
	  argv array allocation. Bug #2315.

Bug #2315

Reported by:
Olivier Fourdan
Reported on: 2006-09-13
Last modified on: 2009-07-14

People

Assignee:
Benedikt Meurer
CC List:
0 users

Version

Attachments

Fix (583 bytes, patch)
2006-09-13 19:56 CEST , Benedikt Meurer
no flags

Additional information