! 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 crashed on loading directories [g_module_open(/usr/lib/xfce4/modules/lib...
Status:
RESOLVED: FIXED

Comments

Description Will L G 2005-01-17 08:05:46 CET
When ever I open 'xffm' it crashes a soon as I go to my directory. Other 
functions seems to work fine but it croaks when, from what it appears, its 
creating icons. If you wondering how I installed it, I compiled the source and 
installed over a previous installing of Xfce-4.0.6. I also used to following 
tools to compile:

Redhat 7.2 [alpha]
Kernel-2.4.27
GCC-3.4.3
Make-3.80
Libtool-1.5.10

After several failed attempts with an error msg, I decided to fire up 'xffm' 
via the console and observe what msgs scrolled by and thats when I came upon 
this error msg:

[willi@jericho willi]$ xffm
** Message: xffm: module /usr/lib/xfce4/modules/libxfce4_mime_icons.so 
successfully loaded
** Message: xffm: loading toolbar buttons
** Message: xffm: loading menus
** Message: xffm: module /usr/lib/xfce4/xffm/libxffm_fstab.so successfully 
loaded
** Message: xffm: module /usr/lib/xfce4/modules/libxfce4_combo.so successfully 
loaded

** ERROR **: g_module_open(/usr/lib/xfce4/modules/libxfce4_mime.so) == NULL

aborting...
xffm: signal 6 received. Cleaning up before exiting


Reproducible: Always
Steps to Reproduce:
1. Open 'xffm'
2. Click on $HOME directory
3. sudden crash...

Actual Results:  
[willi@jericho willi]$ xffm
** Message: xffm: module /usr/lib/xfce4/modules/libxfce4_mime_icons.so 
successfully loaded
** Message: xffm: loading toolbar buttons
** Message: xffm: loading menus
** Message: xffm: module /usr/lib/xfce4/xffm/libxffm_fstab.so successfully 
loaded
** Message: xffm: module /usr/lib/xfce4/modules/libxfce4_combo.so successfully 
loaded

** ERROR **: g_module_open(/usr/lib/xfce4/modules/libxfce4_mime.so) == NULL

aborting...
xffm: signal 6 received. Cleaning up before exiting


Expected Results:  
To open up my home directory with beautiful icons/thumbnails every where...

tried to generate a gdb bt but it was a no-go...
Comment 1 Will L G 2005-01-17 08:08:40 CET
*** Bug 693 has been marked as a duplicate of this bug. ***
Comment 2 Will L G 2005-01-17 11:07:27 CET
Downloaded the latest gdb and compiled with libada support and now I have 
pretty backtraces like everyone else... Here's what I got:

0x0000020010041638 in kill () from /lib/libc.so.6.1
(gdb) bt
#0  0x0000020010041638 in kill () from /lib/libc.so.6.1
#1  0x0000020000d25e84 in pthread_kill () from /lib/libpthread.so.0
#2  0x0000020000d262e8 in raise () from /lib/libpthread.so.0
#3  0x00000200100413e4 in raise () from /lib/libc.so.6.1
#4  0x0000020010042e34 in abort () from /lib/libc.so.6.1
#5  0x0000020000b05688 in IA__g_logv (log_domain=0x0, log_level=6, 
    format=0x20000041dc8 "g_module_open(%s) == NULL\n", args1=
      {__base = 0x11fffecc0, __offset = 24}) at gmessages.c:488
#6  0x0000020000b056dc in IA__g_log (
    log_domain=0x4598 <Address 0x4598 out of bounds>, log_level=6, format=0x0)
    at gmessages.c:507
#7  0x0000020000040a3c in load_module (librarydir=0x120312cb0 "`-1 \001", 
    module_name=0x20000041e75 "xfce4_mime") at modules.c:71
#8  0x0000020000040d28 in load_mime_module () at modules.c:137
#9  0x0000020000061c60 in is_image (file=0x120304e95 "/dmesg") at icons.c:139
#10 0x00000200000638b8 in resolve_icon (en=0x120304ed0, p_en=0x1, s=0)
    at icons.c:935
#11 0x0000020000063f44 in set_icon (treemodel=0x120295180, 
    iterator=0x11fffee60) at icons.c:1035
#12 0x000002000005f5fc in add_row (treemodel=0x120295180, parent_iter=0x0, 
    parent_reference=0x6, child_iter=0x11fffee60, child_en=0x120304ed0, 
    child_name=0x2 <Address 0x2 out of bounds>) at basic_row.i:187
#13 0x000002000005fa84 in add_contents_row (treemodel=0x120295180, 
    iter=0x1202fb060, xfdir=0x11fffef20) at basic_row.c:451
#14 0x000000012000e0f8 in open_folder_local (treeview=0x41eb9809, 
    iter=0x1202fb060, treepath=0x0, en=0x1202b3580) at basic_local.i:417
#15 0x000002000006c3cc in open_dir (treeview=0x12029f620, iter=0x1202fb060, 
    treepath=0x1202fb0e0, user_data=0x40300624) at callbacks.c:280
#16 0x000002000059cb40 in _gtk_marshal_VOID__BOXED_BOXED (closure=0x12029fc00, 
    return_value=0x6, n_param_values=0, param_values=0x11ffff260, 
    invocation_hint=0x2, marshal_data=0x0) at gtkmarshalers.c:1109
#17 0x0000020000a30ae0 in IA__g_closure_invoke (closure=0x12029fc00, 
    return_value=0x0, n_param_values=3, param_values=0x11ffff260, 
    invocation_hint=0x11ffff110) at gclosure.c:437
#18 0x0000020000a4d334 in signal_emit_unlocked_R (node=0x120294dd0, detail=0, 
    instance=0x12029f620, emission_return=0x0, instance_and_params=0x11ffff260)
    at gsignal.c:2485
#19 0x0000020000a4ec18 in IA__g_signal_emit_valist (instance=0x12029f620, 
    signal_id=0, detail=0, var_args={__base = 0x11ffff520, __offset = 40})
    at gsignal.c:2244
#20 0x0000020000a4f0bc in IA__g_signal_emit (instance=0x4598, signal_id=6, 
    detail=0) at gsignal.c:2288
#21 0x0000020000703800 in gtk_tree_view_real_expand_row (
    tree_view=0x12029f620, path=0x1202faf10, tree=0x1, node=0x1, open_all=0, 
    animate=0) at gtktreeview.c:10630
#22 0x0000020000703b54 in IA__gtk_tree_view_expand_row (tree_view=0x12029f620, 
    path=0x1202faf10, open_all=0) at gtktreeview.c:10664
#23 0x00000001200234e4 in main (argc=2, argv=0x11ffff828) at main.c:523
(gdb) quit
The program is running.  Exit anyway? (y or n) y
Comment 3 Will L G 2005-01-17 11:10:37 CET
While gazing at my nice backtrace in aw, I realized that it was croaking when 
it was calling on GTK... I want to point out, I'm using GTK-2.6.0 and the 
accompaning supplimentals: atk, pango, glibc... 
Comment 4 edscott editbugs 2005-01-17 14:51:30 CET
The problem is in libxfcegui4/xfce4-modules, apparently not xffm.

The problem lies in that the the mime applications module is failing to load.
Xffm is aborting since it detects that the module is not available.

The module which is failing to load in your case is part of libxfce4gui. Modules
fail to load usually when they are either not present or some library necessary
for the module was not linked to the calling program (in this case xffm). 

But you mention your OS is windowsXP, so there might be some other reason here. 

Is everything with your libxfcegui4 installation OK? Your dbh installation OK?
Comment 5 Will L G 2005-01-17 15:46:45 CET
WinXP, na I was running:
Redhat 7.2 [alpha]
Kernel-2.4.27
GCC-3.4.3
Make-3.80
Libtool-1.5.10

Now I'm getting this error, after recompiling dbh, libxfce4gui, and xffm:
(09:12:35) DiskMan: ** Message: xffm: loading panel buttons

(xffm:31992): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `!
(gdk_pixbuf_get_has_alpha (src_pixbuf) && !gdk_pixbuf_get_has_alpha 
(dest_pixbuf))' failed

(xffm:31992): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `!
(gdk_pixbuf_get_has_alpha (src_pixbuf) && !gdk_pixbuf_get_has_alpha 
(dest_pixbuf))' failed

(xffm:31992): GdkPixbuf-CRITICAL **: gdk_pixbuf_copy_area: assertion `!
(gdk_pixbuf_get_has_alpha (src_pixbuf) && !gdk_pixbuf_get_has_alpha 
(dest_pixbuf))' failed
** Message: xffm: loading menus
** Message: xffm: module /usr/lib/xfce4/xffm/libxffm_fstab.so successfully 
loaded
** Message: xffm: module /usr/lib/xfce4/modules/libxfce4_combo.so successfully 
loaded

** ERROR **: g_module_open(/usr/lib/xfce4/modules/libxfce4_mime.so) == NULL

aborting...
xffm: signal 6 received. Cleaning up before exiting
[willi@jericho .xfce4]$ 

As for missing files, I do have the following:
/usr/lib/xfce4/modules/libxfce4_combo.a
/usr/lib/xfce4/modules/libxfce4_combo.la*
/usr/lib/xfce4/modules/libxfce4_combo.so@
/usr/lib/xfce4/modules/libxfce4_combo.so.0@
/usr/lib/xfce4/modules/libxfce4_combo.so.0.0.0*
/usr/lib/xfce4/modules/libxfce4_mime.a
/usr/lib/xfce4/modules/libxfce4_mime_icons.a
/usr/lib/xfce4/modules/libxfce4_mime_icons.la*
/usr/lib/xfce4/modules/libxfce4_mime_icons.so@
/usr/lib/xfce4/modules/libxfce4_mime_icons.so.0@
/usr/lib/xfce4/modules/libxfce4_mime_icons.so.0.0.0*
/usr/lib/xfce4/modules/libxfce4_mime.la*
/usr/lib/xfce4/modules/libxfce4_mime.so@
/usr/lib/xfce4/modules/libxfce4_mime.so.0@
/usr/lib/xfce4/modules/libxfce4_mime.so.0.0.0*
/usr/lib/xfce4/modules/libxfce4mixer.la*
/usr/lib/xfce4/modules/libxfce4mixer.so@
/usr/lib/xfce4/modules/libxfce4mixer.so.0@
/usr/lib/xfce4/modules/libxfce4mixer.so.0.0.0*
/usr/lib/xfce4/modules/xfce4_desktop_menu.a
/usr/lib/xfce4/modules/xfce4_desktop_menu.la*
/usr/lib/xfce4/modules/xfce4_desktop_menu.so*

I also wanted to clarify somethings, xffm works fine until it comes to 
displaying the contents of a drive or directory containing files. If there no 
files in a directory or drive, it displays just fine. I also want to note, 
while compiling xffm I recieved the error:
Making all in xfdiff4
xfdiff_gui.c: In function `cb_patchapply':
xfdiff_gui.c:222: warning: cast from pointer to integer of different size
xfdiff_gui.c: In function `cb_do_patch':
xfdiff_gui.c:659: warning: cast from pointer to integer of different size
xfdiff_gui.c: In function `shortcut_menu':
xfdiff_gui.c:1134: warning: cast from pointer to integer of different size
xfdiff_gui.c: In function `create_menu':
xfdiff_gui.c:1210: warning: cast to pointer from integer of different size
xfdiff_gui.c:1211: warning: cast to pointer from integer of different size
xfdiff_gui.c:1215: warning: cast to pointer from integer of different size
xfdiff_gui.c:1230: warning: cast to pointer from integer of different size
xfdiff_gui.c:1234: warning: cast to pointer from integer of different size

I don't know if it has anything to do with the error but here it is... 


Comment 6 edscott editbugs 2005-01-18 00:40:38 CET
The GdkPixbuf-CRITICAL errors mean you will have problems with composite icons.
Things will look OK, but this icons will not be exactly right.  We can try to
fix this cosmetic issue once the big issue is solved.

The xfdiff warnings are just warnings, and is now fixed for 4.2.1 CVS.

Apparently you have no problem loading the mime-icons and combo modules, so the
only thing I can think of is that something is wrong with your libxml2 library.
The module which refuses to load (and thus makes xffm abort) requires to be
linked to this library. So either the libxml2 is not-found/broken or the final
step in the xffm build is adding the libxml2 library. You should see something
like this in the final step of making xffm: /usr/lib/libxml2.so





Comment 7 Will L G 2005-01-18 19:06:45 CET
Well, still getting the same issue... I reinstalled libxml2 after completely, 
manually, removing it from my system. I even went so far as to uninstall Gnome-
2.6.2 and it subsequent programs, along with GTK, Pango, ATK, Glib, etc.  After 
manually recompiling everything and reinstalling it, via bash script, I'm still 
getting the same error.

One little bug-a-boo I did run across, GDK tends to looks for sysconf files 
under '/usr/etc' instead of where I installed them, '/etc'. So far thats the 
only issue I encountered. I simply symlink took care of that. Do you think the 
problem might be with GCC-3.4.3 and Binutils-2.15?

I'll try recompiling Xfce again using the CFLAGS="-O2 -mtune=ev56 -ffast-math -
funroll-loops -fstrict-aliasing" and see what happens...
Comment 8 Will L G 2005-01-18 22:08:05 CET
Here's a copy of my make log...
Comment 9 edscott editbugs 2005-01-19 17:29:30 CET
The abort instruction occurs at libs/modules.c line 71:
g_module_open ("/usr/lib/xfce4/modules/libxfce4_mime.so" 0) is returning NULL.

Since the combo and mime-icons module are opening fine, there must be something
with this module which is broken and glib refuses to open it. Usually this
happens when there is some unresolved symbol. Since the module is dynamic, this
does not show at compile time. Or maybe the ldconf path is not set to find
libxml. We can try to get the linker to help us by statically linking the module
by hand. Repeat the xffm repeat instruction and add the mime-applications object
file at the end of the line. Thus, for your build log, this would be:


$cd xffm/src
$rm xffm
$/bin/sh ../libtool --mode=link --tag=CC ccache gcc  -g -O3 -mtune=ev56
-mcpu=ev56 -mieee -mmax -ffast-math 	-fstrict-aliasing -finline -Winline
-fomit-frame-pointers   -o xffm  xffm-basic_colours.o xffm-basic_local.o
xffm-toolbar.o xffm-keybindings.o xffm-glade_main_gui.o xffm-mcs-manager.o
xffm-treestore.o xffm-treeview.o xffm-main.o xffm-options.o xffm-settings.o
xffm-strftime.o xffm-easy.o ../libs/libxffm_on_demand.la
../libs/libxffm_secondary.la ../libs/libxffm_basic.la ../libs/libxffm_cpy.la
../libs/libxffm_actions.la ../libs/libxffm_calls.la ../libs/libxffm_tubo.la
-Wl,--export-dynamic -L/usr/X11R6/lib -lxfcegui4 -lgtk-x11-2.0 -lxfce4util
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0
-lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lxfce4util -lglib-2.0 
 -L/usr/X11R6/lib -lxfce4mcs-client -lxfce4util -lglib-2.0   -Wl,-R/usr/lib
-ldbh -lm -lglib-2.0   -pthread -lgthread-2.0 -lglib-2.0   -Wl,--export-dynamic
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lxml2
-lpthread -lz -liconv -lm  -lrt
../../libxfcegui4/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o


Maybe this way the linker can tell us what is wrong. 

	
Comment 10 Will L G 2005-01-19 18:36:41 CET
I did that but modified the path: ../../libxfcegui4-4.2.0/xfce4-modules/mime-
applications/libxfce4_mime_la-mime.o and received the error below:

../../libxfcegui4-4.2.0/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o
(.text+0x15ec): In function `mime_key_type':
/usr2/www/linux-related/desktop/xfce-4/xfce-4.2/source/libxfcegui4-4.2.0/xfce4-
modules/mime-applications/mime.c:643: undefined reference to `S_ISSOCK'
../../libxfcegui4-4.2.0/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o
(.text+0x15f0):/usr2/www/linux-related/desktop/xfce-4/xfce-
4.2/source/libxfcegui4-4.2.0/xfce4-modules/mime-applications/mime.c:643: 
undefined reference to `S_ISSOCK'
../../libxfcegui4-4.2.0/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o
(.text+0x2d6c): In function `mime_get_type':
/usr2/www/linux-related/desktop/xfce-4/xfce-4.2/source/libxfcegui4-4.2.0/xfce4-
modules/mime-applications/mime.c:643: undefined reference to `S_ISSOCK'
../../libxfcegui4-4.2.0/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o
(.text+0x2d70):/usr2/www/linux-related/desktop/xfce-4/xfce-
4.2/source/libxfcegui4-4.2.0/xfce4-modules/mime-applications/mime.c:643: 
undefined reference to `S_ISSOCK'
../../libxfcegui4-4.2.0/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o
(.text+0x2e94):/usr2/www/linux-related/desktop/xfce-4/xfce-
4.2/source/libxfcegui4-4.2.0/xfce4-modules/mime-applications/mime.c:643: 
undefined reference to `S_ISSOCK'
../../libxfcegui4-4.2.0/xfce4-modules/mime-applications/libxfce4_mime_la-mime.o
(.text+0x2e98):/usr2/www/linux-related/desktop/xfce-4/xfce-
4.2/source/libxfcegui4-4.2.0/xfce4-modules/mime-applications/mime.c:643: more 
undefined references to `S_ISSOCK' follow
collect2: ld returned 1 exit status
Comment 11 edscott editbugs 2005-01-19 19:18:56 CET
Created attachment 161 
fix for posix-1.1996
Comment 12 edscott editbugs 2005-01-19 19:27:11 CET
Aha! 
              S_ISLNK(m)  symbolic link? (Not in POSIX.1-1996.)

              S_ISSOCK(m) socket? (Not in POSIX.1-1996.)

Apply the attached patch to ligxfcegui4/xfce4-modules/mime-application/mime.c
and reinstall. I'm pretty sure that will fix the problem. But the composite
pixmap issue still remains. In the toolbar you most probably do not see little
yellow arrows on the lower right hand corner of the first four buttons? 
Comment 13 Will L G 2005-01-19 20:01:02 CET
THANKS!!! That patch worked perfect... For a while there I didn't know what you 
had me doing and when I recieved those errors, I was frantically trying to find 
the header defining I_SSOCK... I coudn't find it and meekly submitted the error 
msg as it was and kept my fingers crossed... Again, THANKS!

Oh, I can see all the icons on the toolbar are fine but the icons for the 
folders are a little 'murky'. Here's a screencap on the issue but its not too 
bad. *Keep in mind I down sampled the image to save on file size:
http://kcnetwork.net/tmp/xfce-4.2/xffm-bug-a-boo.jpg

You may notice in the xterm window, I fixed the gdk_pixbuf_copy_area error... 
Just simply reinstalled GTK-2.6 and GTK-1.8... again, THANKS!
Comment 14 edscott editbugs 2005-01-19 22:09:04 CET
You can fix the murky icons business by installing the xfce4-icon-theme package
and the gnome-icon-theme. Aparently you have the gnome theme selected, but your
gnome theme looks a bit broken. The current theme for xfce is "Rodent" which
comes with the xfce4.icon-theme package.

Oh, and thank you for the prompt feedback enabling the resolution of the problem.

Bug #695

Reported by:
Will L G
Reported on: 2005-01-17
Last modified on: 2009-07-15
Duplicates (1):
  • 693 xffm crashed on loading directories [g_module_open(/usr/lib/xfce4/modules/libxfce4_mime.so)]

People

Assignee:
edscott
CC List:
0 users

Version

Version:
unspecified

Attachments

fix for posix-1.1996 (745 bytes, patch)
2005-01-19 19:18 CET , edscott
no flags

Additional information