<?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>11514</bug_id>
          
          <creation_ts>2006-11-04 02:13:14 -0800</creation_ts>
          <short_desc>REGRESSION (r17438): Repro crash when opening a web archive</short_desc>
          <delta_ts>2006-11-04 10:02:06 -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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46932</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-11-04 02:13:14 -0800</bug_when>
    <thetext>Safari crashes when you open any web archive (attaching one for example). Backtrace:

0   com.apple.WebCore        	0x015b8fd0 WebCore::Shared&lt;WebCore::PageState&gt;::deref() + 36
1   com.apple.WebCore        	0x0104dbd4 -[WebCorePageState dealloc] + 48
2   com.apple.WebCore        	0x0104db40 -[WebCorePageState initWithPage:] + 240
3   com.apple.WebKit         	0x003d63e8 WebFrameLoaderClient::createPageCache(WebHistoryItem*) + 156 (WebFrameLoaderClient.mm:1135)
4   com.apple.WebKit         	0x003d6968 WebFrameLoaderClient::provisionalLoadStarted() + 852 (WebFrameLoaderClient.mm:995)
5   com.apple.WebCore        	0x014af5f4 WebCore::FrameLoader::provisionalLoadStarted() + 96 (FrameLoaderMac.mm:654)
6   com.apple.WebCore        	0x014af6f8 WebCore::FrameLoader::setState(WebCore::FrameState) + 68 (FrameLoaderMac.mm:661)
7   com.apple.WebCore        	0x014b4b80 WebCore::FrameLoader::continueLoadAfterNavigationPolicy(NSURLRequest*, WTF::PassRefPtr&lt;WebCore::FormState&gt;) + 648 (FrameLoaderMac.mm:1479)
8   com.apple.WebCore        	0x014b4d20 WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy(void*, NSURLRequest*, WTF::PassRefPtr&lt;WebCore::FormState&gt;) + 76 (FrameLoaderMac.mm:1436)
9   com.apple.WebCore        	0x014b39b8 WebCore::PolicyCheck::call() + 144 (FrameLoaderMac.mm:2019)
10  com.apple.WebCore        	0x014b434c WebCore::FrameLoader::continueAfterNavigationPolicy(WebCore::PolicyAction) + 364 (FrameLoaderMac.mm:1417)
11  com.apple.WebKit         	0x003d7924 WebFrameLoaderClient::receivedPolicyDecison(WebCore::PolicyAction) + 392 (WebFrameLoaderClient.mm:1180)
12  com.apple.WebKit         	0x003d7fec -[WebFramePolicyListener receivedPolicyDecision:] + 140 (WebFrameLoaderClient.mm:1242)
13  com.apple.WebKit         	0x003d7734 -[WebFramePolicyListener use] + 64 (WebFrameLoaderClient.mm:1258)
14  libobjc.A.dylib          	0x90a441f4 objc_msgSendv + 180
15  com.apple.Foundation     	0x9295cc88 -[NSInvocation invoke] + 944
16  com.apple.Foundation     	0x9295d238 -[NSInvocation invokeWithTarget:] + 64
17  com.apple.WebKit         	0x0038e3f4 -[_WebSafeForwarder forwardInvocation:] + 632 (WebView.mm:1640)
18  com.apple.Foundation     	0x92955034 -[NSObject(NSForwardInvocation) forward::] + 408
19  libobjc.A.dylib          	0x90a440b0 _objc_msgForward + 176
20  com.apple.WebKit         	0x003d7bd0 WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction(void (WebCore::FrameLoader::*)(WebCore::PolicyAction), WebCore::NavigationAction const&amp;, NSURLRequest*) + 220 (WebFrameLoaderClient.mm:674)
21  com.apple.WebCore        	0x014b3fe0 WebCore::FrameLoader::checkNavigationPolicy(NSURLRequest*, WebCore::DocumentLoader*, WTF::PassRefPtr&lt;WebCore::FormState&gt;, void (*)(void*, NSURLRequest*, WTF::PassRefPtr&lt;WebCore::FormState&gt;), void*) + 780 (FrameLoaderMac.mm:1393)
22  com.apple.WebCore        	0x014b5d9c WebCore::FrameLoader::load(WebCore::DocumentLoader*, WebCore::FrameLoadType, WTF::PassRefPtr&lt;WebCore::FormState&gt;) + 476 (FrameLoaderMac.mm:338)
23  com.apple.WebCore        	0x014b6d14 WebCore::FrameLoader::load(WebCore::DocumentLoader*) + 528 (FrameLoaderMac.mm:317)
24  com.apple.WebKit         	0x00349f98 -[WebFrame loadArchive:] + 500 (WebFrame.mm:1216)
25  com.apple.WebKit         	0x0034b8b4 -[WebHTMLRepresentation loadArchive] + 236 (WebHTMLRepresentation.m:180)
26  com.apple.WebKit         	0x0034b9b8 -[WebHTMLRepresentation finishedLoadingWithDataSource:] + 240 (WebHTMLRepresentation.m:193)
27  com.apple.WebKit         	0x0033e5f4 -[WebDataSource(WebInternal) _finishedLoading] + 112 (WebDataSource.mm:169)
28  com.apple.WebKit         	0x003d547c WebFrameLoaderClient::finishedLoading(WebCore::DocumentLoader*) + 76 (WebFrameLoaderClient.mm:801)
29  com.apple.WebCore        	0x014b0cf4 WebCore::FrameLoader::finishedLoadingDocument(WebCore::DocumentLoader*) + 76 (FrameLoaderMac.mm:1249)
30  com.apple.WebCore        	0x014ab508 WebCore::DocumentLoader::finishedLoading() + 68 (DocumentLoaderMac.mm:322)
31  com.apple.WebCore        	0x014b559c WebCore::FrameLoader::finishedLoading() + 96 (FrameLoaderMac.mm:1059)
32  com.apple.WebCore        	0x014be334 WebCore::MainResourceLoader::didFinishLoading() + 232 (MainResourceLoaderMac.mm:336)
33  com.apple.WebCore        	0x014ba534 -[WebCoreResourceLoaderAsDelegate connectionDidFinishLoading:] + 124 (ResourceLoaderMac.mm:566)
34  com.apple.Foundation     	0x9299384c -[NSURLConnection(NSURLConnectionInternal) _sendDidFinishLoadingCallback] + 188
35  com.apple.Foundation     	0x92991ab8 -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] + 556
36  com.apple.Foundation     	0x92991810 _sendCallbacks + 156
37  com.apple.CoreFoundation 	0x907dd4cc __CFRunLoopDoSources0 + 384
38  com.apple.CoreFoundation 	0x907dc9fc __CFRunLoopRun + 452
39  com.apple.CoreFoundation 	0x907dc47c CFRunLoopRunSpecific + 268
40  com.apple.HIToolbox      	0x93208740 RunCurrentEventLoopInMode + 264
41  com.apple.HIToolbox      	0x93207dd4 ReceiveNextEventCommon + 380
42  com.apple.HIToolbox      	0x93207c40 BlockUntilNextEventMatchingListInMode + 96
43  com.apple.AppKit         	0x9370bae4 _DPSNextEvent + 384
44  com.apple.AppKit         	0x9370b7a8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
45  com.apple.Safari         	0x00006740 0x1000 + 22336
46  com.apple.AppKit         	0x93707cec -[NSApplication run] + 472
47  com.apple.AppKit         	0x937f887c NSApplicationMain + 452
48  com.apple.Safari         	0x0005c77c 0x1000 + 374652
49  com.apple.Safari         	0x0005c624 0x1000 + 374308</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46866</commentid>
    <comment_count>1</comment_count>
      <attachid>11376</attachid>
    <who name="">mitz</who>
    <bug_when>2006-11-04 02:13:56 -0800</bug_when>
    <thetext>Created attachment 11376
web archive of about:blank (will crash)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46867</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-11-04 02:33:24 -0800</bug_when>
    <thetext>Looks like a case of missing null checks in -[WebCorePageState dealloc] and -[WebCorePageState finalize]. m_impl will be 0 if the WebCorePageState failed to initialize.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46786</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-11-04 09:50:52 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Looks like a case of missing null checks in -[WebCorePageState dealloc] and
&gt; -[WebCorePageState finalize]. m_impl will be 0 if the WebCorePageState failed
&gt; to initialize.

Yes, sounds exactly right.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11376</attachid>
            <date>2006-11-04 02:13:56 -0800</date>
            <delta_ts>2006-11-04 02:13:56 -0800</delta_ts>
            <desc>web archive of about:blank (will crash)</desc>
            <filename>blank.webarchive</filename>
            <type>application/octet-stream</type>
            <size>251</size>
            <attacher>mitz</attacher>
            
              <data encoding="base64">YnBsaXN0MDDRAQJfEA9XZWJNYWluUmVzb3VyY2XVAwQFBgcICQoLDF8QE1dlYlJlc291cmNlTUlN
RVR5cGVfEA9XZWJSZXNvdXJjZURhdGFfEBtXZWJSZXNvdXJjZVRleHRFbmNvZGluZ05hbWVfEBRX
ZWJSZXNvdXJjZUZyYW1lTmFtZV5XZWJSZXNvdXJjZVVSTFl0ZXh0L2h0bWxPEBo8aHRtbD48Ym9k
eT48L2JvZHk+PC9odG1sPlVVVEYtOFBbYWJvdXQ6YmxhbmsICx0oPlBuhZSeu8HCAAAAAAAAAQEA
AAAAAAAADQAAAAAAAAAAAAAAAAAAAM4=
</data>

          </attachment>
      

    </bug>

</bugzilla>