After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 134775 - gnome-settings-daemon crashes on login
gnome-settings-daemon crashes on login
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] settings-daemon
2.5.x
Other Linux
: Urgent critical
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 136704 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-18 20:54 UTC by W. Michael Petullo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: 2.6.next
GNOME version: ---


Attachments
idle the error dialog. (1011 bytes, patch)
2004-03-17 00:39 UTC, Chris Lahey
none Details | Review

Description W. Michael Petullo 2004-02-18 20:54:53 UTC
I am running control-center 2.5.3 on an iBook.  When I log into GNOME,
gnome-settings-daemon immediately crashes.  It crashes several times and
then GNOME deceides to stop trying to exec it.  Here is the backtrace:

(gdb) ba
  • #0 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #1 libgnomeui_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #2 <signal handler called>
  • #3 raise
    from /lib/tls/libpthread.so.0
  • #4 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #5 g_log
    from /usr/lib/libglib-2.0.so.0
  • #6 bonobo_activation_timeout_reg_check
    from /usr/lib/libbonobo-activation.so.4
  • #7 g_main_context_wakeup
    from /usr/lib/libglib-2.0.so.0
  • #8 unblock_source
    from /usr/lib/libglib-2.0.so.0
  • #9 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #10 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #11 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #12 gtk_dialog_run
    from /usr/lib/libgtk-x11-2.0.so.0
  • #13 acme_error
    at gnome-settings-multimedia-keys.c line 93
  • #14 fblevel_problem_cb
    at gnome-settings-multimedia-keys.c line 148
  • #15 gnome_settings_multimedia_keys_load
    at gnome-settings-multimedia-keys.c line 942
  • #16 gnome_settings_daemon_new
    at gnome-settings-daemon.c line 334

Comment 1 W. Michael Petullo 2004-02-18 21:09:11 UTC
Fix this with:

mknod /dev/pmu c 10 154
chmod 666 /dev/pmu

*BUT* not having /dev/pmu should obviously not cause
gnome-settings-daemon to crash.
Comment 2 Luis Villa 2004-02-26 20:15:08 UTC
Michael: are you seeing this with gnome-session 2.5.5 and the latest 
bonobo* releases still? I'm marking this a 2.6.0 showstopper, it's
gruesome if it is still there.
Comment 3 W. Michael Petullo 2004-02-28 16:28:27 UTC
This bug still seems to exist when using the following:

control-center 2.5.3
gnome-session 2.5.90
libbonobo 2.5.4
libbonoboui 2.5.3
Comment 4 Sergey V. Udaltsov 2004-03-03 00:48:49 UTC
I know, this may sound silly - but I cured similar crash by explicit
including the gstrfuncs.h file:

#include <glib/gstrfuncs.h>

Could you please try it - it is not that hard after all.
Comment 5 Vincent Untz 2004-03-14 15:24:20 UTC
*** Bug 136704 has been marked as a duplicate of this bug. ***
Comment 6 Chris Lahey 2004-03-16 06:05:12 UTC
Sergey,

Where are you proposing including it explicitly?  What C file?
Comment 7 Chris Lahey 2004-03-16 06:10:28 UTC
Oh, also

Michael, is that the whole stack?  Could you include it up to main?
Comment 8 Chris Lahey 2004-03-16 06:30:00 UTC
Ok.  Looking at the code more, I see that this could only possibly
happen on a PPC box.  Michael, if you're not on PPC, let us know.

Therefore, I'm going to add to OS Details.

My guess as to what's happening is that starting that dialog while
still in bonobo activation code causes reentrancy in bonobo activation
which breaks.
Comment 9 Sergey V. Udaltsov 2004-03-16 09:08:08 UTC
Chris: gnome-settings-multimedia-keys.c. But not sure it would help.
Just something which helped me once:)
Comment 10 Jody Goldberg 2004-03-16 21:51:05 UTC
Chris : agreed.  The pmu warning is entering a main loop that borks
bonobo.  The simplest solution here is to jsut show the dialog, rather
than running a main loop.
Comment 11 Chris Lahey 2004-03-17 00:38:54 UTC
I tried this by adding an uncondition dialog.  This crashed it. 
Having the dialog called in an idle handler fixed it.  I've made this
change to the code but am not on PPC so can't actually test this
patch.  I'm as confident about it as I can be given those conditions.
Comment 12 Chris Lahey 2004-03-17 00:39:45 UTC
Created attachment 25705 [details] [review]
idle the error dialog.
Comment 13 Luca Barbato 2004-03-29 18:10:17 UTC
I reproduced the bug on the 2.5.4 package.
Could I know why acme is trying to access rw on a device that is commonly marked
readonly?
Comment 14 Jody Goldberg 2004-03-30 19:34:46 UTC
Applied a simple solution that avoids a recusive main loop by just having the
error show, rather than using dialog_run.

The device is accessed to provide brightness information and the crash was
happening because the warning dialog was breaking the main loop.