<?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>137529</bug_id>
          
          <creation_ts>2014-10-08 10:50:09 -0700</creation_ts>
          <short_desc>[Win] Crashing in inspector-protocol tests</short_desc>
          <delta_ts>2017-01-18 23:39:30 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Matt Baker">mattbaker</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>joepeck</cc>
    
    <cc>mattbaker</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1040345</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-10-08 10:50:09 -0700</bug_when>
    <thetext>We are experiencing two inspector-protocol failures:

inspector-protocol/debugger/terminate-dedicated-worker-while-paused.html
inspector-protocol/debugger/pause-on-assert.html

It appears that the inspector is getting disconnected from the worker process before all messages have been processed. When this happens, we attempt to dereference a null pointer and the process crashes:

Call stack:
&gt;	WebKit.dll!WebCore::WorkerMessagingProxy::postMessageToPageInspector::__l3::&lt;lambda&gt;(WebCore::ScriptExecutionContext &amp; __formal) Line 299	C++
 	[External Code]	
 	WebKit.dll!WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext &amp; context) Line 144	C++
 	WebKit.dll!WebCore::Document::postTask::__l8::&lt;lambda&gt;() Line 5012	C++
 	[External Code]	
 	WTF.dll!WTF::callFunctionObject(void * context) Line 213	C++
 	WTF.dll!WTF::dispatchFunctionsFromMainThread() Line 165	C++
 	WTF.dll!WTF::ThreadingWindowWndProc(HWND__ * hWnd, unsigned int message, unsigned int wParam, long lParam) Line 47	C++
 	[External Code]	
 	DumpRenderTree.dll!runTest(const std::basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt; &gt; &amp; inputLine) Line 1095	C++
 	DumpRenderTree.dll!main(int argc, const char * * argv) Line 1383	C++
 	DumpRenderTree.dll!dllLauncherEntryPoint(int argc, const char * * argv) Line 1408	C++
 	DumpRenderTree.exe!main(int argc, const char * * argv) Line 235	C++
 	[External Code]	

m_pageInspector is 0, because WorkerMessagingProxy::disconnectFromInspector was called before the worker runloop was empty of messages for the inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040421</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-10-08 15:12:12 -0700</bug_when>
    <thetext>These two tests were marked as crashing in r174479. &lt;https://trac.webkit.org/r174479&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1040422</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-10-08 15:12:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/18588536&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>