bug 951782 - Firefox 26 for Android crashes on HTC Desire Z due to on-demand decompression r=mfinkle a=bajaj MOBILE250b1_2013091714_RELBRANCH
☠☠ backed out by fdd9ca7dc62d ☠ ☠
authorBrad Lassey <blassey@mozilla.com>
Thu, 23 Jan 2014 15:00:17 -0500
branchMOBILE250b1_2013091714_RELBRANCH
changeset 167988 09b1134b667dcbdc00aa76b2f45be5dd1258f1b2
parent 154958 a9d943ed17ddfde054a5c95b9a29ea1d7fef4ee7
child 167990 fdd9ca7dc62d4381036cc3f83abda73fbd0656e7
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
milestone25.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);