Bug 273294

Summary: Acid3 Crashes Rekonq on Close
Product: [Unmaintained] rekonq Reporter: Michael Holmes <holmesmich>
Component: generalAssignee: Andrea Diamantini <adjam7>
Status: RESOLVED DUPLICATE    
Severity: crash CC: simonfv
Priority: NOR    
Version: 0.7.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Holmes 2011-05-14 21:04:34 UTC
Application: rekonq (0.7.0)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:
* Opened Rekonq
* Went to google.com using address bar
* Typed "Acid3 Test" into the search bar
* Clicked on the first result
* Waited for test to complete
* Went back to Google results page.
* Closed the tab.

- This bug is only reproducible if:
* The tab used is the only one open.
* The Acid3 test is run, and then the history goes back to another page.

As a sidenote, Rekonq's crash handler does not appear to look for QtWebKit4 debug symbols. I installed these to provide a more useful backtrace.

The crash can be reproduced every time.

-- Backtrace:
Application: rekonq (rekonq), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f85031c1780 (LWP 18928))]

Thread 6 (Thread 0x7f84edb2b700 (LWP 18929)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8501c47832 in scavengerThread (context=0x7f850246ef00) at wtf/FastMalloc.cpp:2378
#2  WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f850246ef00) at wtf/FastMalloc.cpp:1497
#3  0x00007f84fd3cfd8c in start_thread (arg=0x7f84edb2b700) at pthread_create.c:304
#4  0x00007f8502a3104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f84ec560700 (LWP 18930)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f85026232a2 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f850293c180) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007f85026232d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f850294a254) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007f84fd3cfd8c in start_thread (arg=0x7f84ec560700) at pthread_create.c:304
#4  0x00007f8502a3104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f84eb042700 (LWP 18931)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f84fdbe682b in wait (this=<value optimized out>, mutex=0x1ecabd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1ecabd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f84ffba60b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1ecd900, th=0x21f17b0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f84ffba8723 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1eca530, th=0x21f17b0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f84ffba753f in ThreadWeaver::ThreadRunHelper::run (this=0x7f84eb041e20, parent=0x1ecd900, th=0x21f17b0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f84ffba75cb in ThreadWeaver::Thread::run (this=0x21f17b0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f84fdbe6175 in QThreadPrivate::start (arg=0x21f17b0) at thread/qthread_unix.cpp:320
#8  0x00007f84fd3cfd8c in start_thread (arg=0x7f84eb042700) at pthread_create.c:304
#9  0x00007f8502a3104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f84e1ac6700 (LWP 18938)):
#0  0x00007f84fd3d23c4 in __pthread_mutex_lock (mutex=0x22bd318) at pthread_mutex_lock.c:61
#1  0x00007f84f9e07a32 in g_main_context_dispatch (context=0x22bd310) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3009
#2  0x00007f84f9e083a8 in g_main_context_iterate (context=0x22bd310, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3091
#3  0x00007f84f9e08639 in g_main_context_iteration (context=0x22bd310, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#4  0x00007f84fdcf8446 in QEventDispatcherGlib::processEvents (this=0x22bcbb0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f84fdccc882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f84fdcccabc in QEventLoop::exec (this=0x7f84e1ac5dd0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f84fdbe3924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007f84fdcaec2f in QInotifyFileSystemWatcherEngine::run (this=0x22bc0d0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f84fdbe6175 in QThreadPrivate::start (arg=0x22bc0d0) at thread/qthread_unix.cpp:320
#10 0x00007f84fd3cfd8c in start_thread (arg=0x7f84e1ac6700) at pthread_create.c:304
#11 0x00007f8502a3104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f84e02be700 (LWP 18988)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f84fdbe682b in wait (this=<value optimized out>, mutex=0x1ecabd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1ecabd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f84ffba60b4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1ecd900, th=0x1e3c7c0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f84ffba8723 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1eca530, th=0x1e3c7c0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f84ffba753f in ThreadWeaver::ThreadRunHelper::run (this=0x7f84e02bde20, parent=0x1ecd900, th=0x1e3c7c0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f84ffba75cb in ThreadWeaver::Thread::run (this=0x1e3c7c0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f84fdbe6175 in QThreadPrivate::start (arg=0x1e3c7c0) at thread/qthread_unix.cpp:320
#8  0x00007f84fd3cfd8c in start_thread (arg=0x7f84e02be700) at pthread_create.c:304
#9  0x00007f8502a3104d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f85031c1780 (LWP 18928)):
[KCrash Handler]
#6  QWebFrame::page (this=0x0) at ../WebKit/qt/Api/qwebframe.cpp:882
#7  0x00007f8502d55e27 in NewTabPage::generate (this=0x7fff11ed5b10, url=...) at /build/buildd/rekonq-0.7.0/src/newtabpage.cpp:124
#8  0x00007f8502d5b24f in ProtocolHandler::preHandling (this=0x2192780, request=<value optimized out>, frame=0x21a1a70) at /build/buildd/rekonq-0.7.0/src/protocolhandler.cpp:171
#9  0x00007f8502d66565 in WebPage::acceptNavigationRequest (this=0x2192750, frame=0x21a1a70, request=..., type=QWebPage::NavigationTypeOther) at /build/buildd/rekonq-0.7.0/src/webpage.cpp:323
#10 0x00007f8501995b41 in WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction (this=0x21a18a0, function=(void (WebCore::PolicyChecker::*)(WebCore::PolicyChecker *, WebCore::PolicyAction)) 0x7f85017a6dd0 <WebCore::PolicyChecker::continueAfterNavigationPolicy(WebCore::PolicyAction)>, action=..., request=<value optimized out>) at ../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:1023
#11 0x00007f85017a693e in WebCore::PolicyChecker::checkNavigationPolicy (this=0x7f84ed241870, request=..., loader=0x7f84ed271080, formState=..., function=0x7f8501782890 <WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy(void*, WebCore::ResourceRequest const&, WTF::PassRefPtr<WebCore::FormState>, bool)>, argument=0x7f84ed241860) at loader/PolicyChecker.cpp:88
#12 0x00007f8501782db3 in WebCore::FrameLoader::loadWithDocumentLoader (this=0x7f84ed241860, loader=0x7f84ed271080, type=<value optimized out>, prpFormState=<value optimized out>) at loader/FrameLoader.cpp:2102
#13 0x00007f85017838f8 in WebCore::FrameLoader::load (this=0x7f84ed241860, newDocumentLoader=0x7f84ed271080) at loader/FrameLoader.cpp:2056
#14 0x00007f8501783a3b in WebCore::FrameLoader::load (this=0x7f84ed241860, request=<value optimized out>, substituteData=<value optimized out>, lockHistory=<value optimized out>) at loader/FrameLoader.cpp:1997
#15 0x00007f8501783b3f in WebCore::FrameLoader::load (this=0x7f84ed241860, request=..., lockHistory=false) at loader/FrameLoader.cpp:1984
#16 0x00007f850199d339 in QWebFrame::load (this=0x21a1a70, req=..., operation=<value optimized out>, body=...) at ../WebKit/qt/Api/qwebframe.cpp:950
#17 0x00007f850199da1d in QWebFrame::load (this=0x21a1a70, url=...) at ../WebKit/qt/Api/qwebframe.cpp:894
#18 0x00007f8502d419e4 in MainView::closeTab (this=0x1effdb0, index=<value optimized out>, del=true) at /build/buildd/rekonq-0.7.0/src/mainview.cpp:452
#19 0x00007f8502d4233b in MainView::qt_metacall (this=0x1effdb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff11ed6a40) at /build/buildd/rekonq-0.7.0/obj-x86_64-linux-gnu/src/mainview.moc:147
#20 0x00007f84fdce25f8 in QMetaObject::activate (sender=0x1f20b00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff11ed6a40) at kernel/qobject.cpp:3287
#21 0x00007f84fe61a941 in QTabBar::tabCloseRequested (this=<value optimized out>, _t1=0) at .moc/release-shared/moc_qtabbar.cpp:208
#22 0x00007f84fe621c39 in QTabBar::qt_metacall (this=0x1f20b00, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff11ed6bb0) at .moc/release-shared/moc_qtabbar.cpp:141
#23 0x00007f85007d15a0 in KTabBar::qt_metacall (this=0x1f20b00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff11ed6bb0) at ./ktabbar.moc:93
#24 0x00007f8502d5fca0 in TabBar::qt_metacall (this=0x1f20b00, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff11ed6bb0) at /build/buildd/rekonq-0.7.0/obj-x86_64-linux-gnu/src/tabbar.moc:90
#25 0x00007f84fdce25f8 in QMetaObject::activate (sender=0x21dade0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff11ed6bb0) at kernel/qobject.cpp:3287
#26 0x00007f84fe831252 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#27 0x00007f84fe57a83e in QAbstractButtonPrivate::emitClicked (this=0x21d2c10) at widgets/qabstractbutton.cpp:546
#28 0x00007f84fe57bdbb in QAbstractButtonPrivate::click (this=0x21d2c10) at widgets/qabstractbutton.cpp:539
#29 0x00007f84fe57c02c in QAbstractButton::mouseReleaseEvent (this=0x21dade0, e=0x7fff11ed74f0) at widgets/qabstractbutton.cpp:1121
#30 0x00007f84fe20ccb8 in QWidget::event (this=0x21dade0, event=0x7fff11ed74f0) at kernel/qwidget.cpp:8259
#31 0x00007f84fe1bb9e4 in QApplicationPrivate::notify_helper (this=0x1dc9520, receiver=0x21dade0, e=0x7fff11ed74f0) at kernel/qapplication.cpp:4462
#32 0x00007f84fe1c0db3 in QApplication::notify (this=<value optimized out>, receiver=0x21dade0, e=0x7fff11ed74f0) at kernel/qapplication.cpp:4023
#33 0x00007f85006ee866 in KApplication::notify (this=0x7fff11ed81b0, receiver=0x21dade0, event=0x7fff11ed74f0) at ../../kdeui/kernel/kapplication.cpp:311
#34 0x00007f84fdccd49c in QCoreApplication::notifyInternal (this=0x7fff11ed81b0, receiver=0x21dade0, event=0x7fff11ed74f0) at kernel/qcoreapplication.cpp:731
#35 0x00007f84fe1bca0d in sendEvent (receiver=0x21dade0, event=0x7fff11ed74f0, alienWidget=0x21dade0, nativeWidget=0x1f64c30, buttonDown=0x7f84fec9c218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#36 QApplicationPrivate::sendMouseEvent (receiver=0x21dade0, event=0x7fff11ed74f0, alienWidget=0x21dade0, nativeWidget=0x1f64c30, buttonDown=0x7f84fec9c218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#37 0x00007f84fe23c600 in QETWidget::translateMouseEvent (this=0x1f64c30, event=<value optimized out>) at kernel/qapplication_x11.cpp:4556
#38 0x00007f84fe23b04a in QApplication::x11ProcessEvent (this=0x7fff11ed81b0, event=0x7fff11ed7e40) at kernel/qapplication_x11.cpp:3678
#39 0x00007f84fe263162 in x11EventSourceDispatch (s=0x1dc5570, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#40 0x00007f84f9e07bcd in g_main_dispatch (context=0x1dc4480) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:2440
#41 g_main_context_dispatch (context=0x1dc4480) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3013
#42 0x00007f84f9e083a8 in g_main_context_iterate (context=0x1dc4480, block=<value optimized out>, dispatch=1, self=<value optimized out>) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3091
#43 0x00007f84f9e08639 in g_main_context_iteration (context=0x1dc4480, may_block=1) at /build/buildd/glib2.0-2.28.6/./glib/gmain.c:3154
#44 0x00007f84fdcf83ef in QEventDispatcherGlib::processEvents (this=0x1dbe520, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#45 0x00007f84fe262dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x00007f84fdccc882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#47 0x00007f84fdcccabc in QEventLoop::exec (this=0x7fff11ed8140, flags=...) at kernel/qeventloop.cpp:201
#48 0x00007f84fdcd0ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#49 0x00007f8502dbe8f4 in kdemain (argc=1, argv=<value optimized out>) at /build/buildd/rekonq-0.7.0/src/main.cpp:215
#50 0x00007f8502969eff in __libc_start_main (main=0x400730 <main(int, char**)>, argc=1, ubp_av=0x7fff11ed8b38, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff11ed8b28) at libc-start.c:226
#51 0x0000000000400659 in _start ()

Possible duplicates by query: bug 271741, bug 271221, bug 267862.

Reported using DrKonqi
Comment 1 Simon Friis 2011-05-15 14:31:09 UTC
Rekonq Version: 0.7.0
KDE Platform Version: 4.6.3
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Kubuntu 11.04

I was able to reproduce this crash the first time I tried. Now I can no longer reproduce it.
Comment 2 Christoph Feck 2011-09-07 18:12:23 UTC

*** This bug has been marked as a duplicate of bug 271741 ***