Bug 6931 - webkit-gtk - segmentation violation on ARMv5/ARMv6
Summary: webkit-gtk - segmentation violation on ARMv5/ARMv6
Status: RESOLVED OBSOLETE
Alias: None
Product: Sato
Classification: Yocto Project Subprojects
Component: gtk-engine (show other bugs)
Version: svn
Hardware: x86 arm
: Medium normal
Target Milestone: 1.8 M4
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-11-04 21:16 UTC by Gary Thomas
Modified: 2015-06-03 14:41 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Thomas 2014-11-04 21:16:25 UTC
When built for a ARMv5 (qemuarm) or ARMv6 (raspberrypi), the JavaScript interpretter
gets a segmentation violation.

Build 'midori' for one of these platforms.  When it starts, it contacts DuckDuckGo and the javascript on that page will cause the error.

Running the program under gdb:
Program received signal SIGSEGV, Segmentation fault.
(gdb) bt
#0  0xb525aaf0 in asCell (this=0xbefff5d0)
    at /usr/src/debug/webkit-gtk/1.8.3-r1/webkit-1.8.3/Source/JavaScriptCore/runtime/JSValueInlineMethods.h:296
#1  JSC::JSValue::get (this=0xbefff5d0, exec=0xad607698, propertyName=..., slot=...)
    at /usr/src/debug/webkit-gtk/1.8.3-r1/webkit-1.8.3/Source/JavaScriptCore/runtime/JSObject.h:812
#2  0xb5250434 in JSC::JITStubThunked_op_get_by_id_proto_list (args=0xbefff630)
    at /usr/src/debug/webkit-gtk/1.8.3-r1/webkit-1.8.3/Source/JavaScriptCore/jit/JITStubs.cpp:1804
#3  0xb524d5ec in cti_op_get_by_id_proto_list () from /usr/lib/libjavascriptcoregtk-1.0.so.0

When built for ARMv7 (beaglebone, i/MX6 targets), midori runs correctly
Comment 1 Cristian Iorga 2014-11-06 15:45:22 UTC
Before retesting this one, webkit-gtk, webkit and Midori needs to be upgraded first.
Comment 2 Cristian Iorga 2015-03-23 14:03:08 UTC
Retested using midori 0.5.8, issue still present.
Comment 3 Cristian Iorga 2015-03-23 18:33:11 UTC
Investigation started.
Comment 4 Cristian Iorga 2015-03-23 18:34:24 UTC
JiT for WEbkit JS will be disabled for ARM v5 and v6 for now.
This needs to be re-evaluated after webkit next upgrade.
Comment 5 Cristian Iorga 2015-03-23 18:34:49 UTC
Patch sent in for review.
Comment 7 Alexander Kanavin 2015-06-02 12:36:33 UTC
The issue solved itself in latest webkit-gtk, because JIT code no longer even compiles on ARMv5 or ARMv6. Looks like they test only on ARMv7 onwards.

I'll submit webkit/midori update patches as soon as they're ready.
Comment 8 Cristian Iorga 2015-06-03 07:03:44 UTC
Hi Alexander, please remove the armv5 JIT disabling patch while doing the upgrade.

Issue is actually fixed, I reopened the bug in order to track the aforementioned patch removal.
Comment 9 Alexander Kanavin 2015-06-03 12:36:26 UTC
What patch are you referring to? And why should it be removed?
Comment 10 Alexander Kanavin 2015-06-03 14:41:14 UTC
Anyway, the recipe is rewritten from scratch because webkit gtk is now using cmake instead of autotools, and JIT is disabled for ARMv5/6 in the new recipe, because it won't build otherwise. I think this can be closed.