bug 951782 - Firefox 26 for Android crashes on HTC Desire Z due to on-demand decompression r=mfinkle a=bajaj
authorBrad Lassey <blassey@mozilla.com>
Thu, 23 Jan 2014 15:00:17 -0500
changeset 167991 cb5b46ea91f0ac56abd806197dd709186d52f2fb
parent 167989 3d9348254b6563df8d0cf5920ab91ffaa011820c
child 167992 e9969e74c4a4ab6ee8f2dd997eea58069cae427f
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, bajaj
bugs951782
milestone27.0
bug 951782 - Firefox 26 for Android crashes on HTC Desire Z due to on-demand decompression r=mfinkle a=bajaj
mobile/android/base/mozglue/GeckoLoader.java.in
--- a/mobile/android/base/mozglue/GeckoLoader.java.in
+++ b/mobile/android/base/mozglue/GeckoLoader.java.in
@@ -200,16 +200,23 @@ public final class GeckoLoader {
 
         // setup the libs cache
         String linkerCache = System.getenv("MOZ_LINKER_CACHE");
         if (linkerCache == null) {
             linkerCache = cacheFile.getPath();
             putenv("MOZ_LINKER_CACHE=" + linkerCache);
         }
 
+        // Disable on-demand decompression of the linker on devices where it
+        // is known to cause crashes.
+        if ("HTC".equals(android.os.Build.MANUFACTURER) &&
+            "HTC Vision".equals(android.os.Build.MODEL)) {
+            putenv("MOZ_LINKER_ONDEMAND=0");
+        }
+
 #ifdef MOZ_LINKER_EXTRACT
         putenv("MOZ_LINKER_EXTRACT=1");
         // Ensure that the cache dir is world-writable
         File cacheDir = new File(linkerCache);
         if (cacheDir.isDirectory()) {
             cacheDir.setWritable(true, false);
             cacheDir.setExecutable(true, false);
             cacheDir.setReadable(true, false);