[Xfce-bugs] [XFCE 0000211]: Bug in Settings Manager

xfce-bugs at xfce.org xfce-bugs at xfce.org
Wed Jul 21 19:49:32 CEST 2004


A BUGNOTE has been added to this bug.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000211
=======================================================================
Reporter:                   sweiss
Handler:                    dannym
=======================================================================
Project:                    XFCE
Bug ID:                     0000211
Category:                   general
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
=======================================================================
Date Submitted:             2004-06-01 07:17 GMT
Last Modified:              2004-07-21 17:49 GMT
=======================================================================
Summary:                    Bug in Settings Manager
Description: 
When accessing the Sound/Mixer dialogue in the Setting Manager, closing
this dialogue will cause mcs-manager to crash.
=======================================================================

-----------------------------------------------------------------------
 kelnos - 2004-06-01 08:40 GMT 
-----------------------------------------------------------------------
could you please get a backtrace?  kill the running instance and use gdb
like so:

$ gdb xfce-mcs-manager
[...]
(gdb) r --no-daemon-debug
[...]
[crashes]
(gdb) bt
[prints backtrace]

-----------------------------------------------------------------------
 sweiss - 2004-06-01 17:07 GMT 
-----------------------------------------------------------------------
sorry, I tried but looks like I didn't compile it with debug symbols, and
now it won't compile for an odd reason.

-----------------------------------------------------------------------
 dannym - 2004-06-05 22:13 GMT 
-----------------------------------------------------------------------
which version is it btw?

-----------------------------------------------------------------------
 huysmans - 2004-07-15 07:32 GMT 
-----------------------------------------------------------------------
Danny, I'll leave it to you whether we can close this or not.

-----------------------------------------------------------------------
 sweiss - 2004-07-15 14:53 GMT 
-----------------------------------------------------------------------
I'm now compiling XFCE from CVS with the --enable-debug option. I will take
a backtrace once I'm done and will post it here.

Sorry for the great delay.

-----------------------------------------------------------------------
 sweiss - 2004-07-15 16:20 GMT 
-----------------------------------------------------------------------
Here's the long awaited backtrace:

(gdb) bt
http://bugs.xfce.org/view_bug_page.php?f_id=0  0x40bc3b16 in ___finalize
()
   from /opt/xfce4-cvs/lib/xfce4/mcs-plugins/sound_settings.so
http://bugs.xfce.org/view_bug_page.php?f_id=1  0x4056002a in
g_object_unref () from /usr/lib/libgobject-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=2  0x4056016d in
g_object_run_dispose () from /usr/lib/libgobject-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=3  0x4029af1e in
gtk_object_destroy () from /usr/lib/libgtk-x11-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=4  0x4037cf51 in
gtk_widget_destroy () from /usr/lib/libgtk-x11-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=5  0x401b9c4d in
gtk_box_forall () from /usr/lib/libgtk-x11-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=6  0x401f601a in
gtk_container_foreach () from /usr/lib/libgtk-x11-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=7  0x401f861e in
gtk_container_destroy () from /usr/lib/libgtk-x11-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=8  0x40576a51 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  0x4055da97 in
g_type_class_meta_marshal ()
   from /usr/lib/libgobject-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=10 0x4055d6cb in
g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=11 0x405744a8 in
signal_emit_unlocked_R () from /usr/lib/libgobject-2.0.so.0
http://bugs.xfce.org/view_bug_page.php?f_id=12 0x00000000 in ?? ()
http://bugs.xfce.org/view_bug_page.php?f_id=13 0x00000001 in ?? ()
http://bugs.xfce.org/view_bug_page.php?f_id=14 0xbfffd930 in ?? ()
http://bugs.xfce.org/view_bug_page.php?f_id=15 0xbfffd818 in ?? ()
http://bugs.xfce.org/view_bug_page.php?f_id=16 0x080ee990 in ?? ()
http://bugs.xfce.org/view_bug_page.php?f_id=17 0xbfffd6b8 in ?? ()
http://bugs.xfce.org/view_bug_page.php?f_id=18 0x4055d001 in
g_closure_unref () from /usr/lib/libgobject-2.0.so.0
Previous frame inner to this frame (corrupt stack?)

-----------------------------------------------------------------------
 dannym - 2004-07-15 19:14 GMT 
-----------------------------------------------------------------------
now that looks baad. And this happens on opening the sound settings dialog
? (I ask to be sure since the backtrace lists __finalize which is supposed
to be called when the object is done)

Could you try with --enable-debug=full too ?

I think this would give us even line numbers to look for and hence
simplify the discovery of the offending code :)

Thanks

-----------------------------------------------------------------------
 dannym - 2004-07-15 19:20 GMT 
-----------------------------------------------------------------------
ow oops you say "closing", indeed

-----------------------------------------------------------------------
 sweiss - 2004-07-15 20:35 GMT 
-----------------------------------------------------------------------
Well, I'll compile it again with --enable-debug=full and will post another
backtrace tomorrow.

-----------------------------------------------------------------------
 sweiss - 2004-07-16 22:43 GMT 
-----------------------------------------------------------------------
Well, I tried compiling with --enable-debug=full, but it simply didn't
compile. I did get the message when it crahsed, hoping this helps:


(gdb) r --no-daemon-debug
Starting program: /opt/xfce4-cvs/bin/xfce-mcs-manager --no-daemon-debug
** Message: Daemon mode disabled (for debug purpose only!)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 16962)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 16962)]
0x40bc2b16 in ___finalize ()
   from /opt/xfce4-cvs/lib/xfce4/mcs-plugins/sound_settings.so

-----------------------------------------------------------------------
 dannym - 2004-07-19 22:16 GMT 
-----------------------------------------------------------------------
ok, I fixed some stuff so that compiling with --enable-debug=full works...
If it still doesnt, tell me the error messages :)

The backtrace you sent just says it last called g_object_unref which is
the function to free something. It could be just about anything that is
freed though.
(And "corrupt stack" really worries me...)

I really need the line numbers and source file reference baad...

Also, which gtk/glib version do you use ?

-----------------------------------------------------------------------
 dannym - 2004-07-19 22:21 GMT 
-----------------------------------------------------------------------
unfortunately I cannot reproduce the problem locally... I just broke my
sound system on purpose to test it, and it still works... so please help
us by the ways of the full backtrace :)

-----------------------------------------------------------------------
 sweiss - 2004-07-20 07:45 GMT 
-----------------------------------------------------------------------
Compiling it now with --enable-debug=full

My gtk/glib:
gtk2 2.4.4-1
glib2 2.4.4-1

I hope it'll work.

-----------------------------------------------------------------------
 sweiss - 2004-07-20 08:02 GMT 
-----------------------------------------------------------------------
Hmm it failed to build again:


 gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"libxfcegui4\" -I..
-DPREFIX=\"/opt/xfce4-cvs\" -DDATADIR=\"/opt/xfce4-cvs/share\"
-DPACKAGE_LOCALE_DIR=\"/opt/xfce4-cvs/share/locale\"
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include
-I/usr/X11R6/include -I/opt/xfce4-cvs/include/xfce4
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/startup-notification-1.0
-I/home/sweiss/xfce4-cvs/pkg/opt/xfce4-cvs/include/xfce4
-L/home/sweiss/xfce4-cvs/pkg/opt/xfce4-cvs/lib -march=i686 -O2 -pipe -g3
-Wall -Werror -DXFCE_DISABLE_DEPRECATED -MT libxfcegui4_la-netk-util.lo
-MD -MP -MF .deps/libxfcegui4_la-netk-util.Tpo -c netk-util.c  -fPIC -DPIC
-o .libs/libxfcegui4_la-netk-util.o
netk-util.c:35: warning: 'set_type_realize_handler' defined but not used
make[2]: *** [libxfcegui4_la-netk-util.lo] Error 1
make[2]: Leaving directory
`/home/sweiss/xfce4-cvs/src/xfce4/libxfcegui4/libxfcegui4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sweiss/xfce4-cvs/src/xfce4/libxfcegui4'
make: *** [all] Error 2
==> ERROR: Build Failed.  Aborting...

-----------------------------------------------------------------------
 dannym - 2004-07-20 11:00 GMT 
-----------------------------------------------------------------------
oh! Just recompiling xfce-mcs-manager and xfce4-mixer with
--enable-debug=full should suffice :)

-----------------------------------------------------------------------
 sweiss - 2004-07-21 08:25 GMT 
-----------------------------------------------------------------------
xfce4-mixer fails to compile with --enable-debug=full

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include
-DPACKAGE_LOCALE_DIR=\"/opt/xfce4-cvs/share/locale\" -I/usr/X11R6/include
-I/opt/xfce4-cvs/include/xfce4 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/opt/xfce4-cvs/include/xfce4
-I/usr/X11R6/include -I/usr/include/libxml2 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0
-I/home/sweiss/xfce4-cvs/pkg/opt/xfce4-cvs/include/xfce4
-L/home/sweiss/xfce4-cvs/pkg/opt/xfce4-cvs/lib -march=i686 -O2 -pipe -g3
-Wall -Werror -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED -DXFCE_DISABLE_DEPRECATED -MT
libmixer_la-xfce-mixer-preferences.lo -MD -MP -MF
.deps/libmixer_la-xfce-mixer-preferences.Tpo -c xfce-mixer-preferences.c 
-fPIC -DPIC -o .libs/libmixer_la-xfce-mixer-preferences.o
mixer-preferences.gob: In function `___finalize':
mixer-preferences.gob:46: warning: function called through a
non-compatible type
mixer-preferences.gob:46: note: if this code is reached, the program will
abort
make[2]: *** [libmixer_la-xfce-mixer-preferences.lo] Error 1
make[2]: Leaving directory
`/home/sweiss/xfce4-cvs/src/xfce4/xfce4-mixer/panel-plugin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sweiss/xfce4-cvs/src/xfce4/xfce4-mixer'
make: *** [all] Error 2

-----------------------------------------------------------------------
 dannym - 2004-07-21 17:49 GMT 
-----------------------------------------------------------------------
what the heck... its just my stringlist_free function...

how I've something to work with and to fix the bug (i hope)... although
even that warning and note do *not* happen here. So:

whats your gcc version ?



More information about the Xfce-bugs mailing list