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 573762 - cpufreq-selector crashed with SIGSEGV in dbus_g_method_return_error()
cpufreq-selector crashed with SIGSEGV in dbus_g_method_return_error()
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: cpufreq
2.25.x
Other Linux
: Normal critical
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 577212 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-03-02 14:53 UTC by Sebastien Bacher
Modified: 2009-03-29 19:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
stacktrace without optimization (5.08 KB, text/plain)
2009-03-08 17:25 UTC, Albert Damen
  Details
suggested patch (632 bytes, patch)
2009-03-08 17:26 UTC, Albert Damen
committed Details | Review

Description Sebastien Bacher 2009-03-02 14:53:48 UTC
This bug has been opened on http://bugs.launchpad.net/bugs/331044

"Binary package hint: gnome-applets

Hmm. I dont know much about it. I tried to change my cpu freq with the applet-- then it crashed.

gnome-applets 2.25.91-0ubuntu1

Debug stacktrace for the crash:

  • #0 gerror_to_dbus_error_message
    at dbus-gobject.c line 974
  • #1 dbus_g_method_return_error
    at dbus-gobject.c line 2306
  • #2 cpufreq_selector_service_set_frequency
    at cpufreq-selector-service.c line 404
  • #3 gobject_message_function
    at dbus-gobject.c line 1284
  • #4 _dbus_object_tree_dispatch_and_unlock
    at dbus-object-tree.c line 856
  • #5 dbus_connection_dispatch
    at dbus-connection.c line 4447
  • #6 message_queue_dispatch
    at dbus-gmain.c line 101
  • #7 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.19.8/glib/gmain.c line 1814
  • #8 g_main_context_iterate
    at /build/buildd/glib2.0-2.19.8/glib/gmain.c line 2448

Comment 1 Carlos Garcia Campos 2009-03-08 16:51:34 UTC
It's not reproducible for me. The crash is actually in dbus-glib so I wonder whether it's a bug in dbus-glib or cpufreq-selector. 
Comment 2 Albert Damen 2009-03-08 17:24:45 UTC
I can confirm this bug with gnome-applets 2.25.92. The crash only happens if I
don't have permission to change the cpu frequency. If I grant myself
permissions with polkit-gnome-authorization, the cpu frequency changes
correctly.

To get a more complete stacktrace, I rebuild gnome-applets and dbus-glib
without optimization. See attached stacktrace.

Then, running cpufreq-selector under gdb, it turned out the error messages set
in "values" in "cpufreq_selector_service_error_get_type" are not available
anymore in "gerror_domaincode_to_dbus_error_name". Using a static const for
"values" solved the problem, see attached patch.
Comment 3 Albert Damen 2009-03-08 17:25:42 UTC
Created attachment 130291 [details]
stacktrace without optimization
Comment 4 Albert Damen 2009-03-08 17:26:19 UTC
Created attachment 130292 [details] [review]
suggested patch
Comment 5 Carlos Garcia Campos 2009-03-08 19:46:57 UTC
Good catch!. I've just applied the patch. Thank you very much. 
Comment 6 Carlos Garcia Campos 2009-03-29 19:28:05 UTC
*** Bug 577212 has been marked as a duplicate of this bug. ***