<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6931</bug_id>
          
          <creation_ts>2014-11-04 21:16:25 +0000</creation_ts>
          <short_desc>webkit-gtk - segmentation violation on ARMv5/ARMv6</short_desc>
          <delta_ts>2015-06-03 14:41:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Sato</product>
          <component>gtk-engine</component>
          <version>svn</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>alex.kanavin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46749</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2014-11-04 21:16:25 +0000</bug_when>
    <thetext>When built for a ARMv5 (qemuarm) or ARMv6 (raspberrypi), the JavaScript interpretter
gets a segmentation violation.

Build &apos;midori&apos; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46799</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-11-06 15:45:22 +0000</bug_when>
    <thetext>Before retesting this one, webkit-gtk, webkit and Midori needs to be upgraded first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49655</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-23 14:03:08 +0000</bug_when>
    <thetext>Retested using midori 0.5.8, issue still present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49670</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-23 18:33:11 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49671</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-23 18:34:24 +0000</bug_when>
    <thetext>JiT for WEbkit JS will be disabled for ARM v5 and v6 for now.
This needs to be re-evaluated after webkit next upgrade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49673</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-23 18:34:49 +0000</bug_when>
    <thetext>Patch sent in for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49754</commentid>
    <comment_count>6</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-25 16:12:06 +0000</bug_when>
    <thetext>Fixed with commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7ecfaaaf5886c1892cc5190f8d632265ffd92f50</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51420</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-06-02 12:36:33 +0000</bug_when>
    <thetext>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&apos;ll submit webkit/midori update patches as soon as they&apos;re ready.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51453</commentid>
    <comment_count>8</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-06-03 07:03:44 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51474</commentid>
    <comment_count>9</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-06-03 12:36:26 +0000</bug_when>
    <thetext>What patch are you referring to? And why should it be removed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51477</commentid>
    <comment_count>10</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-06-03 14:41:14 +0000</bug_when>
    <thetext>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&apos;t build otherwise. I think this can be closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>