Cygwin, xffm: core dump

edscott wilson garcia edscott at xfce.org
Thu Sep 30 18:25:40 CEST 2004


El jue, 30-09-2004 a las 10:15, Maarten Boekhold escribió:
> edscott wilson garcia wrote:
> 
> > The line where it segfaults is where the module is loaded. So I assume
> > that the problem must occur during the module initialization. This is
> 
> It did fail in the module loading. The g_module_check_init function in 
> mime_icons.c wasn't declared G_MODULE_EXPORT, so the module_functions 
> pointer was never initialized.
> 
> However, I'm getting a new one now. It might be that this is somehow 
> related to the configuration file, because after the crash, I still 
> don't have ~/.config/xfce4/xffm/xffmrc.xml... I can't figure out where 
> things get screwed though... :(

It could be a libxml2 issue. Maybe the disk cache is not flushed. This
happens when the crash preceeds the fclose(). But from the output below,
the file buffer should be closed and flushed, unless xffm is missing an
instruction to do so (possible bug).

> 
> 
> ** Message: xffm: module 
> /opt/xfce/lib/xfce4/modules/cygxfce4_mime_icons.dll successfully loaded
> mime_icon_load_theme...
> create_icon_hash...
> create_icon_hash.../home/Maarten/.themes/hicolor.mime.xml
> mime_icon_get_global_xml_file name...hicolor
> mime_icon_get_theme_path...hicolor
> mime_icon_get_theme_path.../home/Maarten/.local/share/icons/hicolor?
> mime_icon_get_theme_path.../home/Maarten/.icons/hicolor?
> mime_icon_get_theme_path.../opt/xfce/share/icons/hicolor?
> mime_icon_get_global_xml_file...done
> create_icon_hash...3
> DBG:creating new theme_hash...
> create_icon_hash...4
> creating new icon hash and factory for hicolor
> create_icon_hash...5
> DBG:theme_hash created!
> mime_icon_load_theme...
> create_icon_hash...
> create_icon_hash.../home/Maarten/.themes/hicolor.mime.xml
> mime_icon_get_global_xml_file name...hicolor
> mime_icon_get_theme_path...hicolor
> mime_icon_get_theme_path.../home/Maarten/.local/share/icons/hicolor?
> mime_icon_get_theme_path.../home/Maarten/.icons/hicolor?
> mime_icon_get_theme_path.../opt/xfce/share/icons/hicolor?
> mime_icon_get_global_xml_file...done
> create_icon_hash...3
> create_icon_hash...4
> xffm: signal 11 received. Cleaning up before exiting
> 

Hmm... mime_icon_load_theme is happening twice. Nothing wrong with that,
but on the second time it should not create the icon hash again. 

> 
> Starting program: /opt/xfce/bin/xffm.exe
> 
> Breakpoint 2, print_diagnostics (id=0x41c5cf "xfce/info") at misc.c:1338
> (gdb) print tree_details
> $4 = (tree_details_t *) 0x10088af8
> (gdb) print *tree_details
> $5 = {window = 0x0, remove = 0x0, preferences = 1352484,
>    theme = 0x10094970 "hicolor", recent_days = 3, frequent_count = 13, 
> argv = {
>      0x100866e8 "xffm", 0x0}, geometryX = 600, geometryY = 500, hpane = 
> 125,
>    hpane_ratio = -1, smart_hash = 0x0, treestuff = {{treeview = 0x0,
>        treemodel = 0x0, sortable = 0x0, selection = 0x0, column = {
>          0x0 <repeats 15 times>}, preferences = 2147524354, gogo = 0x0,
>        ascending = 0, sort_column = 0, name_size = 100}, {treeview = 0x0,
>        treemodel = 0x0, sortable = 0x0, selection = 0x0, column = {
>          0x0 <repeats 15 times>}, preferences = 2147492095, gogo = 0x0,
>        ascending = 0, sort_column = 0, name_size = 100}}, tubo_object = 
> 0x0,
>    selectionOK = 0, timer = 0, input = 0, loading = 0, stop = 0,
>    icon_size = 1, sidebar = 0x10088ca8 "single_selection_button"}
> (gdb) step
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x010275bb in print_diagnostics (id=0x41c5cf "xfce/info") at misc.c:1339
> (gdb) bt
> #0  0x010275bb in print_diagnostics (id=0x41c5cf "xfce/info") at misc.c:1339
> #1  0x00412e99 in set_icon_theme (theme=0x10093c48 "hicolor", restart=0)
>      at options.c:387
> #2  0x0040de8e in _fu1__gdk_display () at mcs-manager.c:306
> #3  0x0041104a in main (argc=1, argv=0x10073a50) at main.c:368
> (gdb)
> 
> misc.c:1339 is "if (!tree_details->window ) {...", so it seems unlikely 
> that the actual segfault is there...
> 
> Still looking... might be tomorrow before I make any progress with this 

The crash happens just after the second call to load the mime icon
theme. This second call is triggered by the mcs manager (the first call
is the default icon theme, which need not be the same as the icon theme
received from the mcs manager).

After your solving of the first crash, I think the problem is due to
more missing symbols in the IMPORTS file. The IMPORTS file does not have
symbols for the modules loaded from ligxfcegui4/xfce4-modules. I've now
fixed and committed to CVS the perl script so that these symbols are
also included in the IMPORTS file. HTH.

regards,

Edscott




More information about the Xfce4-dev mailing list