Bug #161

WebKitGTK FTBFS when building GObject introspection

Added by Igor Pashev 10 months ago. Updated 6 months ago.

Status:Resolved Start date:2013-10-30
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

WebKitGTK FTBFS when building GObject introspection due to deadlock.

See also net-libs/webkit-gtk:* hangs

webkitgtk-hangs.txt Magnifier (2.9 kB) Igor Pashev, 2013-12-03 07:49 am

History

#1 Updated by Igor Pashev 9 months ago

  • File deleted (webkitgtk-hangs.txt)

#2 Updated by Igor Pashev 9 months ago

#3 Updated by Igor Pashev 9 months ago

  • Status changed from New to Resolved
Index: webkit/Source/WebKit/gtk/webkit/webkitglobals.cpp
===================================================================
--- webkit.orig/Source/WebKit/gtk/webkit/webkitglobals.cpp    2013-12-02 00:06:10.504150531 +0400
+++ webkit/Source/WebKit/gtk/webkit/webkitglobals.cpp    2013-12-03 14:08:05.956932011 +0400
@@ -564,6 +564,14 @@

     WebCore::SchemeRegistry::registerURLSchemeAsLocal("resource");

+    // http://osdyson.org/issues/161
+    // WebKitGTK FTBFS when building GObject introspection due to deadlock.
+    // When gobject introspection is done, a simple program call exit()
+    // exit() -> webkitExit() -> g_object_unref() -> webkit_get_default_session()
+    // -> ResourceHandle::defaultSession() => default session doesn't exist! AND
+    // we try to create it! Thus deadlock. So, create default session earlier:
+    (void) webkit_get_default_session();
+
     atexit(webkitExit);
 }

#4 Updated by Igor Pashev 9 months ago

  • Description updated (diff)

Also available in: Atom PDF