! 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 !
xffm segfaults with the no_icons theme
Status:
CLOSED: FIXED
Severity:
critical

Comments

Description juex 2003-12-30 17:13:43 CET
Both xffm 4.0.2 and 4.0.1 are affected, maybe older versions also.
$:> strace xffm
....
stat64("/usr/share/xffm/pixmaps/no_icons/mime.xml", {st_mode=S_IFREG|0644,
st_size=50, ...}) = 0
stat64("/usr/share/xffm/pixmaps/no_icons/mime.xml", {st_mode=S_IFREG|0644,
st_size=50, ...}) = 0
stat64("/usr/share/xffm/pixmaps/no_icons/mime.xml", {st_mode=S_IFREG|0644,
st_size=50, ...}) = 0
open("/usr/share/xffm/pixmaps/no_icons/mime.xml", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=50, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40902000
read(4, "<?xml version=\"1.0\"?>\n<mime_type"..., 16384) = 50
read(4, "", 12288) = 0
_llseek(4, 0, [50], SEEK_CUR) = 0
_llseek(4, 0, [0], SEEK_SET) = 0
read(4, "<?xml version=\"1.0\"?>\n<mime_type"..., 4096) = 50
read(4, "", 4096) = 0
read(4, "", 4096) = 0
close(4) = 0
munmap(0x40902000, 4096) = 0
brk(0) = 0x8328000
brk(0) = 0x8328000
brk(0x8304000) = 0x8304000
brk(0) = 0x8304000
write(3,
"\24\0\6\0X\0\0\0\t\0\0\0\37\0\0\0\0\0\0\0\200\226\230\0"...,
24) = 24
read(3,
"\1\10\357\20\1\0\0\0\37\0\0\0\0\0\0\0\1\0\0\0\230X\315"...,
32) = 32
readv(3, [{"\n", 1}, {"\0\356\20", 3}], 2) = 4
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(2, "xffm: signal 11 received. Cleani"..., 53xffm: signal 11 received.
Cleaning up before exiting
) = 53
Comment 1 juex 2003-12-30 17:13:45 CET
Additional information:

Could you run xffm with gdb and when it segfaults ask for a backtrace with
"bt". I'm afraid I can't quite understand the output from strace and I
cannot reproduce the crash on FreeBSD 5.1.
Comment 2 edscott editbugs 2003-12-30 22:47:43 CET
Could you run xffm with gdb and when it segfaults ask for a backtrace with
"bt". I'm afraid I can't quite understand the output from strace and I
cannot reproduce the crash on FreeBSD 5.1.
Comment 3 juex 2003-12-31 15:39:13 CET
No problem, here it is:

$:~> gdb xffm
GNU gdb 6.0
Copyright 2003 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 "i586-pc-linux-gnu"...
(gdb) r
Starting program: /usr/bin/xffm

Program received signal SIGSEGV, Segmentation fault.
0x404b1a96 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
(gdb) bt
#0 0x404b1a96 in g_object_unref () from /usr/lib/libgobject-2.0.so.0
#1 0x4001d9de in set_icon (treeview=0x8169090, iterator=0xbfffee00)
at icons.c:741
#2 0x4001c363 in set_size_icons (treemodel=0x8096d58, treepath=0x8169e58,
iter=0xbfffee00, data=0x8080888) at icons.c:81
#3 0x402f3ef8 in gtk_tree_model_rows_reordered ()
from /usr/lib/libgtk-x11-2.0.so.0
#4 0x402f4009 in gtk_tree_model_foreach () from /usr/lib/libgtk-x11-2.0.so.0
#5 0x4001c3fe in reset_icons (tree_details=0x8080888) at icons.c:90
#6 0x4001e44f in recreate_icons (tree_details=0x8080888) at icons.c:1060
#7 0x400230cc in toggle_theme (menuitem=0x808b378, user_data=0x8080fd8)
at options.c:302
#8 0x404bbbad in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#9 0x404aef4a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0x404bb4aa in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#11 0x404b9ff4 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#12 0x404ba176 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#13 0x4032215d in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x4026c746 in gtk_menu_shell_activate_item ()
from /usr/lib/libgtk-x11-2.0.so.0
#15 0x4026bba2 in _gtk_menu_shell_activate () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x40265f53 in gtk_menu_reorder_child () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x4025f21f in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/lib/libgtk-x11-2.0.so.0
#18 0x404af0d4 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#19 0x404aef4a in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#20 0x404baada in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0
#21 0x404b9e0f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#22 0x404ba176 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#23 0x40321fab in gtk_widget_send_expose () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x4025f02c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x4025dfbe in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x403f6150 in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0
#27 0x404eab4e in unblock_source () from /usr/lib/libglib-2.0.so.0
#28 0x404eb9e9 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x404ebd07 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x404ec230 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#31 0x4025d7f7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x080687fb in main (argc=1, argv=0xbffffc74) at main.c:263


edited on: 12-31 15:41
Comment 4 edscott editbugs 2004-01-05 16:08:54 CET
I believe the bug is fixed in CVS. Please replace file libs/icons.c for the
uploaded file and confirm whether the bug is gone.
Comment 5 juex 2004-01-05 18:18:14 CET
Yep, the bug is fixed ;-)

Bug #60

Reported by:
juex
Reported on: 2003-12-30
Last modified on: 2009-07-14

People

Assignee:
edscott
CC List:
0 users

Version

Version:
unspecified

Attachments

0000060-icons.c (26.46 KB, application/octet-stream)
2004-01-05 16:07 CET , juex
no flags

Additional information