[Xfce-bugs] [XFCE 0000060]: xffm segfaults with the no_icons theme

xfce-bugs at xfce.org xfce-bugs at xfce.org
Mon Jan 5 19:33:33 CET 2004


The following bug has been RESOLVED.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000060
=======================================================================
Reporter:                   jue
Handler:                    edscott
=======================================================================
Project:                    XFCE
Bug ID:                     0000060
Category:                   xffm
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
=======================================================================
Date Submitted:             2003-12-30 17:13 GMT
Last Modified:              2004-01-05 18:33 GMT
=======================================================================
Summary:                    xffm segfaults with the no_icons theme
Description: 
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

=======================================================================

-----------------------------------------------------------------------
 edscott - 2003-12-30 22:47 GMT 
-----------------------------------------------------------------------
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.

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


edited on: 12-31 15:41

-----------------------------------------------------------------------
 edscott - 2004-01-05 16:08 GMT 
-----------------------------------------------------------------------
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.

-----------------------------------------------------------------------
 jue - 2004-01-05 18:18 GMT 
-----------------------------------------------------------------------
Yep, the bug is fixed ;-)



More information about the Xfce-bugs mailing list