<?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>149308</bug_id>
          
          <creation_ts>2015-09-17 15:45:17 -0700</creation_ts>
          <short_desc>Null dereference loading Blink layout test fast/parser/iframe-onload-document-close-with-external-script-2.html</short_desc>
          <delta_ts>2016-01-08 17:04:53 -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>Page Loading</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BlinkMergeCandidate, HasReduction, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jon Honeycutt">jhoneycutt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jhoneycutt</cc>
    
    <cc>jiewen_tan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1126906</commentid>
    <comment_count>0</comment_count>
      <attachid>261445</attachid>
    <who name="Jon Honeycutt">jhoneycutt</who>
    <bug_when>2015-09-17 15:45:17 -0700</bug_when>
    <thetext>Created attachment 261445
crashing test

Null dereference loading Blink layout test fast/parser/iframe-onload-document-close-with-external-script-2.html.

Stack trace:

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0:
--&gt; 
    __TEXT                 0000000105471000-0000000105473000 [    8K] r-x/rwx SM=COW  /Users/USER/*/WebKit.framework/Versions/A/XPCServices/com.apple.WebKit.WebContent.Development.xpc/Contents/MacOS/com.apple.WebKit.WebContent.Development

Application Specific Information:
CRASHING TEST: temp-tests/fast/parser/iframe-onload-document-close-with-external-script-2.html

Global Trace Buffer (reverse chronological seconds):
18.407070    CFNetwork                 	0x00007fff88d43b97 Explicitly setting CF cookie storage singleton
18.407452    CFNetwork                 	0x00007fff88d8f211 Explicitly setting cookie storage singleton

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebCore             	0x000000010d4674a1 WebCore::DocumentMarkerController::detach() + 17 (HashTable.h:1202)
1   com.apple.WebCore             	0x000000010d434948 WebCore::Document::removedLastRef() + 488 (HashTable.h:1202)
2   com.apple.JavaScriptCore      	0x000000010cbc0a28 JSC::MarkedBlock::FreeList JSC::MarkedBlock::specializedSweep&lt;(JSC::MarkedBlock::BlockState)3, (JSC::MarkedBlock::SweepMode)1, true&gt;() + 184 (JSCell.h:151)
3   com.apple.JavaScriptCore      	0x000000010cbc06bd JSC::MarkedBlock::FreeList JSC::MarkedBlock::sweepHelper&lt;true&gt;(JSC::MarkedBlock::SweepMode) + 173 (MarkedBlock.cpp:145)
4   com.apple.JavaScriptCore      	0x000000010cbc016b JSC::MarkedBlock::sweep(JSC::MarkedBlock::SweepMode) + 75 (MarkedBlock.cpp:126)
5   com.apple.JavaScriptCore      	0x000000010cbbf3d1 JSC::MarkedAllocator::allocateSlowCase(unsigned long) + 225 (MarkedAllocator.cpp:74)
6   com.apple.JavaScriptCore      	0x000000010cb4f1aa JSC::InferredValue::create(JSC::VM&amp;) + 154 (MarkedAllocator.h:94)
7   com.apple.JavaScriptCore      	0x000000010c958277 JSC::FunctionExecutable::finishCreation(JSC::VM&amp;) + 39 (WriteBarrierInlines.h:54)
8   com.apple.JavaScriptCore      	0x000000010cb91c80 JSC::UnlinkedFunctionExecutable::link(JSC::VM&amp;, JSC::SourceCode const&amp;, int) + 336 (Executable.h:621)
9   com.apple.JavaScriptCore      	0x000000010caebfb6 JSC::JSGlobalObject::init(JSC::VM&amp;) + 32566 (JSGlobalObject.cpp:526)
10  com.apple.WebCore             	0x000000010d86ac89 JSC::JSGlobalObject::finishCreation(JSC::VM&amp;, JSC::JSObject*) + 201 (JSGlobalObject.h:371)
11  com.apple.WebCore             	0x000000010d8b8456 WebCore::JSDOMWindowBase::finishCreation(JSC::VM&amp;, WebCore::JSDOMWindowShell*) + 38 (JSDOMWindowBase.cpp:75)
12  com.apple.WebCore             	0x000000010d8bd96e WebCore::JSDOMWindowShell::setWindow(WTF::PassRefPtr&lt;WebCore::DOMWindow&gt;) + 558 (JSDOMWindow.h:40)
13  com.apple.WebCore             	0x000000010decddea WebCore::ScriptController::clearWindowShell(WebCore::DOMWindow*, bool) + 314 (StdLibExtras.h:366)
14  com.apple.WebCore             	0x000000010d5c5e16 WebCore::FrameLoader::clear(WebCore::Document*, bool, bool, bool) + 294 (FrameLoader.cpp:621)
15  com.apple.WebCore             	0x000000010d4753f5 WebCore::DocumentWriter::begin(WebCore::URL const&amp;, bool, WebCore::Document*) + 309 (StdLibExtras.h:366)
16  com.apple.WebCore             	0x000000010d45de75 WebCore::DocumentLoader::commitData(char const*, unsigned long) + 181 (StdLibExtras.h:366)
17  com.apple.WebKit              	0x000000010ba85b42 WebKit::WebFrameLoaderClient::committedLoad(WebCore::DocumentLoader*, char const*, int) + 50 (WebFrameLoaderClient.cpp:946)
18  com.apple.WebCore             	0x000000010d45fb01 WebCore::DocumentLoader::commitLoad(char const*, int) + 145 (DocumentLoader.h:225)
19  com.apple.WebCore             	0x000000010d28a250 WebCore::CachedRawResource::notifyClientsDataWasReceived(char const*, unsigned int) + 160 (CachedResourceClientWalker.h:51)
20  com.apple.WebCore             	0x000000010d28a121 WebCore::CachedRawResource::addDataBuffer(WebCore::SharedBuffer&amp;) + 145 (CachedRawResource.cpp:70)
21  com.apple.WebCore             	0x000000010e004f8a WebCore::SubresourceLoader::didReceiveDataOrBuffer(char const*, int, WTF::PassRefPtr&lt;WebCore::SharedBuffer&gt;, long long, WebCore::DataPayloadType) + 218 (SubresourceLoader.cpp:292)
22  com.apple.WebCore             	0x000000010e004e73 WebCore::SubresourceLoader::didReceiveData(char const*, unsigned int, long long, WebCore::DataPayloadType) + 35 (StdLibExtras.h:366)
23  com.apple.WebKit              	0x000000010bb4b85d WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(IPC::Connection&amp;, IPC::MessageDecoder&amp;) + 257 (HandleMessage.h:16)
24  com.apple.WebKit              	0x000000010b9251f1 IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::MessageDecoder, std::__1::default_delete&lt;IPC::MessageDecoder&gt; &gt;) + 127 (memory:2636)
25  com.apple.WebKit              	0x000000010b927b4a IPC::Connection::dispatchOneMessage() + 126 (memory:2656)
26  com.apple.JavaScriptCore      	0x000000010cd69985 WTF::RunLoop::performWork() + 437 (functional:1742)
27  com.apple.JavaScriptCore      	0x000000010cd69d32 WTF::RunLoop::performWork(void*) + 34 (RunLoopCF.cpp:39)
28  com.apple.CoreFoundation      	0x00007fff949e2c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
29  com.apple.CoreFoundation      	0x00007fff949d4b1c __CFRunLoopDoSources0 + 556
30  com.apple.CoreFoundation      	0x00007fff949d403f __CFRunLoopRun + 927
31  com.apple.CoreFoundation      	0x00007fff949d3a38 CFRunLoopRunSpecific + 296
32  com.apple.HIToolbox           	0x00007fff88e673bd RunCurrentEventLoopInMode + 235
33  com.apple.HIToolbox           	0x00007fff88e67153 ReceiveNextEventCommon + 432
34  com.apple.HIToolbox           	0x00007fff88e66f93 _BlockUntilNextEventMatchingListInModeWithFilter + 71
35  com.apple.AppKit              	0x00007fff870b81e7 _DPSNextEvent + 1076
36  com.apple.AppKit              	0x00007fff8748490d -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
37  com.apple.AppKit              	0x00007fff870ae0b8 -[NSApplication run] + 682
38  com.apple.AppKit              	0x00007fff87030396 NSApplicationMain + 1176
39  libxpc.dylib                  	0x00007fff8c70ff70 _xpc_objc_main + 793
40  libxpc.dylib                  	0x00007fff8c7116bf xpc_main + 494
41  com.apple.WebKit.WebContent.Development	0x0000000105472424 main + 409 (XPCServiceMain.Development.mm:187)
42  libdyld.dylib                 	0x00007fff93aa15ad start + 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1126907</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-09-17 15:45:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/22748197&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139109</commentid>
    <comment_count>2</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2015-11-03 15:03:37 -0800</bug_when>
    <thetext>It seems like this is a test case from WebKit. It is related to Bug 53689.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1154072</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-01-08 17:04:53 -0800</bug_when>
    <thetext>We have not been able to reproduce this problem under current WebKit. We think other work during this cycle has resolved the issue, but I cannot identify what those changes were.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>261445</attachid>
            <date>2015-09-17 15:45:17 -0700</date>
            <delta_ts>2015-09-17 15:45:17 -0700</delta_ts>
            <desc>crashing test</desc>
            <filename>iframe-onload-document-close-with-external-script-2.html</filename>
            <type>text/html</type>
            <size>230</size>
            <attacher name="Jon Honeycutt">jhoneycutt</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KaWYgKHdpbmRvdy50ZXN0UnVubmVyKQogICAgdGVzdFJ1bm5lci5kdW1wQXNUZXh0
KCk7Cjwvc2NyaXB0Pgo8c2NyaXB0IHNyYz0ibm9uLWV4aXN0ZW50LmpzIj48L3NjcmlwdD4KPGlm
cmFtZSBvbmxvYWQ9ImRvY3VtZW50Lm9wZW4oKTsgZG9jdW1lbnQud3JpdGUoJ1RoaXMgdGVzdCBw
YXNzZXMgaWYgaXQgZG9lcyBub3QgY3Jhc2gnKTsgZG9jdW1lbnQuY2xvc2UoKTsiPjwvaWZyYW1l
Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>