<?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>14281</bug_id>
          
          <creation_ts>2021-03-04 23:51:49 +0000</creation_ts>
          <short_desc>Epiphany fails at runtime with WebKitProcess segfault (musl builds)</short_desc>
          <delta_ts>2021-03-23 16:24:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrei Gherzan">andrei</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>bero</cc>
    
    <cc>randy.macleod</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>89509</commentid>
    <comment_count>0</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2021-03-04 23:51:49 +0000</bug_when>
    <thetext>The bug is reproducible both on dunfell and master.
Reproducible on musl but not on glibc
Reproduced on qemux86-64 and Avenger96 (CortexA7).

At runtime, WebKitProcess segfaults with console looping &quot;Web process crashed&quot;.

It was observed that in developer mode (see https://lists.openembedded.org/g/openembedded-core/message/148949) WebKit doesn&apos;t fail and web pages load to some extend but js support is completely broken (including the browser&apos;s js console which just doesn&apos;t load). Console loops: &quot;Error running javascript: RangeError: Maximum call stack size exceeded.&quot;

The developer mode switch change of behaviour was narrowed down to (in epiphany):

#if DEVELOPER_MODE
  webkit_web_context_set_web_extensions_directory (web_context, BUILD_ROOT &quot;/embed/web-process-extension&quot;);
#else
  webkit_web_context_set_web_extensions_directory (web_context, EPHY_WEB_PROCESS_EXTENSIONS_DIR);
#endif

This can be easily confirmed even without DEVELOPER_MODE by forcing the browser to not load the web-process-extension. So simply removing &quot;libephywebprocessextension.so&quot; would make WebKit stop crashing but the js support is as described above.

On master, the same versions of the relevant packages are also currently in archlinux and they work fine (epiphany 3.38.2/WebKitGTK 2.30.5).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89636</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2021-03-18 02:16:41 +0000</bug_when>
    <thetext>patch is in master-next</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89713</commentid>
    <comment_count>2</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2021-03-23 16:23:30 +0000</bug_when>
    <thetext>Tested the patch - all good.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>