<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebProcess from patched WebKitGtk+ 2.15.2 receives BadAccess X Error"
   href="https://bugs.webkit.org/show_bug.cgi?id=166740">166740</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK] WebProcess from patched WebKitGtk+ 2.15.2 receives BadAccess X Error
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>agomez&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=298126" name="attach_298126" title="BT from gdb for the WebProcess">attachment 298126</a> <a href="attachment.cgi?id=298126&amp;action=edit" title="BT from gdb for the WebProcess">[details]</a></span>
BT from gdb for the WebProcess

I'm using WebKitGtk+ with my own JHBuild setting:
<a href="https://github.com/tanty/jhbuild-epiphany/tree/master">https://github.com/tanty/jhbuild-epiphany/tree/master</a>

Epiphany 3.20.3 and WebKit 2.15.2 with the attached patches for <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GTK] Dramatic increase on memory usage since 2.14.x"
   href="show_bug.cgi?id=164049">bug 164049</a>, <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GTK] GLXBadFBConfig error when creating an OpenGL context"
   href="show_bug.cgi?id=165200">bug 165200</a>, <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Fix WinCairo build after r208997"
   href="show_bug.cgi?id=165283">bug 165283</a> and <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GTK] Since the memory pressure relief has been activated, my disk has a high usage and the desktop stalls"
   href="show_bug.cgi?id=164052">bug 164052</a>, applied, and also the modification suggested at <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebProcess from WebKitGtk+ 2.15.2 SIGSEGVs in std::unique_ptr&lt;SoupBuffer, WTF::GPtrDeleter&lt;SoupBuffer&gt; &gt;::get() const () at /usr/include/c++/6/bits/unique_ptr.h:305"
   href="show_bug.cgi?id=165848#c18">https://bugs.webkit.org/show_bug.cgi?id=165848#c18</a>

I'm running Epiphany with the dconf key:

&quot;process-model&quot; = &quot;shared-secondary-process&quot;

And the env variable:

&quot;export LIBGL_DRI3_DISABLE=1&quot;

The compilation was done with CMake args:

'-DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIBROWSER=ON -DCMAKE_C_FLAGS_RELEASE=&quot;-O0 -g -DNDEBUG -DG_DEBUG=fatal-criticals -DG_DISABLE_CAST_CHECKS&quot; -DCMAKE_CXX_FLAGS_RELEASE=&quot;-O0 -g -DNDEBUG -DG_DEBUG=fatal-criticals -DG_DISABLE_CAST_CHECKS&quot;'

After visiting several pages, eventually, the WebProcess hits a SIGTRAP.

This bug is not reproducible in a predictable way.


This the error message:


-- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; --

(WebKitWebProcess:20587): Gdk-ERROR **: The program 'WebKitWebProcess' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 13421095 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

-- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; -- 8&lt; --</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>