RESOLVED FIXED 51641
[Qt] setDefersLoading crashes very often
https://bugs.webkit.org/show_bug.cgi?id=51641
Summary [Qt] setDefersLoading crashes very often
Yael
Reported 2010-12-27 06:30:38 PST
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<QObjectData, QScopedPointerDeleter<QObjectData> >::data qscopedpointer.h 135 0x042d2f58 1 qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > > 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
Attachments
Benjamin Poulain
Comment 1 2011-01-03 04:21:13 PST
Yael, could you attach a page with which it is possible to reproduce the crash?
Yael
Comment 2 2011-01-03 08:20:02 PST
(In reply to comment #1) > 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'll also try to find a test case that crashes with alert consistently.
Jan Erik Hanssen
Comment 3 2011-01-06 09:16:34 PST
Might be solved with the patch from bug 51948.
Jan Erik Hanssen
Comment 4 2011-01-06 09:17:19 PST
(In reply to comment #3) > Might be solved with the patch from bug 51948. Sorry, that should be bug 51453.
Jocelyn Turcotte
Comment 5 2011-01-11 05:20:58 PST
(In reply to comment #4) > (In reply to comment #3) > > Might be solved with the patch from bug 51948. > > Sorry, that should be bug 51453. Yael, I tried to reproduce it and couldn't (probably thanks to Jar Erik's patch). Could you try to see if you still get the crash?
Yael
Comment 6 2011-01-11 06:52:16 PST
(In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > Might be solved with the patch from bug 51948. > > > > Sorry, that should be bug 51453. > > Yael, I tried to reproduce it and couldn't (probably thanks to Jar Erik's patch). > Could you try to see if you still get the crash? I could not reproduce this after Jar Erik's fix either.
Note You need to log in before you can comment on or make changes to this bug.