components/desktop/firefox/patches/firefox-09-gthread-dlopen.patch
changeset 5527 611b2d6efdfe
parent 5255 cea0e462549a
child 7309 2655ef11c386
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/desktop/firefox/patches/firefox-09-gthread-dlopen.patch	Tue Mar 01 12:56:53 2016 -0800
@@ -0,0 +1,15 @@
+See Mozilla bug #675585 - crash [@ g_slice_free1] when run firefox-bin -no-
+remote -process-updates.
+
+diff --git a/xpcom/glue/standalone/nsXPCOMGlue.cpp b/xpcom/glue/standalone/nsXPCOMGlue.cpp
+--- a/xpcom/glue/standalone/nsXPCOMGlue.cpp
++++ b/xpcom/glue/standalone/nsXPCOMGlue.cpp
+@@ -386,6 +386,8 @@
+     }   
+   }
+ 
++  static void* gthreadso = dlopen("libgthread-2.0.so.0", RTLD_GLOBAL | RTLD_LAZY);
++
+   GetFrozenFunctionsFunc sym =
+     (GetFrozenFunctionsFunc)GetSymbol(sTop->libHandle,
+                                       LEADING_UNDERSCORE "NS_GetFrozenFunctions");