<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 - ShadowChicken::visitChildren() should not visit tailMarkers and throwMarkers."
   href="https://bugs.webkit.org/show_bug.cgi?id=156532">156532</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ShadowChicken::visitChildren() should not visit tailMarkers and throwMarkers.
          </td>
        </tr>

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

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

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

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </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>JavaScriptCore
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>mark.lam&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>ShadowChicken can store tailMarkers and throwMarkers in its log, specifically in the callee field of a log packet.  However, ShadowChicken::visitChildren() unconditionally visits the callee field of each packet as if they are real objects.  If visitChildren() encounters one of these markers in the log, we get a crash.

This crash was observed in the v8-v6/v8-regexp.js stress test running with shadow chicken when r199393 landed.  r199393 introduced tail calls to a RegExp split fast path, and the v8-regexp.js test exercised this fast path a lot.  Throw in some timely GCs, and we get a crash party.

The fix is to have ShadowChicken::visitChildren() filter out the tailMarker and throwMarker.

Alternatively, if perf is an issue, we can allocate 2 dedicated objects for these markers so that ShadowChicken can continue to visit them.  For now, I'm going with the filter.</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>