<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>194596</bug_id>
          
          <creation_ts>2019-02-13 10:31:15 -0800</creation_ts>
          <short_desc>[ Mac Debug ] ASSERTION FAILED: Layout Test performance-api/performance-observer-basic.html is a flaky crash</short_desc>
          <delta_ts>2019-02-21 21:22:05 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shawn Roberts">sroberts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>beidson</cc>
    
    <cc>ggaren</cc>
    
    <cc>joepeck</cc>
    
    <cc>lforschler</cc>
    
    <cc>rniwa</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1505759</commentid>
    <comment_count>0</comment_count>
    <who name="Shawn Roberts">sroberts</who>
    <bug_when>2019-02-13 10:31:15 -0800</bug_when>
    <thetext>The following layout test is flaky on Mac Debug

performance-api/performance-observer-basic.html

Probable cause:

Appears to be a flaky crash since inception. The oldest build I can spade is r228050

Reproducible with:

run-webkit-tests d228050 performance-api/performance-observer-basic.html --iterations 500 -f --debug
run-webkit-tests d228050 performance-api/performance-observer-basic.html --iterations 500 -f --debug -1 

Flakiness Dashboard:

https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&amp;tests=performance-api%2Fperformance-observer-basic.html

Crash log:

https://build.webkit.org/results/Apple%20Mojave%20Debug%20WK2%20(Tests)/r241432%20(1575)/performance-api/performance-observer-basic-stderr.txt

ASSERTION FAILED: !m_isolatedWorld-&gt;isNormal() || m_wrapper || !m_jsFunction
./bindings/js/JSEventListener.h(109) : JSC::JSObject *WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext &amp;) const
1   0x2b9f83fd9 WTFCrash
2   0x2a800c24b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x2a9e94ca0 WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext&amp;) const
4   0x2a9e9411b WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&amp;, WebCore::Event&amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1505765</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-02-13 10:45:01 -0800</bug_when>
    <thetext>&lt;rdar://problem/48043572&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1508876</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-02-21 21:11:44 -0800</bug_when>
    <thetext>ASSERTION FAILED: !m_isolatedWorld-&gt;isNormal() || m_wrapper || !m_jsFunction
./bindings/js/JSEventListener.h(109) : JSC::JSObject *WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext &amp;) const
1   0x2b9f83fd9 WTFCrash
2   0x2a800c24b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x2a9e94ca0 WebCore::JSEventListener::jsFunction(WebCore::ScriptExecutionContext&amp;) const
4   0x2a9e9411b WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&amp;, WebCore::Event&amp;)
5   0x2aa47941c WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&amp;, WTF::Vector&lt;WTF::RefPtr&lt;WebCore::RegisteredEventListener, WTF::DumbPtrTraits&lt;WebCore::RegisteredEventListener&gt; &gt;, 1ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::EventTarget::EventInvokePhase)
6   0x2aa474e72 WebCore::EventTarget::fireEventListeners(WebCore::Event&amp;, WebCore::EventTarget::EventInvokePhase)
7   0x2aa478f7a WebCore::EventTarget::dispatchEvent(WebCore::Event&amp;)
8   0x2abd7a474 WebCore::WorkerMessagingProxy::postMessageToWorkerObject(WebCore::MessageWithMessagePorts&amp;&amp;)::$_0::operator()(WebCore::ScriptExecutionContext&amp;)
9   0x2abd7a284 WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::CallableWrapper&lt;WebCore::WorkerMessagingProxy::postMessageToWorkerObject(WebCore::MessageWithMessagePorts&amp;&amp;)::$_0&gt;::call(WebCore::ScriptExecutionContext&amp;)
10  0x2a9cf9760 WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const
11  0x2a9ce64dd WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;)
12  0x2aa410f18 WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&amp;&amp;)::$_6::operator()()
13  0x2aa410d39 WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&amp;&amp;)::$_6&gt;::call()
14  0x2b9fad89d WTF::Function&lt;void ()&gt;::operator()() const
15  0x2b9fe5b4d WTF::dispatchFunctionsFromMainThread()
16  0x2b9fe8965 -[JSWTFMainThreadCaller call]
17  0x7fff346ecbab __NSThreadPerformPerform
18  0x7fff322f01d9 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
19  0x7fff322f017f __CFRunLoopDoSource0
20  0x7fff322d402c __CFRunLoopDoSources0
21  0x7fff322d35d3 __CFRunLoopRun
22  0x7fff322d2eb6 CFRunLoopRunSpecific
23  0x7fff346574aa -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
24  0x7fff3465737f -[NSRunLoop(NSRunLoop) run]
25  0x7fff5f7e5ebe _xpc_objc_main
26  0x7fff5f7e59bd _xpc_copy_xpcservice_dictionary
27  0x102be8995 WebKit::XPCServiceMain(int, char const**)
28  0x102a557cb WKXPCServiceMain
29  0x102672f5e main
30  0x7fff5f5aded9 start
31  0x1
LEAK: 2 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1508883</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-02-21 21:21:49 -0800</bug_when>
    <thetext>This is a GC bug :( It looks like we dispatch an event on a worker thread but the event listener is already dead. Maybe a race between the worker dying vs. event getting dispatched?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>