GNOME Bugzilla – Bug 724097
gnome-weather search provider crashing
Last modified: 2014-02-19 16:37:01 UTC
Created attachment 268754 [details] backtrace gnome-weather search provider is crashing in gjs on cleanup. Looks like the GC is running outside of a Request.
Created attachment 268756 [details] [review] context: enter request before GC in gjs_context_dispose
Review of attachment 268756 [details] [review]: Ah, sounds right. Thanks!
Attachment 268756 [details] pushed as adb6c1f - context: enter request before GC in gjs_context_dispose
This causes the test suite and derived programs like gnome-continuous to fail for me (RHEL7, x86_64, jhbuild).
I have reverted it on master for now. Here's the trace: (gdb) bt
+ Trace 233169
Then if you look at the code: if (cx->outstandingRequests != 0) MOZ_CRASH(); So...can you get me a trace of gnome-weather's crash?
The trace is in the first comment. I think we need a request around JS_GC(), but not around JS_DestroyContext(), so we can't use JSAutoRequest.
Created attachment 269092 [details] [review] context: enter request before GC in gjs_context_dispose updated patch to only enter request for JS_GC. I can't reproduce any crashes with this patch.
Review of attachment 269092 [details] [review]: Yes, thank you!