[Webkit-unassigned] [Bug 157462] New: ThreadSanitizer: Data race and thread leak in WebCore::ScrollingThread::createThreadIfNeeded

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 8 04:40:37 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=157462

            Bug ID: 157462
           Summary: ThreadSanitizer: Data race and thread leak in
                    WebCore::ScrollingThread::createThreadIfNeeded
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: ap at webkit.org, koivisto at iki.fi, simon.fraser at apple.com

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() <null> (WebCore+0x00000174e78e)
    #1 WebCore::ScrollingThread::threadCallback(void*) <null> (WebCore+0x00000174e0f0)
    #2 WTF::threadEntryPoint(void*) <null> (JavaScriptCore+0x000000a06801)

  Previous read of size 8 at 0x000110863150 by main thread:
    #0 WebCore::ScrollingThread::createThreadIfNeeded() <null> (WebCore+0x00000174de3b)
    #1 WebCore::ScrollingThread::dispatch(std::__1::function<void ()>) <null> (WebCore+0x00000174dc2a)
    #2 WebCore::MemoryPressureHandler::releaseMemory(WebCore::Critical, WebCore::Synchronous) <null> (WebCore+0x0000012d3c93)
    #3 std::__1::__function::__func<WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0, std::__1::allocator<WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0>, void (WebCore::Critical, WebCore::Synchronous)>::operator()(WebCore::Critical&&, WebCore::Synchronous&&) <null> (WebCore+0x0000012d40a9)
    #4 WebCore::MemoryPressureHandler::respondToMemoryPressure(WebCore::Critical, WebCore::Synchronous) <null> (WebCore+0x0000012d4c26)
    #5 invocation function for block in WebCore::MemoryPressureHandler::install() <null> (WebCore+0x0000012d4b60)
    #6 __wrap_dispatch_source_set_event_handler_block_invoke <null> (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 <null> (libclang_rt.tsan_osx_dynamic.dylib+0x0000000230c1)
    #1 WTF::createThreadInternal(void (*)(void*), void*, char const*) <null> (JavaScriptCore+0x000000a06b4d)
    #2 WebCore::ScrollingThread::dispatch(std::__1::function<void ()>) <null> (WebCore+0x00000174dc2a)
    #3 WebCore::MemoryPressureHandler::releaseMemory(WebCore::Critical, WebCore::Synchronous) <null> (WebCore+0x0000012d3c93)
    #4 std::__1::__function::__func<WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0, std::__1::allocator<WebCore::MemoryPressureHandler::MemoryPressureHandler()::$_0>, void (WebCore::Critical, WebCore::Synchronous)>::operator()(WebCore::Critical&&, WebCore::Synchronous&&) <null> (WebCore+0x0000012d40a9)
    #5 WebCore::MemoryPressureHandler::respondToMemoryPressure(WebCore::Critical, WebCore::Synchronous) <null> (WebCore+0x0000012d4c26)
    #6 invocation function for block in WebCore::MemoryPressureHandler::install() <null> (WebCore+0x0000012d4b60)
    #7 __wrap_dispatch_source_set_event_handler_block_invoke <null> (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 <null> (libclang_rt.tsan_osx_dynamic.dylib+0x0000000230c1)
    #1 WTF::createThreadInternal(void (*)(void*), void*, char const*) <null> (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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160508/b7f7406c/attachment-0001.html>


More information about the webkit-unassigned mailing list