[oe] [meta-browser][PATCH 3/8] firefox: prevent SIGILL crash with arm build

Max Krummenacher max.oss.09 at gmail.com
Sun Aug 16 19:40:18 UTC 2015


Firefox crashes with a SIGILL signal during startup.

Signed-off-by: Max Krummenacher <max.oss.09 at gmail.com>
---
 recipes-mozilla/firefox/firefox/alignment.patch | 17 +++++++++++++++++
 recipes-mozilla/firefox/firefox_10.0.11esr.bb   |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 recipes-mozilla/firefox/firefox/alignment.patch

diff --git a/recipes-mozilla/firefox/firefox/alignment.patch b/recipes-mozilla/firefox/firefox/alignment.patch
new file mode 100644
index 0000000..f5d5b7c
--- /dev/null
+++ b/recipes-mozilla/firefox/firefox/alignment.patch
@@ -0,0 +1,17 @@
+In some setups firefox crashes because of wrongly aligned variables
+Observed on a ARM Cortex-A9 target.
+
+Upstream-Status: Pending
+
+Signed-off-by: Max Krummenacher <max.oss.09 at gmail.com>
+--- mozilla-release/ipc/ipdl/ipdl/cxx/cgen.py~	2012-07-29 11:14:45.000000000 +0200
++++ mozilla-release/ipc/ipdl/ipdl/cxx/cgen.py	2012-07-29 11:13:36.000000000 +0200
+@@ -107,7 +107,7 @@
+             self.println(';')
+         self.dedent()
+ 
+-        self.printdent('}')
++        self.printdent('} __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)))')
+ 
+ 
+     def visitTypedef(self, td):
diff --git a/recipes-mozilla/firefox/firefox_10.0.11esr.bb b/recipes-mozilla/firefox/firefox_10.0.11esr.bb
index e07555b..cb368d0 100644
--- a/recipes-mozilla/firefox/firefox_10.0.11esr.bb
+++ b/recipes-mozilla/firefox/firefox_10.0.11esr.bb
@@ -75,7 +75,8 @@ SRC_URI = "https://archive.mozilla.org/pub/firefox/releases/${PV}/source/firefox
            file://powerpc_va_list.patch \
            file://freetype-2.5.patch \
            file://x86_64-fix.patch \
-           file://vendor.js"
+           file://vendor.js \
+           file://alignment.patch"
 
 SRC_URI[archive.md5sum] = "2f0e3a1dd7480e03f374c0121b4155e2"
 SRC_URI[archive.sha256sum] = "94b4d5a339d97dc56fd349f93407c3af4f408a4a8409a64e3680d564d37594f8"
-- 
1.8.4.5




More information about the Openembedded-devel mailing list