GNOME Bugzilla – Bug 664617
gdbus segfault error 4 in libgio-2.0.so.0.3102.0
Last modified: 2011-11-23 14:12:45 UTC
With glib 2.31.2 many programs like firefox,seamonkey,kdbg,Thunar(when click Enter to open a file) crash with: gdbus[24293]: segfault at 8 ip b704ee85 sp b5877090 error 4 in libgio-2.0.so.0.3102.0[b6f73000+131000] The backtrace is: gdb) r Starting program: /usr/local/firefox11/firefox [Thread debugging using libthread_db enabled] [New Thread 0xb4ce2b70 (LWP 20990)] Program received signal SIGSEGV, Segmentation fault.
+ Trace 229102
Thread 3033410416 (LWP 20990)
Downgrading glib to 2.31.0 breaks gsettings-desktop-schemas in gnome 3.3.2.
This might be a regression caused by my changes on Bug #662395, but I can't reproduce the test failure mentioned in that bug. Thanks for providing a backtrace, I'll have a look at it.
Created attachment 201987 [details] [review] GDBusWorker: continue_writing: initialize flush_async_data if closing This was a regression in commit f41178c6c: flush_async_data wasn't necessarily NULL in the "don't flush" case. Also move initialization of these variables up so that it's unconditional, since that's easier to verify than checking that each branch gets it right. --- Based on your backtrace, here's what I think is wrong. This is largely untested: it passes tests for me, but then, so did the wrong version. I notice you're running on a 32-bit architecture - perhaps this bug isn't visible on x86-64 (which is what I'm using)? I'll try building a 32-bit GLib and see whether I can reproduce the crash there.
This will also need applying on 2.30, otherwise this will regress in 2.30.3.
Should be fixed in a8ee10cc7 (2.30.3), 968ef5f5f (2.31.3). I can't close this bug (I don't have editbugs privileges).
gdbus-proxy test confirm that the bug was solved so we can close it. Thanks Simon.