<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 - ThreadSanitizer: Data race and thread leak in WebCore::ScrollingThread::createThreadIfNeeded"
   href="https://bugs.webkit.org/show_bug.cgi?id=157462">157462</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ThreadSanitizer: Data race and thread leak in WebCore::ScrollingThread::createThreadIfNeeded
          </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>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>WebCore Misc.
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ddkilzer&#64;webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>ap&#64;webkit.org, koivisto&#64;iki.fi, simon.fraser&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>ThreadSanitizer has found a data race and thread leak in WebCore::ScrollingThread::createThreadIfNeeded while running layout tests:

CRASHING TEST: compositing/layer-creation/translate-scale-animation-overlap.html
==65095==
==================
WARNING: ThreadSanitizer: data race (pid=65095)
  Write of size 8 at 0x000110863150 by thread T12:
    #0 WebCore::ScrollingThread::initializeRunLoop() &lt;null&gt; (WebCore+0x00000174e78e)
    #1 WebCore::ScrollingThread::threadCallback(void*) &lt;null&gt; (WebCore+0x00000174e0f0)
    #2 WTF::threadEntryPoint(void*) &lt;null&gt; (JavaScriptCore+0x000000a06801)

  Previous read of size 8 at 0x000110863150 by main thread:
    #0 WebCore::ScrollingThread::createThreadIfNeeded() &lt;null&gt; (WebCore+0x00000174de3b)
    #1 WebCore::ScrollingThread::dispatch(std::__1::function&lt;void ()&gt;) &lt;null&gt; (WebCore+0x00000174dc2a)
    #2 WebCore::MemoryPressureHandler::releaseMemory(WebCore::Critical, WebCore::Synchronous) &lt;null&gt; (WebCore+0x0000012d3c93)
    #3 std::__1::__function::__func&lt;WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0, std::__1::allocator&lt;WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0&gt;, void (WebCore::Critical, WebCore::Synchronous)&gt;::operator()(WebCore::Critical&amp;&amp;, WebCore::Synchronous&amp;&amp;) &lt;null&gt; (WebCore+0x0000012d40a9)
    #4 WebCore::MemoryPressureHandler::respondToMemoryPressure(WebCore::Critical, WebCore::Synchronous) &lt;null&gt; (WebCore+0x0000012d4c26)
    #5 invocation function for block in WebCore::MemoryPressureHandler::install() &lt;null&gt; (WebCore+0x0000012d4b60)
    #6 __wrap_dispatch_source_set_event_handler_block_invoke &lt;null&gt; (libclang_rt.tsan_osx_dynamic.dylib+0x00000005c7e2)

  Location is global 'WebCore::ScrollingThread::singleton()::scrollingThread' at 0x000110863138 (WebCore+0x0000020d1150)

  Thread T12 (tid=1603665, running) created by main thread at:
    #0 pthread_create &lt;null&gt; (libclang_rt.tsan_osx_dynamic.dylib+0x0000000230c1)
    #1 WTF::createThreadInternal(void (*)(void*), void*, char const*) &lt;null&gt; (JavaScriptCore+0x000000a06b4d)
    #2 WebCore::ScrollingThread::dispatch(std::__1::function&lt;void ()&gt;) &lt;null&gt; (WebCore+0x00000174dc2a)
    #3 WebCore::MemoryPressureHandler::releaseMemory(WebCore::Critical, WebCore::Synchronous) &lt;null&gt; (WebCore+0x0000012d3c93)
    #4 std::__1::__function::__func&lt;WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0, std::__1::allocator&lt;WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0&gt;, void (WebCore::Critical, WebCore::Synchronous)&gt;::operator()(WebCore::Critical&amp;&amp;, WebCore::Synchronous&amp;&amp;) &lt;null&gt; (WebCore+0x0000012d40a9)
    #5 WebCore::MemoryPressureHandler::respondToMemoryPressure(WebCore::Critical, WebCore::Synchronous) &lt;null&gt; (WebCore+0x0000012d4c26)
    #6 invocation function for block in WebCore::MemoryPressureHandler::install() &lt;null&gt; (WebCore+0x0000012d4b60)
    #7 __wrap_dispatch_source_set_event_handler_block_invoke &lt;null&gt; (libclang_rt.tsan_osx_dynamic.dylib+0x00000005c7e2)

SUMMARY: ThreadSanitizer: data race (OpenSource/WebKitBuild/Release/WebCore.framework/Versions/A/WebCore+0x174e78e) in WebCore::ScrollingThread::initializeRunLoop()
==================
==================
WARNING: ThreadSanitizer: thread leak (pid=65095)
  Thread T10 (tid=1603424, finished) created by main thread at:
    #0 pthread_create &lt;null&gt; (libclang_rt.tsan_osx_dynamic.dylib+0x0000000230c1)
    #1 WTF::createThreadInternal(void (*)(void*), void*, char const*) &lt;null&gt; (JavaScriptCore+0x000000a06b4d)

SUMMARY: ThreadSanitizer: thread leak (OpenSource/WebKitBuild/Release/JavaScriptCore.framework/Versions/A/JavaScriptCore+0xa06b4d) in WTF::createThreadInternal(void (*)(void*), void*, char const*)
==================
ThreadSanitizer: reported 2 warnings</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>