<?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>51641</bug_id>
          
          <creation_ts>2010-12-27 06:30:38 -0800</creation_ts>
          <short_desc>[Qt] setDefersLoading crashes very often</short_desc>
          <delta_ts>2011-01-11 06:52:16 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yael">yael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>jhanssen</cc>
    
    <cc>jturcotte</cc>
    
    <cc>markus</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>327022</commentid>
    <comment_count>0</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2010-12-27 06:30:38 -0800</bug_when>
    <thetext>In the last few days I hit this crash many times by either showing an alert dialog during load, or by setting breakpoints in the Inspector. The callstack in those cases is very similar. This callstack is from showing an alert during load.

0	QScopedPointer&lt;QObjectData, QScopedPointerDeleter&lt;QObjectData&gt; &gt;::data	qscopedpointer.h	135	0x042d2f58	
1	qGetPtrHelper&lt;QScopedPointer&lt;QObjectData, QScopedPointerDeleter&lt;QObjectData&gt; &gt; &gt;	qglobal.h	2328	0x042ec16b	
2	QObject::d_func	qobject.h	125	0x042ec210	
3	QMetaObject::activate	qobject.cpp	3195	0x0443f218	
4	WebCore::QtNetworkReplyThreadSafeProxy::localSetForwardingDeferedRequested	moc_QtNAMThreadSafeProxy.cpp	300	0x02135980	
5	WebCore::QtNetworkReplyThreadSafeProxy::setForwardingDefered	QtNAMThreadSafeProxy.h	87	0x01e2c1b7	
6	WebCore::QNetworkReplyHandler::setLoadMode	QNetworkReplyHandler.cpp	247	0x01e2db90	
7	WebCore::ResourceHandle::platformSetDefersLoading	ResourceHandleQt.cpp	209	0x01e26e72	
8	WebCore::ResourceHandle::setDefersLoading	ResourceHandle.cpp	173	0x01c32872	
9	WebCore::ResourceLoader::setDefersLoading	ResourceLoader.cpp	170	0x01afb12b	
10	WebCore::MainResourceLoader::setDefersLoading	MainResourceLoader.cpp	599	0x01aef0a8	
11	WebCore::DocumentLoader::setDefersLoading	DocumentLoader.cpp	701	0x01abc614	
12	WebCore::FrameLoader::setDefersLoading	FrameLoader.cpp	247	0x01acdb67	
13	WebCore::Page::setDefersLoading	Page.cpp	591	0x01b939a7	
14	WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer	PageGroupLoadDeferrer.cpp	67	0x01ba5a57	
15	WebCore::Chrome::runJavaScriptAlert	Chrome.cpp	290	0x01b2f6a8	
16	WebCore::DOMWindow::alert	DOMWindow.cpp	922	0x01b413ff	
17	WebCore::jsDOMWindowPrototypeFunctionAlert	JSDOMWindow.cpp	9078	0x013c4cd6	
18	??		0	0x07d4508a	
19	JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*)	/home/yael/webkit/ws2/WebKitBuild/Debug/bin/../lib/libQtWebKit.so.4	0	0x021738b0	
20	JSC::Interpreter::execute	Interpreter.cpp	778	0x021705e1	
21	JSC::evaluate	Completion.cpp	62	0x021a30f9	
22	WebCore::JSMainThreadExecState::evaluate	JSMainThreadExecState.h	54	0x0160ff36	
23	WebCore::ScriptController::evaluateInWorld	ScriptController.cpp	148	0x01626209	
24	WebCore::ScriptController::evaluate	ScriptController.cpp	171	0x016263eb	
25	WebCore::ScriptController::executeScript	ScriptControllerBase.cpp	60	0x015c9403	
26	WebCore::ScriptElement::executeScript	ScriptElement.cpp	215	0x01837a83	
27	WebCore::HTMLScriptRunner::runScript	HTMLScriptRunner.cpp	313	0x019dc3c7	
28	WebCore::HTMLScriptRunner::execute	HTMLScriptRunner.cpp	173	0x019db772	
29	WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder	HTMLDocumentParser.cpp	199	0x019cef84	
30	WebCore::HTMLDocumentParser::pumpTokenizer	HTMLDocumentParser.cpp	244	0x019cf2c0	
31	WebCore::HTMLDocumentParser::pumpTokenizerIfPossible	HTMLDocumentParser.cpp	169	0x019ced7a	
32	WebCore::HTMLDocumentParser::append	HTMLDocumentParser.cpp	320	0x019cf70c	
33	WebCore::DecodedDataDocumentParser::appendBytes	DecodedDataDocumentParser.cpp	54	0x0178525b	
34	WebCore::DocumentWriter::addData	DocumentWriter.cpp	200	0x01ac8999	
35	WebCore::DocumentLoader::commitData	DocumentLoader.cpp	310	0x01aba92f	
36	WebCore::FrameLoaderClientQt::committedLoad	FrameLoaderClientQt.cpp	882	0x01e63af7	
37	WebCore::DocumentLoader::commitLoad	DocumentLoader.cpp	295	0x01aba7d7	
38	WebCore::DocumentLoader::receivedData	DocumentLoader.cpp	322	0x01abaa0e	
39	WebCore::MainResourceLoader::addData	MainResourceLoader.cpp	157	0x01aecdd6	
40	WebCore::ResourceLoader::didReceiveData	ResourceLoader.cpp	278	0x01afb798	
41	WebCore::MainResourceLoader::didReceiveData	MainResourceLoader.cpp	436	0x01aee1fb	
42	WebCore::ResourceLoader::didReceiveData	ResourceLoader.cpp	431	0x01afc1a0	
43	WebCore::QNetworkReplyHandler::forwardData	QNetworkReplyHandler.cpp	472	0x01e2f4d9	
44	WebCore::QNetworkReplyHandler::qt_metacall	moc_QNetworkReplyHandler.cpp	86	0x01e301e8	
45	QMetaObject::metacall	qmetaobject.cpp	237	0x0442a522	
46	QMetaCallEvent::placeMetaCall	qobject.cpp	534	0x0443950b	
47	QObject::event	qobject.cpp	1211	0x0443b55f	
48	QApplicationPrivate::notify_helper	qapplication.cpp	4396	0x0373a7b6	
49	QApplication::notify	qapplication.cpp	3798	0x03737ffa	
50	QCoreApplication::notifyInternal	qcoreapplication.cpp	732	0x0442262f	
51	QCoreApplication::sendEvent	qcoreapplication.h	215	0x0806e631	
52	QCoreApplicationPrivate::sendPostedEvents	qcoreapplication.cpp	1373	0x044236f9	
53	QCoreApplication::sendPostedEvents	qcoreapplication.cpp	1266	0x044233b1	
54	QCoreApplication::sendPostedEvents	qcoreapplication.h	220	0x03808ea2	
55	postEventSourceDispatch	qeventdispatcher_glib.cpp	277	0x0445b2e0	
56	g_main_context_dispatch	/lib/libglib-2.0.so.0	0	0x053085e5	
57	??	/lib/libglib-2.0.so.0	0	0x0530c2d8	
58	g_main_context_iteration	/lib/libglib-2.0.so.0	0	0x0530c4b8	
59	QEventDispatcherGlib::processEvents	qeventdispatcher_glib.cpp	415	0x0445c312	
60	QGuiEventDispatcherGlib::processEvents	qguieventdispatcher_glib.cpp	204	0x038155fe	
61	QEventLoop::processEvents	qeventloop.cpp	149	0x0441f9ef	
62	QEventLoop::exec	qeventloop.cpp	201	0x0441fb34	
63	QCoreApplication::exec	qcoreapplication.cpp	1009	0x04422d21	
64	QApplication::exec	qapplication.cpp	3672	0x03737c50	
65	launcherMain	main.cpp	41	0x080707ff	
66	main	main.cpp	255	0x0807293f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>328512</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2011-01-03 04:21:13 -0800</bug_when>
    <thetext>Yael, could you attach a page with which it is possible to reproduce the crash?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>328576</commentid>
    <comment_count>2</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2011-01-03 08:20:02 -0800</bug_when>
    <thetext>(In reply to comment #1)
&gt; Yael, could you attach a page with which it is possible to reproduce the crash?

A relatively consistent way to observe the crash:
1. load www.google.com in QtTestBrowser.
2. Open the inspector window.
3. Put a breakpoint in line #8 in the script.
4. Reload the page.
5. Continue execution from the breakpoint.
6. Observe a crash.

I&apos;ll also try to find a test case that crashes with alert consistently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330173</commentid>
    <comment_count>3</comment_count>
    <who name="Jan Erik Hanssen">jhanssen</who>
    <bug_when>2011-01-06 09:16:34 -0800</bug_when>
    <thetext>Might be solved with the patch from bug 51948.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>330175</commentid>
    <comment_count>4</comment_count>
    <who name="Jan Erik Hanssen">jhanssen</who>
    <bug_when>2011-01-06 09:17:19 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; Might be solved with the patch from bug 51948.

Sorry, that should be bug 51453.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332279</commentid>
    <comment_count>5</comment_count>
    <who name="Jocelyn Turcotte">jturcotte</who>
    <bug_when>2011-01-11 05:20:58 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Might be solved with the patch from bug 51948.
&gt; 
&gt; Sorry, that should be bug 51453.

Yael, I tried to reproduce it and couldn&apos;t (probably thanks to Jar Erik&apos;s patch).
Could you try to see if you still get the crash?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>332312</commentid>
    <comment_count>6</comment_count>
    <who name="Yael">yael</who>
    <bug_when>2011-01-11 06:52:16 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (In reply to comment #3)
&gt; &gt; &gt; Might be solved with the patch from bug 51948.
&gt; &gt; 
&gt; &gt; Sorry, that should be bug 51453.
&gt; 
&gt; Yael, I tried to reproduce it and couldn&apos;t (probably thanks to Jar Erik&apos;s patch).
&gt; Could you try to see if you still get the crash?

I could not reproduce this after Jar Erik&apos;s fix either.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>