! 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 !
xfce-setting-show causes xfce-mcs-manager to segfault


Description greg 2005-09-20 21:54:25 CEST
Installed 4.2.2 from RPMs via xfce website on my up-to-date FC4 system.  But
xfce-setting-show doesn't come up.  Tracked it down to xfce-mcs-manager
crashing.  Strace attached.

Only weird thing I've done is hacked startxfce4 to not use session manager since
I don't need sessions and have everything I want in my .config files.

The libXcursor.so.1.0 the strace shows complaints about *is* on my system
despite what the trace shows, and its in a fairly normal place: 

 $ ll /usr/X11R6/lib/libXcursor.*
-rw-r--r--  1 root 38K Sep 15 03:03 /usr/X11R6/lib/libXcursor.a
lrwxrwxrwx  1 root  19 Sep 19 00:28 /usr/X11R6/lib/libXcursor.so ->
lrwxrwxrwx  1 root  19 Sep 19 00:28 /usr/X11R6/lib/libXcursor.so.1 ->
-rwxr-xr-x  1 root 37K Sep 15 03:04 /usr/X11R6/lib/libXcursor.so.1.0.2

Reproducible: Always
Steps to Reproduce:
1. startxfce4
2. ps -ef | grep mcs
3. strace -p NNNN
4. click on settings
5. observe strace output
6. ps -ef | grep mcs

Actual Results:  
xfce-mcs-manager crashes.

open("/lib/tls/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/lib/tls/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
open("/lib/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
open("/lib/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
directory)open("/usr/lib/tls/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/lib/tls/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib/i686/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib/libXcursor.so.1.0", O_RDONLY) = -1 ENOENT (No such file or
munmap(0xb7cbf000, 55872)               = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
Comment 1 greg 2005-09-26 12:48:21 CEST
Here's a more useful gdb list and bt.

Starting program: /usr/bin/xfce-mcs-manager 
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
[Thread debugging using libthread_db enabled]
[New Thread -1208867136 (LWP 671)]
Attaching after fork to child process 679.
[tcsetpgrp failed in terminal_inferior: Operation not permitted]

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 679]
0x006800e9 in _dl_relocate_object () from /lib/ld-linux.so.2
(gdb) list
311     #endif
312             McsManagerCheck status;
313             gboolean daemon_mode;
314             gboolean std_mgr;
315             int i;
317             daemon_mode = TRUE;
318             std_mgr = TRUE;
320             xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
(gdb) bt
#0  0x006800e9 in _dl_relocate_object () from /lib/ld-linux.so.2
#1  0x00686458 in dl_open_worker () from /lib/ld-linux.so.2
#2  0x00682c6e in _dl_catch_error () from /lib/ld-linux.so.2
#3  0x006869c9 in _dl_open () from /lib/ld-linux.so.2
#4  0x007bed42 in dlopen_doit () from /lib/libdl.so.2
#5  0x00682c6e in _dl_catch_error () from /lib/ld-linux.so.2
#6  0x007bf3e3 in _dlerror_run () from /lib/libdl.so.2
#7  0x007bedd2 in dlopen@@GLIBC_2.1 () from /lib/libdl.so.2
#8  0x008169e3 in XGContextFromGC () from /usr/X11R6/lib/libX11.so.6
#9  0x00816af5 in _XNoticeCreateBitmap () from /usr/X11R6/lib/libX11.so.6
#10 0x00817087 in XCreatePixmap () from /usr/X11R6/lib/libX11.so.6
#11 0x00b0e6c0 in gdk_pixmap_new () from /usr/lib/libgdk-x11-2.0.so.0
#12 0x00ae61db in gdk_pixbuf_render_pixmap_and_mask_for_colormap ()
   from /usr/lib/libgdk-x11-2.0.so.0
#13 0x025afdf4 in gtk_window_get_icon_name () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x025b318f in gtk_window_get_position () from /usr/lib/libgtk-x11-2.0.so.0
#15 0x009017e7 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#16 0x008f5d9b in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#17 0x008f6285 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#18 0x009043b0 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#19 0x00905eb0 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#20 0x00906223 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit--- 
#21 0x025a74c1 in gtk_widget_realize () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x00223362 in xfce_gtk_window_center_on_monitor ()
   from /usr/lib/libxfcegui4.so.3
#23 0x0022340e in xfce_gtk_window_center_on_monitor_with_pointer ()
   from /usr/lib/libxfcegui4.so.3
#24 0x0804a47b in run_manager_dialog (plugin_list=0x8086128)
    at xfce-mcs-dialog.c:239
#25 0x001a8ba0 in mcs_manager_process_event ()
   from /usr/lib/libxfce4mcs-manager.so.2
#26 0x0804a8e8 in manager_event_filter (xevent=0x807d690, event=0x806d8e8, 
    data=0x0) at xfce-mcs-manager.c:266
#27 0x00b019cb in gdk_events_pending () from /usr/lib/libgdk-x11-2.0.so.0
#28 0x00b03190 in gdk_screen_get_setting () from /usr/lib/libgdk-x11-2.0.so.0
#29 0x00b04d55 in gdk_screen_get_setting () from /usr/lib/libgdk-x11-2.0.so.0
#30 0x00b04dcb in gdk_screen_get_setting () from /usr/lib/libgdk-x11-2.0.so.0
#31 0x001244ce in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0x001274d6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#33 0x001277c3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#34 0x024c4a46 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0x0804ab20 in main (argc=1, argv=0xbf936a64) at xfce-mcs-manager.c:418
Comment 2 Brian J. Tarricone (not reading bugmail) 2005-09-30 00:53:41 CEST
I'm gonna take this since I think I have a fix...
Comment 3 greg 2005-10-03 22:19:53 CEST
An update:  if I copy all the X11 libs to /lib/i686 (one of the places the
strace shows its looking), then the RPM installed XFCE still crashes, but the
compiled from source XFCE doesn't.

Also, the strace shows it opens /etc/ld.so.cache, which is up to date, and does
have a reference to /usr/X11R6/lib buried in it (its binary).  So why its not
finding things in /usr/X11R6/lib is a mystery to me.

Comment 4 Brian J. Tarricone (not reading bugmail) 2005-10-13 10:22:12 CEST
Ok, I think I fixed this in SVN trunk.  Could you check, and change this to
VERIFIED FIXED if so?  Otherwise REOPEN.
Comment 5 greg 2005-11-01 22:31:30 CET
I took the SVN trunk and compiled on a clean FC4 install and verified the fix. 
Note that this isn't as robust as using the same system where the bug originally
showed up, but I can't disturb that system at this time.

Thanks for the fix, and the trunk version (and default theme) looks GREAT visually!

Bug #1159

Reported by:
Reported on: 2005-09-20
Last modified on: 2009-07-14


Xfce Bug Triage
CC List:
0 users



Additional information