Bug 235074 - Konqueror segfault while closing tab. [null QString, KonqView::serviceType, KonqView::saveConfig, KonqFrame::saveConfig, ..., KonqSessionManager::autoSaveSession]
Summary: Konqueror segfault while closing tab. [null QString, KonqView::serviceType, K...
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 259533 282521 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-22 16:26 UTC by dibdublin
Modified: 2011-11-26 19:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.4
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dibdublin 2010-04-22 16:26:45 UTC
Application: konqueror (4.4.2 (KDE 4.4.2))
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-20-generic x86_64
Distribution: Ubuntu 9.10

-- Information about the crash:
With multiple tabs open, Konqueror segfaulted while trying to close one of the tabs.

 -- Backtrace:
Application: Konqueror (kdeinit4), signal: Segmentation fault
The current source language is "auto; currently c".
[KCrash Handler]
#5  QString (this=0x0, config=..., prefix=..., options=...) at /usr/include/qt4/QtCore/qstring.h:714
#6  KonqView::serviceType (this=0x0, config=..., prefix=..., options=...) at ../../../../apps/konqueror/src/konqview.h:261
#7  KonqView::saveConfig (this=0x0, config=..., prefix=..., options=...) at ../../../../apps/konqueror/src/konqview.cpp:1324
#8  0x00007fd0066873a1 in KonqFrame::saveConfig (this=<value optimized out>, config=..., prefix=..., options=..., docContainer=0x1ad2550) at ../../../../apps/konqueror/src/konqframe.cpp:119
#9  0x00007fd00668cfa8 in KonqFrameTabs::saveConfig (this=<value optimized out>, config=<value optimized out>, prefix=..., options=<value optimized out>, docContainer=<value optimized out>, 
    id=<value optimized out>, depth=1) at ../../../../apps/konqueror/src/konqtabs.cpp:158
#10 0x00007fd00667b832 in KonqViewManager::saveViewProfileToGroup (this=0x175ccb0, profileGroup=..., options=) at ../../../../apps/konqueror/src/konqviewmanager.cpp:880
#11 0x00007fd0066a7933 in KonqMainWindow::saveProperties (this=<value optimized out>, config=...) at ../../../../apps/konqueror/src/konqmainwindow.cpp:4815
#12 0x00007fd0066de3c6 in KonqSessionManager::saveCurrentSession (this=<value optimized out>, sessionConfig=0x153bc90) at ../../../../apps/konqueror/src/konqsessionmanager.cpp:192
#13 0x00007fd0066defe8 in KonqSessionManager::autoSaveSession (this=0x154e840) at ../../../../apps/konqueror/src/konqsessionmanager.cpp:157
#14 0x00007fd0066e0f90 in KonqSessionManager::qt_metacall (this=0x154e840, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9ee68d90) at ./konqsessionmanager.moc:88
#15 0x00007fd0121c1c0f in QMetaObject::activate (sender=0x154e850, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9ee68be0) at kernel/qobject.cpp:3293
#16 0x00007fd0121be863 in QObject::event (this=0x154e850, e=0x7fff9ee694e0) at kernel/qobject.cpp:1212
#17 0x00007fd01134d12c in QApplicationPrivate::notify_helper (this=0x143c5b0, receiver=0x154e850, e=0x7fff9ee694e0) at kernel/qapplication.cpp:4300
#18 0x00007fd01135371b in QApplication::notify (this=0x7fff9ee6c860, receiver=0x154e850, e=0x7fff9ee694e0) at kernel/qapplication.cpp:4183
#19 0x00007fd0126f7076 in KApplication::notify (this=0x7fff9ee6c860, receiver=0x154e850, event=0x7fff9ee694e0) at ../../kdeui/kernel/kapplication.cpp:302
#20 0x00007fd0121aee0c in QCoreApplication::notifyInternal (this=0x7fff9ee6c860, receiver=0x154e850, event=0x7fff9ee694e0) at kernel/qcoreapplication.cpp:704
#21 0x00007fd0121dba62 in QCoreApplication::sendEvent (this=0x14401c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#22 QTimerInfoList::activateTimers (this=0x14401c0) at kernel/qeventdispatcher_unix.cpp:603
#23 0x00007fd0121d8668 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#24 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#25 0x00007fd00d5c4bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x00007fd00d5c8598 in ?? () from /lib/libglib-2.0.so.0
#27 0x00007fd00d5c86c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#28 0x00007fd0121d8333 in QEventDispatcherGlib::processEvents (this=0x13af770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#29 0x00007fd0113fcf0e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007fd0121ad732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#31 0x00007fd0121adb0c in QEventLoop::exec (this=0x8565780, flags=) at kernel/qeventloop.cpp:201
#32 0x00007fd0113e51fc in QDragManager::drag (this=0x5613490, o=<value optimized out>) at kernel/qdnd_x11.cpp:1960
#33 0x00007fd011363813 in QDrag::start (this=0x8c95570, request=) at kernel/qdrag.cpp:314
#34 0x00007fcffe90dcf9 in KHTMLPart::handleMouseMoveEventDrag (this=0x9902580, event=<value optimized out>) at ../../khtml/khtml_part.cpp:6306
#35 0x00007fcffe922219 in KHTMLPart::khtmlMouseMoveEvent (this=0x0, event=0x7fff9ee68c40) at ../../khtml/khtml_part.cpp:6405
#36 0x00007fd0121beba4 in QObject::event (this=0x9902580, e=0x7fff9ee6a2b0) at kernel/qobject.cpp:1279
#37 0x00007fd01134d12c in QApplicationPrivate::notify_helper (this=0x143c5b0, receiver=0x9902580, e=0x7fff9ee6a2b0) at kernel/qapplication.cpp:4300
#38 0x00007fd01135371b in QApplication::notify (this=0x7fff9ee6c860, receiver=0x9902580, e=0x7fff9ee6a2b0) at kernel/qapplication.cpp:4183
#39 0x00007fd0126f7076 in KApplication::notify (this=0x7fff9ee6c860, receiver=0x9902580, event=0x7fff9ee6a2b0) at ../../kdeui/kernel/kapplication.cpp:302
#40 0x00007fd0121aee0c in QCoreApplication::notifyInternal (this=0x7fff9ee6c860, receiver=0x9902580, event=0x7fff9ee6a2b0) at kernel/qcoreapplication.cpp:704
#41 0x00007fcffe8f77f4 in QCoreApplication::sendEvent (this=0x9902a80, _mouse=<value optimized out>) at /usr/include/qt4/QtCore/qcoreapplication.h:215
#42 KHTMLView::mouseMoveEvent (this=0x9902a80, _mouse=<value optimized out>) at ../../khtml/khtmlview.cpp:1551
#43 0x00007fd0113a315f in QWidget::event (this=0x9902a80, event=0x7fff9ee6b0e0) at kernel/qwidget.cpp:7983
#44 0x00007fd0117498b6 in QFrame::event (this=0x9902a80, e=0x7fff9ee6b0e0) at widgets/qframe.cpp:557
#45 0x00007fcffe8f37e5 in KHTMLView::widgetEvent (this=0x9902a80, e=0x7fff9ee68c40) at ../../khtml/khtmlview.cpp:2362
#46 0x00007fcffe8f3aff in KHTMLView::eventFilter (this=0x9902a80, o=0x88fd2a0, e=0x7fff9ee6b0e0) at ../../khtml/khtmlview.cpp:2207
#47 0x00007fd0121ae227 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0x88fd2a0, event=0x7fff9ee6b0e0) at kernel/qcoreapplication.cpp:819
#48 0x00007fd01134d0fc in QApplicationPrivate::notify_helper (this=0x143c5b0, receiver=0x88fd2a0, e=0x7fff9ee6b0e0) at kernel/qapplication.cpp:4296
#49 0x00007fd011353efb in QApplication::notify (this=0x7fff9ee6c860, receiver=0x88fd2a0, e=0x7fff9ee6b0e0) at kernel/qapplication.cpp:3865
#50 0x00007fd0126f7076 in KApplication::notify (this=0x7fff9ee6c860, receiver=0x88fd2a0, event=0x7fff9ee6b0e0) at ../../kdeui/kernel/kapplication.cpp:302
#51 0x00007fd0121aee0c in QCoreApplication::notifyInternal (this=0x7fff9ee6c860, receiver=0x88fd2a0, event=0x7fff9ee6b0e0) at kernel/qcoreapplication.cpp:704
#52 0x00007fd0113530d6 in QCoreApplication::sendEvent (receiver=0x88fd2a0, event=0x7fff9ee6b0e0, alienWidget=0x88fd2a0, nativeWidget=0x1759190, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#53 QApplicationPrivate::sendMouseEvent (receiver=0x88fd2a0, event=0x7fff9ee6b0e0, alienWidget=0x88fd2a0, nativeWidget=0x1759190, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2965
#54 0x00007fd01135357f in QApplicationPrivate::sendSyntheticEnterLeave (this=<value optimized out>, widget=<value optimized out>) at kernel/qapplication.cpp:3051
#55 0x00007fd0113aa79a in QWidget::setVisible (this=0x9216ea0, visible=<value optimized out>) at kernel/qwidget.cpp:7421
#56 0x00007fd01138cdcd in QWidget::show (this=0x1ad4aa0, index=6) at ../../include/QtGui/../../src/gui/kernel/qwidget.h:485
#57 QStackedLayout::setCurrentIndex (this=0x1ad4aa0, index=6) at kernel/qstackedlayout.cpp:311
#58 0x00007fd0117b8d63 in QTabWidgetPrivate::_q_showTab (this=0x1ad4ec0, index=6) at widgets/qtabwidget.cpp:732
#59 0x00007fd0117b9020 in QTabWidget::qt_metacall (this=0x1ad2520, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9ee6b420) at .moc/release-shared/moc_qtabwidget.cpp:142
#60 0x00007fd0127f3695 in KTabWidget::qt_metacall (this=0x0, _c=2665909312, _id=-1629058400, _a=0x7fff9ee68be0) at ./ktabwidget.moc:128
#61 0x00007fd006692515 in KonqFrameTabs::qt_metacall (this=0x0, _c=2665909312, _id=-1629058400, _a=0x7fff9ee68be0) at ./konqtabs.moc:98
#62 0x00007fd0121c1c0f in QMetaObject::activate (sender=0x1ad6170, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9ee68be0) at kernel/qobject.cpp:3293
#63 0x00007fd0117ae1be in QTabBar::currentChanged (this=0x0, _t1=6) at .moc/release-shared/moc_qtabbar.cpp:201
#64 0x00007fd0117b6a13 in QTabBar::removeTab (this=0x1ad6170, index=7) at widgets/qtabbar.cpp:891
#65 0x00007fd0117b8820 in QTabWidgetPrivate::_q_removeTab (this=<value optimized out>, index=-1629057984) at widgets/qtabwidget.cpp:743
#66 0x00007fd0117b8fa8 in QTabWidget::qt_metacall (this=0x1ad2520, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9ee6b630) at .moc/release-shared/moc_qtabwidget.cpp:143
#67 0x00007fd0127f3695 in KTabWidget::qt_metacall (this=0x0, _c=2665909312, _id=-1629058400, _a=0x7fff9ee68be0) at ./ktabwidget.moc:128
#68 0x00007fd006692515 in KonqFrameTabs::qt_metacall (this=0x0, _c=2665909312, _id=-1629058400, _a=0x7fff9ee68be0) at ./konqtabs.moc:98
#69 0x00007fd0121c1c0f in QMetaObject::activate (sender=0x175c320, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9ee68be0) at kernel/qobject.cpp:3293
#70 0x00007fd0119ec151 in QStackedWidget::widgetRemoved (this=0x0, _t1=7) at .moc/release-shared/moc_qstackedwidget.cpp:138
#71 0x00007fd0119ec2de in QStackedWidget::qt_metacall (this=0x175c320, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff9ee6b770) at .moc/release-shared/moc_qstackedwidget.cpp:89
#72 0x00007fd0121c1c0f in QMetaObject::activate (sender=0x1ad4aa0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9ee68be0) at kernel/qobject.cpp:3293
#73 0x00007fd0119e375e in QStackedLayout::widgetRemoved (this=0x0, _t1=7) at .moc/release-shared/moc_qstackedlayout.cpp:140
#74 0x00007fd01138d0a9 in QStackedLayout::takeAt (this=0x1ad4aa0, index=7) at kernel/qstackedlayout.cpp:272
#75 0x00007fd01137db2f in QLayout::removeWidget (this=0x1ad4aa0, widget=0x89950d0) at kernel/qlayout.cpp:1457
#76 0x00007fd0127f3f7d in KTabWidget::Private::removeTab (this=0x1ad6110, index=7) at ../../kdeui/widgets/ktabwidget.cpp:130
#77 0x00007fd0127f4065 in KTabWidget::removeTab (this=0x1ad2520, index=7) at ../../kdeui/widgets/ktabwidget.cpp:589
#78 0x00007fd00668e03b in KonqFrameTabs::childFrameRemoved (this=0x1ad2520, frame=0x89950f8) at ../../../../apps/konqueror/src/konqtabs.cpp:261
#79 0x00007fd00667ac05 in KonqViewManager::removeTab (this=0x175ccb0, currentFrame=0x89950f8, emitAboutToRemoveSignal=<value optimized out>) at ../../../../apps/konqueror/src/konqviewmanager.cpp:412
#80 0x00007fd0066cad1d in KonqMainWindow::qt_metacall (this=0x1759190, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9ee6bb60) at ./konqmainwindow.moc:421
#81 0x00007fd0121c1c0f in QMetaObject::activate (sender=0x73bf300, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff9ee68be0) at kernel/qobject.cpp:3293
#82 0x00007fd0121c93ff in QSingleShotTimer::timerEvent (this=0x73bf300) at kernel/qtimer.cpp:308
#83 0x00007fd0121be863 in QObject::event (this=0x73bf300, e=0x7fff9ee6c2c0) at kernel/qobject.cpp:1212
#84 0x00007fd01134d12c in QApplicationPrivate::notify_helper (this=0x143c5b0, receiver=0x73bf300, e=0x7fff9ee6c2c0) at kernel/qapplication.cpp:4300
#85 0x00007fd01135371b in QApplication::notify (this=0x7fff9ee6c860, receiver=0x73bf300, e=0x7fff9ee6c2c0) at kernel/qapplication.cpp:4183
#86 0x00007fd0126f7076 in KApplication::notify (this=0x7fff9ee6c860, receiver=0x73bf300, event=0x7fff9ee6c2c0) at ../../kdeui/kernel/kapplication.cpp:302
#87 0x00007fd0121aee0c in QCoreApplication::notifyInternal (this=0x7fff9ee6c860, receiver=0x73bf300, event=0x7fff9ee6c2c0) at kernel/qcoreapplication.cpp:704
#88 0x00007fd0121dba62 in QCoreApplication::sendEvent (this=0x14401c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#89 QTimerInfoList::activateTimers (this=0x14401c0) at kernel/qeventdispatcher_unix.cpp:603
#90 0x00007fd0121d8644 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#91 0x00007fd00d5c4bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#92 0x00007fd00d5c8598 in ?? () from /lib/libglib-2.0.so.0
#93 0x00007fd00d5c86c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#94 0x00007fd0121d8333 in QEventDispatcherGlib::processEvents (this=0x13af770, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#95 0x00007fd0113fcf0e in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#96 0x00007fd0121ad732 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#97 0x00007fd0121adb0c in QEventLoop::exec (this=0x7fff9ee6c560, flags=) at kernel/qeventloop.cpp:201
#98 0x00007fd0121b184b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#99 0x00007fd0066f1da6 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../../apps/konqueror/src/konqmain.cpp:271
#100 0x0000000000406fb8 in launch (argc=2, _name=<value optimized out>, args=<value optimized out>, cwd=<value optimized out>, envc=16, envs=<value optimized out>, reset_env=false, tty=0x0, 
    avoid_loops=false, startup_id_str=0x13fbf74 "XPC;1271897335;253259;2796_TIME392876") at ../../kinit/kinit.cpp:717
#101 0x0000000000407c70 in handle_launcher_request (sock=9, who=<value optimized out>) at ../../kinit/kinit.cpp:1209
#102 0x0000000000408121 in handle_requests (waitForPid=0) at ../../kinit/kinit.cpp:1402
#103 0x0000000000408e02 in main (argc=4, argv=<value optimized out>, envp=<value optimized out>) at ../../kinit/kinit.cpp:1845

Reported using DrKonqi
Comment 1 Dario Andres 2010-12-15 18:44:35 UTC
[Comment from a bug triager]
From bug 259533:
- What I was doing when the application crashed: 
Crash while clicking in Facebook tab (many tabs open)
Comment 2 Dario Andres 2010-12-15 18:44:48 UTC
*** Bug 259533 has been marked as a duplicate of this bug. ***
Comment 3 Dawit Alemayehu 2011-11-18 00:55:01 UTC
Git commit d5675e5850b1d25d55c9482ed8deff712b9bcc6f by Dawit Alemayehu.
Committed on 18/11/2011 at 01:48.
Pushed by adawit into branch 'KDE/4.7'.

Guard against use of NULL pointers.

BUG: 235074
FIXED-IN: 4.7.4

M  +3    -2    konqueror/src/konqframe.cpp
M  +3    -0    konqueror/src/konqview.cpp

http://commits.kde.org/kde-baseapps/d5675e5850b1d25d55c9482ed8deff712b9bcc6f
Comment 4 Dawit Alemayehu 2011-11-18 00:56:12 UTC
Git commit b023625feca8b41c1dff28bf4c973f7466d19982 by Dawit Alemayehu.
Committed on 18/11/2011 at 01:48.
Pushed by adawit into branch 'master'.

Guard against use of NULL pointers.

BUG: 235074
FIXED-IN: 4.7.4

(cherry picked from commit d5675e5850b1d25d55c9482ed8deff712b9bcc6f)

M  +3    -2    konqueror/src/konqframe.cpp
M  +3    -0    konqueror/src/konqview.cpp

http://commits.kde.org/kde-baseapps/b023625feca8b41c1dff28bf4c973f7466d19982
Comment 5 Dawit Alemayehu 2011-11-26 19:23:29 UTC
*** Bug 282521 has been marked as a duplicate of this bug. ***