[Webkit-unassigned] [Bug 62808] [Qt] ASSERTION FAILED in ResourceHandle::setDefersLoading causes crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 23 07:41:37 PDT 2011


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





--- Comment #10 from yi shen <yi.4.shen at nokia.com>  2011-06-23 07:41:36 PST ---
(In reply to comment #9)
> > ap, it seems that you have introduced the assertion in ResourceHandle::setDefersLoading (http://trac.webkit.org/changeset/61768). Do you agree with removing it?
> 
> I don't understand the reason for this question. There doesn't seem to be any mention of this assertion being wrong in the discussion above - and instead, there is a comment saying that even if it's removed, another assertion fires later.


(In reply to comment #8)
> ap, it seems that you have introduced the assertion in ResourceHandle::setDefersLoading (http://trac.webkit.org/changeset/61768). Do you agree with removing it?
> 
> In mac port, may connection callbacks get called inside a wkSetNSURLConnectionDefersCallbacks(d->m_connection.get(), true) call?

Hi Luiz, I just debugged mac port, and it seems the connection callbacks DO NOT get called inside wkSetNSURLConnectionDefersCallbacks(). See the call stack below. 

#0 0x1018c7f01 in WebCore::Document::implicitOpen at Document.cpp:1984
#1 0x101900eac in WebCore::DocumentWriter::begin at DocumentWriter.cpp:145
#2 0x101a78476 in WebCore::FrameLoader::receivedFirstData at FrameLoader.cpp:576
#3 0x101a786e6 in WebCore::FrameLoader::willSetEncoding at FrameLoader.cpp:976
#4 0x10190032b in WebCore::DocumentWriter::setEncoding at DocumentWriter.cpp:242
#5 0x1018e9d3f in WebCore::DocumentLoader::commitData at DocumentLoader.cpp:319
#6 0x1010a8679 in -[WebFrame(WebInternal) _commitData:] at WebFrame.mm:869
#7 0x1010d25c2 in -[WebHTMLRepresentation finishedLoadingWithDataSource:] at WebHTMLRepresentation.mm:219
#8 0x10108d3b3 in -[WebDataSource(WebInternal) _finishedLoading] at WebDataSource.mm:229
#9 0x1010b3d64 in WebFrameLoaderClient::finishedLoading at WebFrameLoaderClient.mm:886
#10 0x101a7c2fb in WebCore::FrameLoader::finishedLoadingDocument at FrameLoader.cpp:2099
#11 0x1018e9f59 in WebCore::DocumentLoader::finishedLoading at DocumentLoader.cpp:287
#12 0x101a7b787 in WebCore::FrameLoader::finishedLoading at FrameLoader.cpp:2065
#13 0x10200cf13 in WebCore::MainResourceLoader::didFinishLoading at MainResourceLoader.cpp:485
#14 0x10200e818 in WebCore::MainResourceLoader::continueAfterContentPolicy at MainResourceLoader.cpp:320
#15 0x10200e8ef in WebCore::MainResourceLoader::continueAfterContentPolicy at MainResourceLoader.cpp:334
#16 0x10200e919 in WebCore::MainResourceLoader::callContinueAfterContentPolicy at MainResourceLoader.cpp:326
#17 0x1020c96fc in WebCore::PolicyCallback::call at PolicyCallback.cpp:114
#18 0x1020ca003 in WebCore::PolicyChecker::continueAfterContentPolicy at PolicyChecker.cpp:191
#19 0x1010b3101 in WebFrameLoaderClient::receivedPolicyDecison at WebFrameLoaderClient.mm:1340
#20 0x1010b3196 in -[WebFramePolicyListener receivedPolicyDecision:] at WebFrameLoaderClient.mm:2076
#21 0x1010af500 in -[WebFramePolicyListener use] at WebFrameLoaderClient.mm:2091
#22 0x100039818 in ??
#23 0x7fff84c7696c in __invoking___
#24 0x7fff84c7683d in -[NSInvocation invoke]
#25 0x7fff84c92711 in -[NSInvocation invokeWithTarget:]
#26 0x10115c91b in -[_WebSafeForwarder forwardInvocation:] at WebView.mm:2896
#27 0x7fff84c7398c in ___forwarding___
#28 0x7fff84c6fa68 in __forwarding_prep_0___
#29 0x1010b4af2 in WebFrameLoaderClient::dispatchDecidePolicyForResponse at WebFrameLoaderClient.mm:756
#30 0x1020ca4e6 in WebCore::PolicyChecker::checkContentPolicy at PolicyChecker.cpp:108
#31 0x10200edda in WebCore::MainResourceLoader::didReceiveResponse at MainResourceLoader.cpp:429
#32 0x10200cdb7 in WebCore::MainResourceLoader::handleEmptyLoad at MainResourceLoader.cpp:518
#33 0x10200d5b2 in WebCore::MainResourceLoader::loadNow at MainResourceLoader.cpp:584
#34 0x10200d9f7 in WebCore::MainResourceLoader::load at MainResourceLoader.cpp:613
#35 0x1018e86e2 in WebCore::DocumentLoader::startLoadingMainResource at DocumentLoader.cpp:822
#36 0x101a7592c in WebCore::FrameLoader::continueLoadAfterWillSubmitForm at FrameLoader.cpp:2319
#37 0x101a7db4e in WebCore::FrameLoader::continueLoadAfterNavigationPolicy at FrameLoader.cpp:2851
#38 0x101a7db9a in WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy at FrameLoader.cpp:2724
#39 0x1020c9769 in WebCore::PolicyCallback::call at PolicyCallback.cpp:103
#40 0x1020ca359 in WebCore::PolicyChecker::continueAfterNavigationPolicy at PolicyChecker.cpp:164
#41 0x1010b3101 in WebFrameLoaderClient::receivedPolicyDecison at WebFrameLoaderClient.mm:1340
#42 0x1010b3196 in -[WebFramePolicyListener receivedPolicyDecision:] at WebFrameLoaderClient.mm:2076
#43 0x1010af500 in -[WebFramePolicyListener use] at WebFrameLoaderClient.mm:2091
#44 0x10002c445 in ??
#45 0x7fff84c7696c in __invoking___
#46 0x7fff84c7683d in -[NSInvocation invoke]
#47 0x7fff84c92711 in -[NSInvocation invokeWithTarget:]
#48 0x10115c91b in -[_WebSafeForwarder forwardInvocation:] at WebView.mm:2896
#49 0x7fff84c7398c in ___forwarding___
#50 0x7fff84c6fa68 in __forwarding_prep_0___
#51 0x1010b442e in WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction at WebFrameLoaderClient.mm:778
#52 0x1020ca94e in WebCore::PolicyChecker::checkNavigationPolicy at PolicyChecker.cpp:89
#53 0x101a7e03d in WebCore::FrameLoader::loadWithDocumentLoader at FrameLoader.cpp:1367
#54 0x101a7ee5a in WebCore::FrameLoader::loadWithNavigationAction at FrameLoader.cpp:1279
#55 0x101a8020e in WebCore::FrameLoader::loadURL at FrameLoader.cpp:1222
#56 0x101a80f38 in WebCore::FrameLoader::loadURLIntoChildFrame at FrameLoader.cpp:814
#57 0x1010b2ab0 in WebFrameLoaderClient::createFrame at WebFrameLoaderClient.mm:1433
#58 0x10235a415 in WebCore::SubframeLoader::loadSubframe at SubframeLoader.cpp:265
#59 0x10235a70f in WebCore::SubframeLoader::loadOrRedirectSubframe at SubframeLoader.cpp:240
#60 0x10235b0c3 in WebCore::SubframeLoader::requestFrame at SubframeLoader.cpp:83
#61 0x101b56ba1 in WebCore::HTMLFrameElementBase::openURL at HTMLFrameElementBase.cpp:102
#62 0x101b56d0a in WebCore::HTMLFrameElementBase::setNameAndOpenURL at HTMLFrameElementBase.cpp:153
#63 0x101b56dc4 in WebCore::HTMLFrameElementBase::insertedIntoDocument at HTMLFrameElementBase.cpp:187
#64 0x101b5a3ce in WebCore::HTMLIFrameElement::insertedIntoDocument at HTMLIFrameElement.cpp:150
#65 0x101758102 in WebCore::ContainerNode::parserAddChild at ContainerNode.cpp:690
#66 0x101b1a0cb in WebCore::HTMLConstructionSite::attach<WebCore::Element> at HTMLConstructionSite.cpp:99
#67 0x101b1837a in WebCore::HTMLConstructionSite::attachToCurrent at HTMLConstructionSite.cpp:259
#68 0x101b1869c in WebCore::HTMLConstructionSite::insertHTMLElement at HTMLConstructionSite.cpp:289
#69 0x101ba44cc in WebCore::HTMLTreeBuilder::processGenericRawTextStartTag at HTMLTreeBuilder.cpp:2796
#70 0x101ba8777 in WebCore::HTMLTreeBuilder::processStartTagForInBody at HTMLTreeBuilder.cpp:956
#71 0x101ba9a38 in WebCore::HTMLTreeBuilder::processStartTag at HTMLTreeBuilder.cpp:1230
#72 0x101babb12 in WebCore::HTMLTreeBuilder::processToken at HTMLTreeBuilder.cpp:481
#73 0x101bb078c in WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken at HTMLTreeBuilder.cpp:462
#74 0x101bb0876 in WebCore::HTMLTreeBuilder::constructTreeFromToken at HTMLTreeBuilder.cpp:452
#75 0x101b2fde7 in WebCore::HTMLDocumentParser::pumpTokenizer at HTMLDocumentParser.cpp:276
#76 0x101b30119 in WebCore::HTMLDocumentParser::pumpTokenizerIfPossible at HTMLDocumentParser.cpp:175
#77 0x101b301cb in WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution at HTMLDocumentParser.cpp:478
#78 0x101b30512 in WebCore::HTMLDocumentParser::notifyFinished at HTMLDocumentParser.cpp:523
#79 0x1016fba36 in WebCore::CachedResource::didAddClient at CachedResource.cpp:288
#80 0x10170d269 in WebCore::CachedScript::didAddClient at CachedScript.cpp:63
#81 0x1016fcc17 in WebCore::CachedResource::switchClientsToRevalidatedResource at CachedResource.cpp:483
#82 0x10203f9c4 in WebCore::MemoryCache::revalidationSucceeded at MemoryCache.cpp:122
#83 0x10170bad0 in WebCore::CachedResourceRequest::didReceiveResponse at CachedResourceRequest.cpp:215
#84 0x10235bc73 in WebCore::SubresourceLoader::didReceiveResponse at SubresourceLoader.cpp:141
#85 0x10228e209 in WebCore::ResourceLoader::didReceiveResponse at ResourceLoader.cpp:437
#86 0x1022892d3 in -[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:] at ResourceHandleMac.mm:796
#87 0x7fff87340b67 in _NSURLConnectionDidReceiveResponse
#88 0x7fff88ff0ba4 in URLConnectionClient::_clientSendDidReceiveResponse
#89 0x7fff89057a78 in URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload
#90 0x7fff89057c1a in URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload
#91 0x7fff88fde825 in URLConnectionClient::processEvents
#92 0x7fff88fde600 in MultiplexerSource::perform
#93 0x7fff84c3e401 in __CFRunLoopDoSources0
#94 0x7fff84c3c5f9 in __CFRunLoopRun
#95 0x7fff84c3bdbf in CFRunLoopRunSpecific
#96 0x7fff83eb47ee in RunCurrentEventLoopInMode
#97 0x7fff83eb45f3 in ReceiveNextEventCommon
#98 0x7fff83eb44ac in BlockUntilNextEventMatchingListInMode
#99 0x7fff815f8e64 in _DPSNextEvent (100 of 105 frames) (100 of 105 frames) (100 of 105 frames) (100 of 105 frames)
#100 0x7fff815f87a9 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#101 0x100015ff6 in ??
#102 0x7fff815be48b in -[NSApplication run]
#103 0x7fff815b71a8 in NSApplicationMain
#104 0x100009f18 in ??

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list