[meta-freescale] [PATCH] chromium-wayland: Fix crash on tab loading

Alexandra Safta alexandra-ioana.safta at nxp.com
Fri May 5 08:58:16 PDT 2017


A SIGILL, Illegal instruction signal was crashing every
chrome tab. It seems we share a common file with qtwebengine, and
the same problem when using a newer Linux was addressed here:

http://code.qt.io/cgit/qt/qtwebengine-chromium.git/commit/?h=49-based&id=b12ffcd411d4776f7120ccecb3be34344d930d2b

Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com> 
Signed-off-by: Alexandra Safta <alexandra-ioana.safta at nxp.com>

---
 .../chromium/chromium-wayland_53.0.2785.143.bbappend     |  1 +
 .../chromium/chromium/Fix-chromium-xwayland-crash.patch  | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 dynamic-layers/browser-layer/recipes-browser/chromium/chromium/Fix-chromium-xwayland-crash.patch

diff --git a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bbappend b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bbappend
index 7423753..135d094 100644
--- a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bbappend
+++ b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bbappend
@@ -23,6 +23,7 @@ CHROMIUM_ENABLE_WAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '1
 SRC_URI += "\
         ${@oe.utils.conditional('CHROMIUM_ENABLE_WAYLAND', '1', 'git://github.com/01org/ozone-wayland.git;destsuffix=${OZONE_WAYLAND_GIT_DESTSUFFIX};branch=${OZONE_WAYLAND_GIT_BRANCH};rev=${OZONE_WAYLAND_GIT_SRCREV}', '', d)} \
         ${@oe.utils.conditional('CHROMIUM_ENABLE_WAYLAND', '1', ' file://chromium.patch', '', d)} \
+        ${@oe.utils.conditional('CHROMIUM_ENABLE_WAYLAND', '1', ' file://Fix-chromium-xwayland-crash.patch', '', d)} \
 "
 
 # Remove packages as Chromium is changed to statically link against ffmpeg.
diff --git a/dynamic-layers/browser-layer/recipes-browser/chromium/chromium/Fix-chromium-xwayland-crash.patch b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium/Fix-chromium-xwayland-crash.patch
new file mode 100644
index 0000000..6b4f701
--- /dev/null
+++ b/dynamic-layers/browser-layer/recipes-browser/chromium/chromium/Fix-chromium-xwayland-crash.patch
@@ -0,0 +1,16 @@
+Index: chromium-53.0.2785.143/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
+===================================================================
+--- chromium-53.0.2785.143.orig/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp	2016-09-29 14:02:41.000000000 -0500
++++ chromium-53.0.2785.143/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp	2017-03-29 00:10:45.457871886 -0500
+@@ -41,6 +41,11 @@
+ #include <errno.h>
+ #include <sys/mman.h>
+ 
++#if OS(LINUX) && defined(MADV_FREE)
++// Added in Linux 4.5, but we don't want to depend on 4.5 at runtime
++#undef MADV_FREE
++#endif
++
+ #ifndef MADV_FREE
+ #define MADV_FREE MADV_DONTNEED
+ #endif
-- 
2.1.4



More information about the meta-freescale mailing list