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 545575 - gdmsetup crashed with SIGSEGV in g_main_context_dispatch()
gdmsetup crashed with SIGSEGV in g_main_context_dispatch()
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: gio
2.16.x
Other Linux
: Normal critical
: ---
Assigned To: Alexander Larsson
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-07-30 19:17 UTC by Sebastien Bacher
Modified: 2012-07-06 01:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sebastien Bacher 2008-07-30 19:17:22 UTC
the bug has been opened on https://launchpad.net/bugs/252973

"This was originally reported in https://bugs.launchpad.net/bugs/246088, but was closed requesting that a new crash file be submitted via apport.

  • #0 ??
  • #1 g_simple_async_result_get_op_res_gboolean
    from /usr/lib/libgio-2.0.so.0
  • #2 g_loadable_icon_get_type
    from /usr/lib/libgio-2.0.so.0
  • #3 ??
    from /usr/lib/libglib-2.0.so.0
  • #4 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #5 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #6 g_mapped_file_get_length
    from /usr/lib/libglib-2.0.so.0
  • #7 IA__gtk_main
    at /build/buildd/gtk+2.0-2.12.9/gtk/gtkmain.c line 1163
  • #8 main

It does not happen with e.g. synaptic, but happens every time with gdmsetup. I am running from a root shell after running "sudo su".

http://launchpadlibrarian.net/16428082/valgrind.log
    *   valgrind.log  (277.8 KiB, text/plain)

==9923== 
==9923== Jump to the invalid address stated on the next line
==9923==    at 0x0: ???
==9923==    by 0x5268DD8: run_in_thread (gsimpleasyncresult.c:613)
==9923==    by 0x52628C1: run_job_at_idle (gioscheduler.c:197)
==9923==    by 0x46E41E0: g_idle_dispatch (gmain.c:4090)
==9923==    by 0x46E5DD5: g_main_context_dispatch (gmain.c:2012)
==9923==    by 0x46E9192: g_main_context_iterate (gmain.c:2645)
==9923==    by 0x46E9576: g_main_loop_run (gmain.c:2853)
==9923==    by 0x4195263: gtk_main (in /usr/lib/libgtk-x11-2.0.so.0.1200.9)
==9923==    by 0x80655F1: main (in /usr/sbin/gdmsetup)
==9923==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==9923== 
==9923== Process terminating with default action of signal 11 (SIGSEGV)
==9923==  Bad permissions for mapped region at address 0x0
==9923==    at 0x0: ???
==9923==    by 0x5268DD8: run_in_thread (gsimpleasyncresult.c:613)
==9923==    by 0x52628C1: run_job_at_idle (gioscheduler.c:197)
==9923==    by 0x46E41E0: g_idle_dispatch (gmain.c:4090)
==9923==    by 0x46E5DD5: g_main_context_dispatch (gmain.c:2012)
==9923==    by 0x46E9192: g_main_context_iterate (gmain.c:2645)
==9923==    by 0x46E9576: g_main_loop_run (gmain.c:2853)
==9923==    by 0x4195263: gtk_main (in /usr/lib/libgtk-x11-2.0.so.0.1200.9)
==9923==    by 0x80655F1: main (in /usr/sbin/gdmsetup)"
Comment 1 Sebastien Bacher 2008-07-30 19:19:51 UTC
updated debug stacktrace:

"#0  0x00000000 in ?? ()
  • #1 run_in_thread
    at /build/buildd/glib2.0-2.16.4/gio/gsimpleasyncresult.c line 613
  • #2 run_job_at_idle
    at /build/buildd/glib2.0-2.16.4/gio/gioscheduler.c line 197
  • #3 g_idle_dispatch
    at /build/buildd/glib2.0-2.16.4/glib/gmain.c line 4090
  • #4 IA__g_main_context_dispatch
    at /build/buildd/glib2.0-2.16.4/glib/gmain.c line 2012
  • #5 g_main_context_iterate
    at /build/buildd/glib2.0-2.16.4/glib/gmain.c line 2645
  • #6 IA__g_main_loop_run
    at /build/buildd/glib2.0-2.16.4/glib/gmain.c line 2853
  • #7 IA__gtk_main
    at /build/buildd/gtk+2.0-2.12.9/gtk/gtkmain.c line 1163
  • #8 main
    at gdmsetup.c line 8354

Comment 2 Matthias Clasen 2008-08-01 18:21:26 UTC
Looks like something is passing NULL as function to g_simple_async_result_run_in_thread ?

Hard to tell where that happens, from this stacktrace.
Comment 3 Sebastien Bacher 2008-08-01 19:19:26 UTC
do you have any idea on how to get extra details about the issue?
Comment 4 Matthias Clasen 2008-08-01 21:02:11 UTC
Dunno. 
Maybe break in g_simple_async_result_run_in_thread 
witch condition func == NULL.

Comment 5 Alexander Larsson 2009-03-03 14:50:37 UTC
g_simple_async_result_run_in_thread has "g_return_if_fail (func != NULL)"

So, this should report some spew somewhere. You could break in g_log to find it.


Comment 6 Matthias Clasen 2012-07-06 01:49:54 UTC
Assuming that more details are not going to come at this point. Closing