Bug 173717 - kate crashes after using program after running into bug 173710 / konqueror crashes after reproducing bug 169950 (crash on destruction of KXMLGUIClient with invalid toolbars actions)
Summary: kate crashes after using program after running into bug 173710 / konqueror cr...
Status: RESOLVED DUPLICATE of bug 205625
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdeui (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 166786 181307 194822 203521 205029 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-27 22:29 UTC by Oliver Putz
Modified: 2009-11-20 01:30 UTC (History)
11 users (show)

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


Attachments
Backtrace (7.32 KB, text/plain)
2008-10-28 15:33 UTC, Jean-Philippe Fleury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Putz 2008-10-27 22:29:37 UTC
Version:           3.1.69 (using 4.1.69 (KDE 4.1.69 (KDE 4.2 >= 20081009)), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.26-gentoo-r1

Steps to reproduce:

1) Open kate
2) Go to Settings -> Configure Toolbars
3) Select main toolbar<katePartView>
4) change main toolbar<katePartView> (e.g. add a bookmarks menu)
5) Apply changes
6) See that the main toolbar was completely disabled
7) Right click on Menubar -> Check the box to show the "Main toolbar"
8) Now it gets a little more tricky...
8a) Go to Settings -> Configure Toolbars
8b) Select main toolbar<katePartView>
8c) change main toolbar<katePartView> (e.g. add a copy item)
8d) Apply changes

Sometimes it crashes right at that point, sometimes kate stays alive until I close it, sometimes it works out just fine... But normally I can make it crash after trying for like two or three times... 

Also depending on how I make it crash, the backtraces slightly differ. I only paste two sample backtraces as I guess all crashes have the same root cause...

Crash after closing kate after the above procedure

Application: Kate (kate), signal SIGABRT

Thread 1 (Thread 0xb5e65700 (LWP 12020)):
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb616b690 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0xb616ced8 in *__GI_abort () at abort.c:88
#9  0xb61ac3f3 in malloc_printerr (action=2, str=0xb62607d2 "free(): invalid pointer", ptr=0x825a330) at malloc.c:5954
#10 0xb61adccb in *__GI___libc_free (mem=0x825a330) at malloc.c:3589
#11 0xb64c7e1b in qFree (ptr=0x825a330) at global/qmalloc.cpp:62
#12 0xb6512b34 in QString::free (d=0x825a330) at tools/qstring.cpp:934
#13 0xb63cfad2 in ~QDomNodePrivate (this=0x824c530) at ../../include/QtCore/../../src/corelib/tools/qstring.h:831
#14 0xb63dae20 in ~QDomAttrPrivate (this=0x824c530) at dom/qdom.cpp:362
#15 0xb63ce6c7 in QDomNamedNodeMapPrivate::clearMap (this=0x833b660) at dom/qdom.cpp:3043
#16 0xb63ce7ed in ~QDomNamedNodeMapPrivate (this=0x833b660) at dom/qdom.cpp:3015
#17 0xb63d0b95 in ~QDomElementPrivate (this=0x81ca6b8) at dom/qdom.cpp:4391
#18 0xb63cfa1c in ~QDomNodePrivate (this=0x83e17d8) at dom/qdom.cpp:1461
#19 0xb63d0ba5 in ~QDomElementPrivate (this=0x83e17d8) at dom/qdom.cpp:4392
#20 0xb63cfa1c in ~QDomNodePrivate (this=0x8367520) at dom/qdom.cpp:1461
#21 0xb63d0ba5 in ~QDomElementPrivate (this=0x8367520) at dom/qdom.cpp:4392
#22 0xb63cfa1c in ~QDomNodePrivate (this=0x8353bb8) at dom/qdom.cpp:1461
#23 0xb63d0ba5 in ~QDomElementPrivate (this=0x8353bb8) at dom/qdom.cpp:4392
#24 0xb63cfa1c in ~QDomNodePrivate (this=0x8449910) at dom/qdom.cpp:1461
#25 0xb63cfb9f in ~QDomDocumentPrivate (this=0x8449910) at dom/qdom.cpp:6150
#26 0xb63c8c56 in ~QDomNode (this=0x2ef4) at dom/qdom.cpp:2064
#27 0xb63ca551 in ~QDomDocument (this=0x82122b0) at dom/qdom.cpp:6600
#28 0xb75f697d in ~KXMLGUIClientPrivate (this=0x82122a8) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/xmlgui/kxmlguiclient.cpp:54
#29 0xb75f60da in ~KXMLGUIClient (this=0x823a3b4) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/xmlgui/kxmlguiclient.cpp:102
#30 0xb7dd8e59 in ~KateMainWindow (this=0x823a2f0) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate-4.1.69/kate/app/katemainwindow.cpp:229
#31 0xb65ccfe8 in qDeleteInEventHandler (o=0x6) at kernel/qobject.cpp:3656
#32 0xb65cebd5 in QObject::event (this=0x823a2f0, e=0x81edb00) at kernel/qobject.cpp:1136
#33 0xb6818c66 in QWidget::event (this=0x823a2f0, event=0x81edb00) at kernel/qwidget.cpp:7557
#34 0xb6b70e5d in QMainWindow::event (this=0x823a2f0, event=0x81edb00) at widgets/qmainwindow.cpp:1274
#35 0xb75b8271 in KMainWindow::event (this=0x823a2f0, ev=0x81edb00) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/widgets/kmainwindow.cpp:1064
#36 0xb75eff02 in KXmlGuiWindow::event (this=0x823a2f0, ev=0x81edb00) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/xmlgui/kxmlguiwindow.cpp:125
#37 0xb7dd5cd1 in KateMainWindow::event (this=0x823a2f0, e=0x81edb00) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate-4.1.69/kate/app/katemainwindow.cpp:832
#38 0xb67c0fab in QApplicationPrivate::notify_helper (this=0x8058c10, receiver=0x823a2f0, e=0x81edb00) at kernel/qapplication.cpp:3809
#39 0xb67c7b42 in QApplication::notify (this=0xbf806428, receiver=0x823a2f0, e=0x81edb00) at kernel/qapplication.cpp:3774
#40 0xb75042b1 in KApplication::notify (this=0xbf806428, receiver=0x823a2f0, event=0x81edb00) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/kernel/kapplication.cpp:307
#41 0xb65beb21 in QCoreApplication::notifyInternal (this=0xbf806428, receiver=0x823a2f0, event=0x81edb00) at kernel/qcoreapplication.cpp:593
#42 0xb65bf984 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x804c310) at kernel/qcoreapplication.h:215
#43 0xb65eb470 in QEventDispatcherUNIX::processEvents (this=0x8059490, flags={i = -1082105620}) at kernel/qeventdispatcher_unix.cpp:867
#44 0xb685664f in QEventDispatcherX11::processEvents (this=0x8059490, flags={i = -1082105560}) at kernel/qeventdispatcher_x11.cpp:154
#45 0xb65bd6b0 in QEventLoop::processEvents (this=0xbf8061a0, flags={i = -1082105496}) at kernel/qeventloop.cpp:149
#46 0xb65bd852 in QEventLoop::exec (this=0xbf8061a0, flags={i = -1082105432}) at kernel/qeventloop.cpp:200
#47 0xb65bfc6f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:851
#48 0xb67c0d43 in QApplication::exec () at kernel/qapplication.cpp:3337
#49 0xb7fe6292 in kdemain (argc=1, argv=0xbf8069b4) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate-4.1.69/kate/app/katemain.cpp:252
#50 0x08048902 in main (argc=) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate_build/kate/app/kate_dummy.cpp:3


Another crash where kate crashed after playing with the toolbar after it had disappeared

Thread 1 (Thread 0xb5e9d700 (LWP 11916)):
[KCrash Handler]
#6  QDomNamedNodeMapPrivate::clone (this=0x81dfd00, p=0x83fe8d0) at dom/qdom.cpp:3026
#7  0xb640902f in QDomElementPrivate (this=0x83fe8d0, n=0x81bfed8, deep=<value optimized out>) at dom/qdom.cpp:4383
#8  0xb640936c in QDomElementPrivate::cloneNode (this=0x81bfed8, deep=<value optimized out>) at dom/qdom.cpp:4396
#9  0xb64031cd in QDomNodePrivate (this=0x83fe0c8, n=0x83664f0, deep=true) at dom/qdom.cpp:1450
#10 0xb6409018 in QDomElementPrivate (this=0x83fe0c8, n=0x83664f0, deep=false) at dom/qdom.cpp:4381
#11 0xb640936c in QDomElementPrivate::cloneNode (this=0x83664f0, deep=<value optimized out>) at dom/qdom.cpp:4396
#12 0xb64031cd in QDomNodePrivate (this=0x83ff328, n=0x820b6a0, deep=true) at dom/qdom.cpp:1450
#13 0xb6409018 in QDomElementPrivate (this=0x83ff328, n=0x820b6a0, deep=false) at dom/qdom.cpp:4381
#14 0xb640936c in QDomElementPrivate::cloneNode (this=0x820b6a0, deep=<value optimized out>) at dom/qdom.cpp:4396
#15 0xb64031cd in QDomNodePrivate (this=0x83ff198, n=0x821f570, deep=true) at dom/qdom.cpp:1450
#16 0xb6409018 in QDomElementPrivate (this=0x83ff198, n=0x821f570, deep=false) at dom/qdom.cpp:4381
#17 0xb640936c in QDomElementPrivate::cloneNode (this=0x821f570, deep=<value optimized out>) at dom/qdom.cpp:4396
#18 0xb64031cd in QDomNodePrivate (this=0x83fedb0, n=0x8214bb8, deep=true) at dom/qdom.cpp:1450
#19 0xb6408a08 in QDomDocumentPrivate (this=0x83fedb0, n=0x8214bb8, deep=false) at dom/qdom.cpp:6133
#20 0xb6408aa6 in QDomDocumentPrivate::cloneNode (this=0x8214bb8, deep=<value optimized out>) at dom/qdom.cpp:6204
#21 0xb6400e7c in QDomNode::cloneNode (this=0xbf83b6e8, deep=24) at dom/qdom.cpp:2315
#22 0xb7630b4e in KXMLGUIFactory::removeClient (this=0x822e410, client=0x8214d94) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/xmlgui/kxmlguifactory.cpp:416
#23 0xb74bbeb9 in KDEPrivate::KEditToolBarWidget::rebuildKXMLGUIClients (this=0x840a950) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/dialogs/kedittoolbar.cpp:788
#24 0xb74bc3ec in KDEPrivate::KEditToolBarWidget::save (this=0x840a950) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/dialogs/kedittoolbar.cpp:766
#25 0xb74bca09 in KEditToolBarPrivate::_k_slotApply (this=0x83cfe30) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/dialogs/kedittoolbar.cpp:610
#26 0xb74c0ead in KEditToolBar::qt_metacall (this=0xbf83ca04, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf83b948)
    at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs_build/kdeui/kedittoolbar.moc:78
#27 0xb660d4e1 in QMetaObject::activate (sender=0xbf83ca04, from_signal_index=<value optimized out>, to_signal_index=42, argv=0x0) at kernel/qobject.cpp:3028
#28 0xb660f3d8 in QMetaObject::activate (sender=0xbf83ca04, m=0xb768d684, local_signal_index=7, argv=0x0) at kernel/qobject.cpp:3098
#29 0xb74b467d in KDialog::applyClicked (this=0xbf83ca04) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs_build/kdeui/kdialog.moc:235
#30 0xb74b5a5d in KDialog::slotButtonClicked (this=0xbf83ca04, button=8) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/dialogs/kdialog.cpp:848
#31 0xb74b7a4c in KDialog::qt_metacall (this=0xbf83ca04, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbf83bb1c) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs_build/kdeui/kdialog.moc:181
#32 0xb74c0e5e in KEditToolBar::qt_metacall (this=0xbf83ca04, _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0xbf83bb1c)
    at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs_build/kdeui/kedittoolbar.moc:70
#33 0xb660d4e1 in QMetaObject::activate (sender=0x8428340, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xbf83bb1c) at kernel/qobject.cpp:3028
#34 0xb660f3d8 in QMetaObject::activate (sender=0x8428340, m=0xb66da970, local_signal_index=0, argv=0xbf83bb1c) at kernel/qobject.cpp:3098
#35 0xb6610c27 in QSignalMapper::mapped (this=0x8428340, _t1=8) at .moc/debug-shared/moc_qsignalmapper.cpp:93
#36 0xb6611431 in QSignalMapper::map (this=0x8428340, sender=0x840a5a8) at kernel/qsignalmapper.cpp:277
#37 0xb661162e in QSignalMapper::map (this=0x8428340) at kernel/qsignalmapper.cpp:268
#38 0xb6611f7d in QSignalMapper::qt_metacall (this=0x8428340, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf83bcac) at .moc/debug-shared/moc_qsignalmapper.cpp:80
#39 0xb660d4e1 in QMetaObject::activate (sender=0x840a5a8, from_signal_index=<value optimized out>, to_signal_index=30, argv=0xbf83bcac) at kernel/qobject.cpp:3028
#40 0xb660d904 in QMetaObject::activate (sender=0x840a5a8, m=0xb6fb8384, from_local_signal_index=2, to_local_signal_index=3, argv=0xbf83bcac) at kernel/qobject.cpp:3118
#41 0xb6de79d3 in QAbstractButton::clicked (this=0x840a5a8, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185
#42 0xb6b3f33f in QAbstractButtonPrivate::emitClicked (this=0x83eb1f0) at widgets/qabstractbutton.cpp:544
#43 0xb6b40dda in QAbstractButtonPrivate::click (this=0x83eb1f0) at widgets/qabstractbutton.cpp:537
#44 0xb6b41003 in QAbstractButton::mouseReleaseEvent (this=0x840a5a8, e=0xbf83c39c) at widgets/qabstractbutton.cpp:1116
#45 0xb68515a2 in QWidget::event (this=0x840a5a8, event=0xbf83c39c) at kernel/qwidget.cpp:7169
#46 0xb6b3f20c in QAbstractButton::event (this=0x840a5a8, e=0xbf83c39c) at widgets/qabstractbutton.cpp:1078
#47 0xb6be413a in QPushButton::event (this=0x840a5a8, e=0xbf83c39c) at widgets/qpushbutton.cpp:658
#48 0xb67f8fab in QApplicationPrivate::notify_helper (this=0x8058c10, receiver=0x840a5a8, e=0xbf83c39c) at kernel/qapplication.cpp:3809
#49 0xb6800438 in QApplication::notify (this=0xbf83dc58, receiver=0x840a5a8, e=0xbf83c39c) at kernel/qapplication.cpp:3534
#50 0xb753c2b1 in KApplication::notify (this=0xbf83dc58, receiver=0x840a5a8, event=0xbf83c39c) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/kernel/kapplication.cpp:307
#51 0xb65f6b21 in QCoreApplication::notifyInternal (this=0xbf83dc58, receiver=0x840a5a8, event=0xbf83c39c) at kernel/qcoreapplication.cpp:593
#52 0xb6801879 in QApplicationPrivate::sendMouseEvent (receiver=0x840a5a8, event=0xbf83c39c, alienWidget=0x840a5a8, nativeWidget=0xbf83ca04, buttonDown=0xb6fbec60, lastMouseReceiver=@0xb6fbec64)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#53 0xb68699e7 in QETWidget::translateMouseEvent (this=0xbf83ca04, event=0xbf83c8a8) at kernel/qapplication_x11.cpp:4048
#54 0xb686831e in QApplication::x11ProcessEvent (this=0xbf83dc58, event=0xbf83c8a8) at kernel/qapplication_x11.cpp:3044
#55 0xb688e96d in QEventDispatcherX11::processEvents (this=0x8059490, flags={i = -1081882296}) at kernel/qeventdispatcher_x11.cpp:134
#56 0xb65f56b0 in QEventLoop::processEvents (this=0xbf83c9bc, flags={i = -1081882232}) at kernel/qeventloop.cpp:149
#57 0xb65f5852 in QEventLoop::exec (this=0xbf83c9bc, flags={i = -1081882172}) at kernel/qeventloop.cpp:200
#58 0xb6c64a71 in QDialog::exec (this=0xbf83ca04) at dialogs/qdialog.cpp:453
#59 0xb7e0f200 in KateMainWindow::slotEditToolbars (this=0x820e130) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate-4.1.69/kate/app/katemainwindow.cpp:505
#60 0xb7e131b8 in KateMainWindow::qt_metacall (this=0x820e130, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbf83cb5c)
    at /var/tmp/portage/kde-base/kate-4.1.69/work/kate_build/kate/app/katemainwindow.moc:162
#61 0xb660d4e1 in QMetaObject::activate (sender=0x8252df8, from_signal_index=<value optimized out>, to_signal_index=6, argv=0xbf83cb5c) at kernel/qobject.cpp:3028
#62 0xb660d904 in QMetaObject::activate (sender=0x8252df8, m=0xb6fa8038, from_local_signal_index=1, to_local_signal_index=2, argv=0xbf83cb5c) at kernel/qobject.cpp:3118
#63 0xb67f2ffb in QAction::triggered (this=0x8252df8, _t1=false) at .moc/debug-shared/moc_qaction.cpp:216
#64 0xb67f386c in QAction::activate (this=0x8252df8, event=QAction::Trigger) at kernel/qaction.cpp:1131
#65 0xb6bd4544 in QMenuPrivate::activateAction (this=0x81f3240, action=0x8252df8, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1008
#66 0xb6bd4faf in QMenu::mouseReleaseEvent (this=0x82f6840, e=0xbf83d3ac) at widgets/qmenu.cpp:2175
#67 0xb75f20ea in KMenu::mouseReleaseEvent (this=0x82f6840, e=0xbf83d3ac) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/widgets/kmenu.cpp:452
#68 0xb68515a2 in QWidget::event (this=0x82f6840, event=0xbf83d3ac) at kernel/qwidget.cpp:7169
#69 0xb6bd7341 in QMenu::event (this=0x82f6840, e=0xbf83d3ac) at widgets/qmenu.cpp:2271
#70 0xb67f8fab in QApplicationPrivate::notify_helper (this=0x8058c10, receiver=0x82f6840, e=0xbf83d3ac) at kernel/qapplication.cpp:3809
#71 0xb6800438 in QApplication::notify (this=0xbf83dc58, receiver=0x82f6840, e=0xbf83d3ac) at kernel/qapplication.cpp:3534
#72 0xb753c2b1 in KApplication::notify (this=0xbf83dc58, receiver=0x82f6840, event=0xbf83d3ac) at /var/tmp/portage/kde-base/kdelibs-4.1.69/work/kdelibs-4.1.69/kdeui/kernel/kapplication.cpp:307
#73 0xb65f6b21 in QCoreApplication::notifyInternal (this=0xbf83dc58, receiver=0x82f6840, event=0xbf83d3ac) at kernel/qcoreapplication.cpp:593
#74 0xb6801879 in QApplicationPrivate::sendMouseEvent (receiver=0x82f6840, event=0xbf83d3ac, alienWidget=0x0, nativeWidget=0x82f6840, buttonDown=0xb6fbec60, lastMouseReceiver=@0xb6fbec64)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#75 0xb6869c1f in QETWidget::translateMouseEvent (this=0x82f6840, event=0xbf83d8b8) at kernel/qapplication_x11.cpp:3982
#76 0xb686831e in QApplication::x11ProcessEvent (this=0xbf83dc58, event=0xbf83d8b8) at kernel/qapplication_x11.cpp:3044
#77 0xb688e96d in QEventDispatcherX11::processEvents (this=0x8059490, flags={i = -1081878184}) at kernel/qeventdispatcher_x11.cpp:134
#78 0xb65f56b0 in QEventLoop::processEvents (this=0xbf83d9d0, flags={i = -1081878120}) at kernel/qeventloop.cpp:149
#79 0xb65f5852 in QEventLoop::exec (this=0xbf83d9d0, flags={i = -1081878056}) at kernel/qeventloop.cpp:200
#80 0xb65f7c6f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:851
#81 0xb67f8d43 in QApplication::exec () at kernel/qapplication.cpp:3337
#82 0xb801e292 in kdemain (argc=1, argv=0xbf83e1e4) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate-4.1.69/kate/app/katemain.cpp:252
#83 0x08048902 in main (argc=0, argv=0x81bfff8) at /var/tmp/portage/kde-base/kate-4.1.69/work/kate_build/kate/app/kate_dummy.cpp:3
Comment 1 Oliver Putz 2008-10-27 22:59:41 UTC
Having reproduced similar crashes in other programs (e.g. kmail) and looking at the backtrace, it seems this might rather be a kdelibs issue than a kate issue...

General pattern: Adding and removing items from the "secondary" toolbar crashes the respective program
Comment 2 Jean-Philippe Fleury 2008-10-28 15:33:43 UTC
Created attachment 28206 [details]
Backtrace

I have the same bug. I attach backtrace.
Comment 3 Dario Andres 2008-12-14 17:27:05 UTC
*** Bug 166786 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2008-12-25 15:37:21 UTC
I have reproduced this bug using Konqueror on:

Qt: 4.4.3
KDE: 4.1.86 (KDE 4.1.86 (KDE 4.2 >= 20081221))
kdelibs svn rev. 901348 / kdebase svn rev. 901348
on ArchLinux x86_64 - Kernel 2.6.27.10

---
After reproducing bug 169950

Steps to reproduce:

- Open Konqueror
- Browse to a website (ex. www.google.com)
- Go to Configure Toolbars
- Add the "Open in Firefox" icon to the main toolbar
- Open another Konqueror window in the default "about:konqueror"

- Close the "about:konqueror" window.
- Close the "www.google.com" window.

Konqueror crashes

(May be you have to try the lasts steps (may be in a different order) in order to reproduce the crash)

Also, due of bug 169950, the "Open in Firefox" icons dissapears after closing Konqueror, and after reloading it and going to "www.google.com" the icon appears in the Configure Toolbars dialog but not in the toolbar itself. (you have to move in the Configure Toolbars dialog in order to the icon to reappear in the toolbar)). So the situation may differs to reproduce the crash

Backtrace:

Application: Konqueror (konqueror), signal SIGABRT
0x00007f0197b69001 in nanosleep () from /lib/libc.so.6

Thread 1 (Thread 0x7f019cbe4750 (LWP 5265)):
[KCrash Handler]
#5  0x00007f0197afc0c5 in raise () from /lib/libc.so.6
#6  0x00007f0197afd5e3 in abort () from /lib/libc.so.6
#7  0x00007f0197b3c8e0 in malloc_printerr () from /lib/libc.so.6
#8  0x00007f019a26d686 in QString::free (d=0x33f7b30) at tools/qstring.cpp:928
#9  0x00007f019b5451ce in QHash<QString, QDomNodePrivate*>::freeData (this=0x28327c8, x=0x2832930) at ../../include/QtCore/../../src/corelib/tools/qstring.h:825
#10 0x00007f019b53b96c in QDomNamedNodeMapPrivate::clearMap (this=0x28327c0) at ../../include/QtCore/../../src/corelib/tools/qhash.h:576
#11 0x00007f019b53b989 in ~QDomNamedNodeMapPrivate (this=0x1491) at dom/qdom.cpp:3009
#12 0x00007f019b53bf2a in ~QDomElementPrivate (this=0x2832740) at dom/qdom.cpp:4385
#13 0x00007f019b53bd09 in ~QDomNodePrivate (this=0x2865c80) at dom/qdom.cpp:1455
#14 0x00007f019b53bf3a in ~QDomElementPrivate (this=0x2865c80) at dom/qdom.cpp:4386
#15 0x00007f019b53bd09 in ~QDomNodePrivate (this=0x287a2c0) at dom/qdom.cpp:1455
#16 0x00007f019b53be15 in ~QDomDocumentPrivate (this=0x287a2c0) at dom/qdom.cpp:6144
#17 0x00007f019b23f3a9 in ~KXMLGUIClient (this=0x26a12b0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/xmlgui/kxmlguiclient.cpp:54
#18 0x00007f019c890acc in ~KonqMainWindow (this=0x26a0fd0) at /home/kde-devel/kde/src/KDE/kdebase/apps/konqueror/src/konqmainwindow.cpp:358
#19 0x00007f019a31ac95 in QObject::event (this=0x26a0fd0, e=0x1491) at kernel/qobject.cpp:1139
#20 0x00007f019971422c in QWidget::event (this=0x26a0fd0, event=0x346cca0) at kernel/qwidget.cpp:7551
#21 0x00007f0199a13c7b in QMainWindow::event (this=0x26a0fd0, event=0x346cca0) at widgets/qmainwindow.cpp:1268
#22 0x00007f019b23b328 in KXmlGuiWindow::event (this=0x1491, ev=0x1491) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/xmlgui/kxmlguiwindow.cpp:131
#23 0x00007f019c8ae46f in KonqMainWindow::event (this=0x26a0fd0, e=0x346cca0) at /home/kde-devel/kde/src/KDE/kdebase/apps/konqueror/src/konqmainwindow.cpp:5680
#24 0x00007f01996c20ad in QApplicationPrivate::notify_helper (this=0x249c2d0, receiver=0x26a0fd0, e=0x346cca0) at kernel/qapplication.cpp:3803
#25 0x00007f01996c940e in QApplication::notify (this=0x7fffa4d245c0, receiver=0x26a0fd0, e=0x346cca0) at kernel/qapplication.cpp:3768
#26 0x00007f019b12b6bb in KApplication::notify (this=0x7fffa4d245c0, receiver=0x26a0fd0, event=0x346cca0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:307
#27 0x00007f019a30bd90 in QCoreApplication::notifyInternal (this=0x7fffa4d245c0, receiver=0x26a0fd0, event=0x346cca0) at kernel/qcoreapplication.cpp:583
#28 0x00007f019a30f643 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x245ea60) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#29 0x00007f019a332fa3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:214
#30 0x00007f0195cffaa2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#31 0x00007f0195d0321d in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#32 0x00007f0195d033db in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#33 0x00007f019a332cdf in QEventDispatcherGlib::processEvents (this=0x2471170, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319
#34 0x00007f0199749f7f in QGuiEventDispatcherGlib::processEvents (this=0x1491, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198
#35 0x00007f019a30a9c2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1529724144}) at kernel/qeventloop.cpp:143
#36 0x00007f019a30ab55 in QEventLoop::exec (this=0x7fffa4d24350, flags={i = -1529724064}) at kernel/qeventloop.cpp:190
#37 0x00007f019a30f8f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#38 0x00007f019c8ddac9 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/kde-devel/kde/src/KDE/kdebase/apps/konqueror/src/konqmain.cpp:257
#39 0x00007f0197ae8546 in __libc_start_main () from /lib/libc.so.6
#40 0x00000000004007c9 in _start ()
Comment 5 Diego 2009-01-06 14:37:59 UTC
As suggested by Dario Andres in this bug:
http://bugs.kde.org/show_bug.cgi?id=179710

I reproduced this bug on Konqueror too:
Version: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2)) (using 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2)), 4.1.85-6.fc10 Fedora) Compiler: gcc OS: Linux (i686) release 2.6.27.9-163.fc10.i686

I spent some time trying to get how to reproduce it:
- it doesn't seem to depend on which button you add (I managed to reproduce it with "Undo: close window", "Open file..." and "New tab");
- it doesn't seem to depend on the position you place the button (I managed to reproduce it placing the button in the beginning, in the end and in the middle);
- it seems to happen more frequently when you press "Ok" rather than when you press "Apply".


Here's how to reproduce in my case:
Settings -> Configure toolbars
Add a button to the list and the click "Ok", if nothing happens then Settings -> Configure toolbars, remove it and press "Ok". If still nothing happens then retry again for some times. If still nothing happens then close Konqueror, reopen it and retry.

Here's my backtrace:

Applicazione: Konqueror (konqueror), segnale SIGSEGV
[Current thread is 1 (Thread 0xb8018770 (LWP 3136))]

Thread 1 (Thread 0xb8018770 (LWP 3136)):
[KCrash Handler]
#6  0x0372c12b in QObject::~QObject () from /usr/lib/libQtCore.so.4
#7  0x0373045e in QTimer::~QTimer () from /usr/lib/libQtCore.so.4
#8  0x048c8faa in ~KMenuPrivate (this=0x8998930) at /usr/src/debug/kdelibs-4.1.85/kdeui/widgets/kmenu.cpp:130
#9  0x048c900c in ~KMenu (this=0x8949888) at /usr/src/debug/kdelibs-4.1.85/kdeui/widgets/kmenu.cpp:172
#10 0x047104aa in ~KActionMenu (this=0x8ced6c0) at /usr/src/debug/kdelibs-4.1.85/kdeui/actions/kactionmenu.cpp:77
#11 0x03bd661e in ~KBookmarkActionMenu (this=0x8ced6c0) at /usr/src/debug/kdelibs-4.1.85/kio/bookmarks/kbookmarkmenu.cc:758
#12 0x03363d06 in KConfigGroup::writeEntry () at /usr/src/debug/kdelibs-4.1.85/kdecore/config/kconfiggroup.cpp:953
#13 0x0333efde in KConfigGroup::writeEntry () at /usr/src/debug/kdelibs-4.1.85/kdecore/config/kconfiggroup.cpp:953
#14 0x0491a6b1 in KXMLGUI::ContainerNode::destruct (this=0x8b17788, element={<QDomNode> = {impl = 0x8d5d100}, <No data fields>}, state=@0x8823a88)
    at /usr/src/debug/kdelibs-4.1.85/kdeui/xmlgui/kxmlguifactory_p.cpp:347
#15 0x0491a85f in KXMLGUI::ContainerNode::destructChildren (this=0x8822328, element=@0xbfb3ca30, state=@0x8823a88) at /usr/src/debug/kdelibs-4.1.85/kdeui/xmlgui/kxmlguifactory_p.cpp:371
#16 0x0491a29d in KXMLGUI::ContainerNode::destruct (this=0x8822328, element={<QDomNode> = {impl = 0x8d36d18}, <No data fields>}, state=@0x8823a88)
    at /usr/src/debug/kdelibs-4.1.85/kdeui/xmlgui/kxmlguifactory_p.cpp:326
#17 0x0491560f in KXMLGUIFactory::removeClient (this=0x8823990, client=0x8627b68) at /usr/src/debug/kdelibs-4.1.85/kdeui/xmlgui/kxmlguifactory.cpp:429
#18 0x04761eaf in KDEPrivate::KEditToolBarWidget::rebuildKXMLGUIClients (this=0x8d52da0) at /usr/src/debug/kdelibs-4.1.85/kdeui/dialogs/kedittoolbar.cpp:789
#19 0x04762461 in KDEPrivate::KEditToolBarWidget::save (this=0x8d52da0) at /usr/src/debug/kdelibs-4.1.85/kdeui/dialogs/kedittoolbar.cpp:767
#20 0x04762545 in KEditToolBarPrivate::_k_slotApply (this=0x8d57af8) at /usr/src/debug/kdelibs-4.1.85/kdeui/dialogs/kedittoolbar.cpp:611
#21 0x0476542b in KEditToolBar::qt_metacall (this=0xbfb3ddd0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfb3cc28) at /usr/src/debug/kdelibs-4.1.85/i386-redhat-linux-gnu/kdeui/kedittoolbar.moc:78
#22 0x03729df0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#23 0x0372ab72 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#24 0x04757867 in KDialog::applyClicked (this=0xbfb3ddd0) at /usr/src/debug/kdelibs-4.1.85/i386-redhat-linux-gnu/kdeui/kdialog.moc:235
#25 0x0475a175 in KDialog::slotButtonClicked (this=0xbfb3ddd0, button=8) at /usr/src/debug/kdelibs-4.1.85/kdeui/dialogs/kdialog.cpp:854
#26 0x0475b604 in KDialog::qt_metacall (this=0xbfb3ddd0, _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbfb3cdec) at /usr/src/debug/kdelibs-4.1.85/i386-redhat-linux-gnu/kdeui/kdialog.moc:181
#27 0x047653ba in KEditToolBar::qt_metacall (this=0xbfb3ddd0, _c=QMetaObject::InvokeMetaMethod, _id=68, _a=0xbfb3cdec) at /usr/src/debug/kdelibs-4.1.85/i386-redhat-linux-gnu/kdeui/kedittoolbar.moc:70
#28 0x03729df0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#29 0x0372ab72 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#30 0x0372dc03 in QSignalMapper::mapped () from /usr/lib/libQtCore.so.4
#31 0x0372e48d in QSignalMapper::map () from /usr/lib/libQtCore.so.4
#32 0x0372e67e in QSignalMapper::map () from /usr/lib/libQtCore.so.4
#33 0x0372ef4b in QSignalMapper::qt_metacall () from /usr/lib/libQtCore.so.4
#34 0x03729df0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#35 0x0372a1f0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#36 0x04446441 in QAbstractButton::clicked () from /usr/lib/libQtGui.so.4
#37 0x04199799 in ?? () from /usr/lib/libQtGui.so.4
#38 0x0419b374 in ?? () from /usr/lib/libQtGui.so.4
#39 0x0419b606 in QAbstractButton::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#40 0x03eb1692 in QWidget::event () from /usr/lib/libQtGui.so.4
#41 0x0419963e in QAbstractButton::event () from /usr/lib/libQtGui.so.4
#42 0x0423fef0 in QPushButton::event () from /usr/lib/libQtGui.so.4
#43 0x03e5962c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#44 0x03e61e21 in QApplication::notify () from /usr/lib/libQtGui.so.4
#45 0x047ea4cd in KApplication::notify (this=0xbfb3f790, receiver=0x88ef720, event=0xbfb3d548) at /usr/src/debug/kdelibs-4.1.85/kdeui/kernel/kapplication.cpp:307
#46 0x037151c1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#47 0x03e610ae in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#48 0x03ecb3f6 in ?? () from /usr/lib/libQtGui.so.4
#49 0x03eca785 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#50 0x03ef2dba in ?? () from /usr/lib/libQtGui.so.4
#51 0x0352b238 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#52 0x0352e8e3 in ?? () from /lib/libglib-2.0.so.0
#53 0x0352eaa1 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#54 0x0373f7f8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#55 0x03ef24b5 in ?? () from /usr/lib/libQtGui.so.4
#56 0x0371388a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#57 0x03713a4a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#58 0x042c4f77 in QDialog::exec () from /usr/lib/libQtGui.so.4
#59 0x0333c410 in KConfigGroup::writeEntry () at /usr/src/debug/kdelibs-4.1.85/kdecore/config/kconfiggroup.cpp:953
#60 0x0335ccb0 in KConfigGroup::writeEntry () at /usr/src/debug/kdelibs-4.1.85/kdecore/config/kconfiggroup.cpp:953
#61 0x03729df0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#62 0x0372a1f0 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#63 0x03e53331 in QAction::triggered () from /usr/lib/libQtGui.so.4
#64 0x03e53c9f in QAction::activate () from /usr/lib/libQtGui.so.4
#65 0x0422fb44 in ?? () from /usr/lib/libQtGui.so.4
#66 0x042305d2 in QMenu::mouseReleaseEvent () from /usr/lib/libQtGui.so.4
#67 0x048c8b45 in KMenu::mouseReleaseEvent (this=0x8d1b978, e=0xbfb3e648) at /usr/src/debug/kdelibs-4.1.85/kdeui/widgets/kmenu.cpp:454
#68 0x03eb1692 in QWidget::event () from /usr/lib/libQtGui.so.4
#69 0x042328c9 in QMenu::event () from /usr/lib/libQtGui.so.4
#70 0x03e5962c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#71 0x03e61e21 in QApplication::notify () from /usr/lib/libQtGui.so.4
#72 0x047ea4cd in KApplication::notify (this=0xbfb3f790, receiver=0x8d1b978, event=0xbfb3e648) at /usr/src/debug/kdelibs-4.1.85/kdeui/kernel/kapplication.cpp:307
#73 0x037151c1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#74 0x03e610ae in QApplicationPrivate::sendMouseEvent () from /usr/lib/libQtGui.so.4
#75 0x03ecb67e in ?? () from /usr/lib/libQtGui.so.4
#76 0x03eca785 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#77 0x03ef2dba in ?? () from /usr/lib/libQtGui.so.4
#78 0x0352b238 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#79 0x0352e8e3 in ?? () from /lib/libglib-2.0.so.0
#80 0x0352eaa1 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#81 0x0373f7f8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#82 0x03ef24b5 in ?? () from /usr/lib/libQtGui.so.4
#83 0x0371388a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#84 0x03713a4a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#85 0x04232691 in QMenu::exec () from /usr/lib/libQtGui.so.4
#86 0x048fe225 in KToolBar::contextMenuEvent (this=0x8a71be0, event=0x89a1020) at /usr/src/debug/kdelibs-4.1.85/kdeui/widgets/ktoolbar.cpp:722
#87 0x03eb199d in QWidget::event () from /usr/lib/libQtGui.so.4
#88 0x0426fe6f in QToolBar::event () from /usr/lib/libQtGui.so.4
#89 0x03e5962c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#90 0x03e61995 in QApplication::notify () from /usr/lib/libQtGui.so.4
#91 0x047ea4cd in KApplication::notify (this=0xbfb3f790, receiver=0x8a71be0, event=0x89a1020) at /usr/src/debug/kdelibs-4.1.85/kdeui/kernel/kapplication.cpp:307
#92 0x037151c1 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#93 0x03715e45 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
#94 0x0371603d in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4
#95 0x0373fbaf in ?? () from /usr/lib/libQtCore.so.4
#96 0x0352b238 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#97 0x0352e8e3 in ?? () from /lib/libglib-2.0.so.0
#98 0x0352eaa1 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#99 0x0373f7f8 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#100 0x03ef24b5 in ?? () from /usr/lib/libQtGui.so.4
#101 0x0371388a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#102 0x03713a4a in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#103 0x03716105 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#104 0x03e594a7 in QApplication::exec () from /usr/lib/libQtGui.so.4
#105 0x03383f9f in kdemain () from /usr/lib/libkdeinit4_konqueror.so
#106 0x080486e2 in _start ()

Comment 6 Christophe Marin 2009-06-06 12:20:51 UTC
*** Bug 194822 has been marked as a duplicate of this bug. ***
Comment 7 Christophe Marin 2009-06-06 12:21:02 UTC
*** Bug 181307 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-08-12 16:22:13 UTC
*** Bug 203521 has been marked as a duplicate of this bug. ***
Comment 9 caulier.gilles 2009-08-23 07:31:11 UTC
*** Bug 204803 has been marked as a duplicate of this bug. ***
Comment 10 Christophe Marin 2009-08-25 09:19:48 UTC
*** Bug 205029 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Feck 2009-08-30 14:00:48 UTC

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