GNOME Bugzilla – Bug 580193
crashes when message is cancelled by restart callback, when using async session
Last modified: 2009-05-05 14:07:22 UTC
Found this while debugging the last crash we have in our test suite, for WebKitGTK+. I'm attaching a patch that fixes the problem, though I am not sure it is the correct solution. Here's output of the test program I wrote, along with the backtrace: ** (process:24360): WARNING **: Location: http://localhost:12345/blah/ ** (process:24360): WARNING **: restarted... uri: http://localhost:12345/blah/ (process:24360): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed Program received signal SIGSEGV, Segmentation fault.
+ Trace 214776
Thread 3079719696 (LWP 24360)
Created attachment 133285 [details] small test case I was using to test
Created attachment 133286 [details] [review] patch that seems to fix the issue
thanks. will go into 2.26.2 commit 74ed15a45689af40d6f210a6624fba0ea829055b Author: Dan Winship <danw@gnome.org> Date: Tue Apr 28 12:23:03 2009 -0400 Fix a crash when cancelling a message from a "restarted" handler SoupSessionAsync was mistakenly leaving its own "restarted" handler connected even after "finished" was emitted. misc-test was supposed to catch that, but it was using SoupSessionSync rather than Async. Changed it to use Async since Async adds some signal handlers of its own, while Sync does not. Fixes #380193, reported by Gustavo Noronha
*** Bug 579029 has been marked as a duplicate of this bug. ***