Bug 214231

Summary: Random crash at session restore
Product: [Unmaintained] rekonq Reporter: Emmanuel Surleau <emmanuel.surleau>
Component: generalAssignee: Andrea Diamantini <adjam7>
Status: RESOLVED FIXED    
Severity: crash CC: pano_90
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emmanuel Surleau 2009-11-12 08:13:11 UTC
Version:           6f09db59d485df85981a4ca76512d7dda362bde1 (using KDE 4.3.2)
Compiler:          gcc 4.3.4 
OS:                Linux
Installed from:    Debian testing/unstable Packages

I've experienced a random crash when opening rekonq, which seems to have to do with session restore. It's pretty rare. You can see the backtrace below:

Application: rekonq (rekonq), signal: Segmentation fault
[Current thread is 1 (Thread 0xb41e8700 (LWP 2590))]

Thread 4 (Thread 0xae6fdb70 (LWP 2633)):
#0  0xb7778424 in __kernel_vsyscall ()
#1  0xb4e67a53 in ?? () from /lib/i686/cmov/libc.so.6
#2  0xb4dfc7ad in ?? () from /lib/i686/cmov/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0xadefcb70 (LWP 2642)):
#0  0xb7778424 in __kernel_vsyscall ()
#1  0xb4e67a53 in ?? () from /lib/i686/cmov/libc.so.6
#2  0xb4dfc7ad in ?? () from /lib/i686/cmov/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0xad6fbb70 (LWP 2643)):
#0  0xb7778424 in __kernel_vsyscall ()
#1  0xb4e67a53 in ?? () from /lib/i686/cmov/libc.so.6
#2  0xb4dfc7ad in ?? () from /lib/i686/cmov/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0xb41e8700 (LWP 2590)):
[KCrash Handler]
#6  0xb4df69e7 in ?? () from /lib/i686/cmov/libc.so.6
#7  0xb4df8d65 in ?? () from /lib/i686/cmov/libc.so.6
#8  0xb4dfbaa1 in ?? () from /lib/i686/cmov/libc.so.6
#9  0xb4dfc09d in realloc () from /lib/i686/cmov/libc.so.6
#10 0xb50711e4 in qRealloc (ptr=0x9c32270, size=512) at global/qmalloc.cpp:65
#11 0xb50c28f2 in QString::realloc (this=0x9d382e8, alloc=246) at tools/qstring.cpp:1242
#12 0xb50c2dda in QString::append (this=0x9d382e8, str=...) at tools/qstring.cpp:1456
#13 0xb5120caa in QString::operator+= (this=0x9d38280, s=..., number=false) at ../../include/QtCore/../../src/corelib/tools/qstring.h:269
#14 QTextStreamPrivate::write (this=0x9d38280, s=..., number=false) at io/qtextstream.cpp:917
#15 QTextStreamPrivate::putString (this=0x9d38280, s=..., number=false) at io/qtextstream.cpp:996
#16 0xb511b5ac in QTextStream::operator<< (this=0xbfce7958, array=...) at io/qtextstream.cpp:2539
#17 0xb7764257 in SessionManager::saveSession (this=0x9a1c7e8) at /home/mercurial_alchemist/src/rekonq/src/sessionmanager.cpp:79
#18 0xb7764493 in SessionManager::qt_metacall (this=0x9a1c7e8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfce7a58) at /home/mercurial_alchemist/src/rekonq/build/src/sessionmanager.moc:72
#19 0xb517ea35 in QMetaObject::metacall (object=0x31000000, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbfce7a58) at kernel/qmetaobject.cpp:237
#20 0xb518d8c5 in QMetaObject::activate (sender=0x9ace018, m=0xb777343c, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3398
#21 0xb7741797 in MainView::tabsChanged (this=0x9ace018) at /home/mercurial_alchemist/src/rekonq/build/src/mainview.moc:159
#22 0xb7741828 in MainView::webViewUrlChanged (this=0x9ace018, url=...) at /home/mercurial_alchemist/src/rekonq/src/mainview.cpp:609
#23 0xb7743d67 in MainView::qt_metacall (this=0x9ace018, _c=QMetaObject::InvokeMetaMethod, _id=26, _a=0xbfce7bac) at /home/mercurial_alchemist/src/rekonq/build/src/mainview.moc:146
#24 0xb517ea35 in QMetaObject::metacall (object=0x31000000, cl=QMetaObject::InvokeMetaMethod, idx=94, argv=0xbfce7bac) at kernel/qmetaobject.cpp:237
#25 0xb518d8c5 in QMetaObject::activate (sender=0x9b41fc8, m=0xb76869b4, local_signal_index=8, argv=0xbfce7bac) at kernel/qobject.cpp:3398
#26 0xb6f1e8f3 in QWebView::urlChanged (this=0x9b41fc8, _t1=...) at .moc/release-shared/moc_qwebview.cpp:243
#27 0xb6f1fb82 in QWebView::qt_metacall (this=0x9b41fc8, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfce7d0c) at .moc/release-shared/moc_qwebview.cpp:135
#28 0xb775cdaa in WebView::qt_metacall (this=0x9b41fc8, _c=QMetaObject::InvokeMetaMethod, _id=35, _a=0xbfce7d0c) at /home/mercurial_alchemist/src/rekonq/build/src/webview.moc:79
#29 0xb517ea35 in QMetaObject::metacall (object=0x31000000, cl=QMetaObject::InvokeMetaMethod, idx=35, argv=0xbfce7d0c) at kernel/qmetaobject.cpp:237
#30 0xb518d8c5 in QMetaObject::activate (sender=0x9b6aff8, m=0xb76e3dc8, local_signal_index=3, argv=0xbfce7d0c) at kernel/qobject.cpp:3398
#31 0xb736fc23 in QWebFrame::urlChanged (this=0x9b6aff8, _t1=...) at .moc/release-shared/moc_qwebframe.cpp:191
#32 0xb6f04380 in WebCore::FrameLoaderClientQt::dispatchDidCommitLoad (this=0x9b55d98) at ../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:344
#33 0xb6d0b6bb in WebCore::FrameLoader::dispatchDidCommitLoad (this=0x9b6cf88) at loader/FrameLoader.cpp:5264
#34 0xb6d24fb4 in WebCore::FrameLoader::receivedFirstData (this=0x9b6cf88) at loader/FrameLoader.cpp:874
#35 0xb6d252bb in WebCore::FrameLoader::setEncoding (this=0x9b6cf88, name=..., userChosen=false) at loader/FrameLoader.cpp:1845
#36 0xb6eff777 in WebCore::FrameLoaderClientQt::committedLoad (this=0x9b55d98, loader=0x9b73988, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270) at ../WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp:680
#37 0xb6d0c867 in WebCore::FrameLoader::committedLoad (this=0x9b6cf88, loader=0x9b73988, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270) at loader/FrameLoader.cpp:3741
#38 0xb6d0185f in WebCore::DocumentLoader::commitLoad (this=0x9b73988, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270) at loader/DocumentLoader.cpp:342
#39 0xb6d0d2d5 in WebCore::FrameLoader::receivedData (this=0x9b6cf88, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270) at loader/FrameLoader.cpp:2545
#40 0xb6d35176 in WebCore::MainResourceLoader::addData (this=0x9b7bec0, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270, allAtOnce=<value optimized out>) at loader/MainResourceLoader.cpp:143
#41 0xb6d3cd0c in WebCore::ResourceLoader::didReceiveData (this=0x9b7bec0, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270, lengthReceived=<value optimized out>, allAtOnce=<value optimized out>) at loader/ResourceLoader.cpp:248
#42 0xb6d358b7 in WebCore::MainResourceLoader::didReceiveData (this=0x9b7bec0, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270, lengthReceived=15270, allAtOnce=false) at loader/MainResourceLoader.cpp:356
#43 0xb6d3c628 in WebCore::ResourceLoader::didReceiveData (this=0x9b7bec0, 
    data=0x9d572b0 "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n<base href=\"http://www.packtpub.com/article/developing-the-joomla-com"..., length=15270, lengthReceived=15270) at loader/ResourceLoader.cpp:398
#44 0xb6edfc80 in WebCore::QNetworkReplyHandler::forwardData (this=0x9b7b5d8) at platform/network/qt/QNetworkReplyHandler.cpp:370
#45 0xb6ee041b in WebCore::QNetworkReplyHandler::qt_metacall (this=0x9b7b5d8, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x9b4cc90) at .moc/release-shared/moc_QNetworkReplyHandler.cpp:84
#46 0xb517ea35 in QMetaObject::metacall (object=0x31000000, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0x9b4cc90) at kernel/qmetaobject.cpp:237
#47 0xb5188f56 in QMetaCallEvent::placeMetaCall (this=0x9b548f8, object=0x9b7b5d8) at kernel/qobject.cpp:562
#48 0xb518a3f3 in QObject::event (this=0x9b7b5d8, e=0x9b548f8) at kernel/qobject.cpp:1246
#49 0xb53e737c in QApplicationPrivate::notify_helper (this=0x95776f8, receiver=0x9b7b5d8, e=0x9b548f8) at kernel/qapplication.cpp:4277
#50 0xb53eec0e in QApplication::notify (this=0xbfce8854, receiver=0x9b7b5d8, e=0x9b548f8) at kernel/qapplication.cpp:3702
#51 0xb621a0fd in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#52 0xb51796eb in QCoreApplication::notifyInternal (this=0xbfce8854, receiver=0xbfce8854, event=0x9b548f8) at kernel/qcoreapplication.cpp:704
#53 0xb517a61f in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x9557f70) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#54 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9557f70) at kernel/qcoreapplication.cpp:1345
#55 0xb517a7cd in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#56 0xb51a5bdf in QCoreApplication::sendPostedEvents (s=0x9579f10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#57 postEventSourceDispatch (s=0x9579f10) at kernel/qeventdispatcher_glib.cpp:276
#58 0xb4561e98 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#59 0xb4565623 in ?? () from /lib/libglib-2.0.so.0
#60 0xb45657a8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#61 0xb51a56f1 in QEventDispatcherGlib::processEvents (this=0x9557ab0, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#62 0xb54998c5 in QGuiEventDispatcherGlib::processEvents (this=0x9557ab0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#63 0xb5177d5a in QEventLoop::processEvents (this=0xbfce8740, flags=...) at kernel/qeventloop.cpp:149
#64 0xb51781a2 in QEventLoop::exec (this=0xbfce8740, flags=...) at kernel/qeventloop.cpp:201
#65 0xb517a899 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#66 0xb53e7417 in QApplication::exec () at kernel/qapplication.cpp:3616
#67 0xb776bce3 in kdemain (argc=3, argv=0xbfce8a74) at /home/mercurial_alchemist/src/rekonq/src/main.cpp:157
#68 0x080486b2 in main (argc=) at /home/mercurial_alchemist/src/rekonq/build/src/rekonq_dummy.cpp:3
Comment 1 Andrea Diamantini 2010-01-10 21:45:09 UTC
Testing it :)
Comment 2 Panagiotis Papadopoulos 2010-02-05 16:41:21 UTC
Hi,

Did this crash occur with Qt 4.5.x or with Qt 4.6.x?

Thanks :-)
Comment 3 Emmanuel Surleau 2010-02-05 23:31:00 UTC
I think I had 4.5 at this time.
Comment 4 Panagiotis Papadopoulos 2010-02-11 18:04:48 UTC
if so, I'll put it as fixed, as Qt 4.6.x fixed *a lot* of crashes :-)
Feel free to reopen if you think it is not fixed