Bug 207173 - Konqueror crashes on close tab (KonqMainWindow::slotPartActivated, KonqViewManager::doSetActivePart)
Summary: Konqueror crashes on close tab (KonqMainWindow::slotPartActivated, KonqViewMa...
Status: CLOSED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 208374 208466 209717 209869 209876 209911 209963 209976 209992 210022 210039 210160 210412 210563 210728 210770 210929 211315 212213 214183 217490 218017 219950 222025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-12 13:47 UTC by David Palacio
Modified: 2010-03-16 21:02 UTC (History)
24 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Palacio 2009-09-12 13:47:27 UTC
Application: konqueror (4.3.68 (KDE 4.3.68 (KDE 4.4 >= 20090907)))
KDE Version: 4.3.68 (KDE 4.3.68 (KDE 4.4 >= 20090907)) (Compiled from sources)
Qt Version: 4.5.1
Operating System: Linux 2.6.26-2-amd64 x86_64
Distribution: Debian GNU/Linux 5.0.3 (lenny)

What I was doing when the application crashed:
Konqueror crashes on some tab close. It is random, not reproducible with the same conditions.
Backtrace looks the same for me in bug #171179 (which does not seem like a duplicate of bug #173473 to me)

 -- Backtrace:
Application: Konqueror (kdeinit4), signal: Segmentation fault
[Current thread is 0 (LWP 9200)]

Thread 2 (Thread 0x4128d950 (LWP 9208)):
#0  0x00007f7e3f286b66 in poll () from /lib/libc.so.6
#1  0x00007f7e3e9156b9 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f7e3e9159ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f7e42ba950e in QEventDispatcherGlib::processEvents (this=0x3909760, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:326
#4  0x00007f7e42b7e722 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1093193824}) at kernel/qeventloop.cpp:149
#5  0x00007f7e42b7eaed in QEventLoop::exec (this=0x4128d0a0, flags={i = 1093193904}) at kernel/qeventloop.cpp:200
#6  0x00007f7e42a947e8 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f7e42b62168 in QInotifyFileSystemWatcherEngine::run (this=0x381c2f0) at io/qfilesystemwatcher_inotify.cpp:214
#8  0x00007f7e42a97732 in QThreadPrivate::start (arg=0x381c2f0) at thread/qthread_unix.cpp:189
#9  0x00007f7e42815fc7 in start_thread () from /lib/libpthread.so.0
#10 0x00007f7e3f28f5ad in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7e42f5e6f0 (LWP 9200)):
[KCrash Handler]
#5  KonqMainWindow::slotPartActivated (this=0x29c7520, part=0x5661d60) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqmainwindow.cpp:1978
#6  0x00007f7e364585c9 in KonqViewManager::doSetActivePart (this=0x2755080, part=0x5661d60) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqviewmanager.cpp:1039
#7  0x00007f7e4215c37e in KParts::PartManager::eventFilter (this=0x2755080, obj=<value optimized out>, ev=0x7fff4b08d210) at /home/kde/src/KDE/kdelibs/kparts/partmanager.cpp:282
#8  0x00007f7e42b7f24c in QCoreApplicationPrivate::sendThroughApplicationEventFilters (this=0x267e6a0, receiver=0x64b4b70, event=0x7fff4b08d210) at kernel/qcoreapplication.cpp:707
#9  0x00007f7e3fe90496 in QApplicationPrivate::notify_helper (this=0xffffffff, receiver=0x47aa290, e=0x2e12020) at kernel/qapplication.cpp:4032
#10 0x00007f7e3fe987ba in QApplication::notify (this=0x7fff4b090370, receiver=0x64b4b70, e=0x7fff4b08d210) at kernel/qapplication.cpp:4022
#11 0x00007f7e40fffe4b in KApplication::notify (this=0x7fff4b090370, receiver=0x64b4b70, event=0x7fff4b08d210) at /home/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#12 0x00007f7e42b7fe7c in QCoreApplication::notifyInternal (this=0x7fff4b090370, receiver=0x64b4b70, event=0x7fff4b08d210) at kernel/qcoreapplication.cpp:610
#13 0x00007f7e3fe96e5b in QApplicationPrivate::setFocusWidget (focus=0x64b4b70, reason=Qt::TabFocusReason) at kernel/qapplication.cpp:2098
#14 0x00007f7e3fedb765 in QWidget::setFocus (this=0x64b4b70, reason=Qt::TabFocusReason) at kernel/qwidget.cpp:5720
#15 0x00007f7e3fedba47 in QWidget::focusNextPrevChild (this=<value optimized out>, next=true) at kernel/qwidget.cpp:5863
#16 0x00007f7e2e61be7a in KHTMLView::focusNextPrevChild (this=0x2dde200, next=<value optimized out>) at /home/kde/src/KDE/kdelibs/khtml/khtmlview.cpp:2014
#17 0x00007f7e3fedfd0d in QWidgetPrivate::hide_helper (this=0x561bab0) at kernel/qwidget.cpp:6827
#18 0x00007f7e3fee6d80 in QWidget::setVisible (this=0x2dde200, visible=<value optimized out>) at kernel/qwidget.cpp:6984
#19 0x00007f7e2e64b232 in ~KHTMLPart (this=0x5661d60) at /usr/include/qt4/QtGui/qwidget.h:477
#20 0x00007f7e36453f53 in ~KonqView (this=0x57a99e0) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqview.cpp:132
#21 0x00007f7e36458c3f in KonqViewManager::removeTab (this=0x2755080, currentFrame=0x32d24a8, emitAboutToRemoveSignal=<value optimized out>)
    at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqviewmanager.cpp:400
#22 0x00007f7e364a1c7e in KonqMainWindow::slotRemoveTab (this=0x29c7520) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqmainwindow.cpp:2534
#23 0x00007f7e364a7495 in KonqMainWindow::qt_metacall (this=0x29c7520, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff4b08da10)
    at /home/kde/build/KDE/kdebase/apps/konqueror/src/konqmainwindow.moc:413
#24 0x00007f7e42b95892 in QMetaObject::activate (sender=0x2c41b30, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x0) at kernel/qobject.cpp:3120
#25 0x00007f7e404d9a47 in QAbstractButton::clicked (this=0xffffffff, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200
#26 0x00007f7e40234e8b in QAbstractButtonPrivate::emitClicked (this=0x2c44510) at widgets/qabstractbutton.cpp:543
#27 0x00007f7e40236b02 in QAbstractButtonPrivate::click (this=0x2c44510) at widgets/qabstractbutton.cpp:536
#28 0x00007f7e40236d55 in QAbstractButton::mouseReleaseEvent (this=0x2c41b30, e=0x7fff4b08e370) at widgets/qabstractbutton.cpp:1115
#29 0x00007f7e4030899a in QToolButton::mouseReleaseEvent (this=0xffffffff, e=0x47aa290) at widgets/qtoolbutton.cpp:709
#30 0x00007f7e3fee177f in QWidget::event (this=0x2c41b30, event=0x7fff4b08e370) at kernel/qwidget.cpp:7521
#31 0x00007f7e3fe9052d in QApplicationPrivate::notify_helper (this=0x267e6a0, receiver=0x2c41b30, e=0x7fff4b08e370) at kernel/qapplication.cpp:4057
#32 0x00007f7e3fe98f1a in QApplication::notify (this=<value optimized out>, receiver=0x2c41b30, e=0x7fff4b08e370) at kernel/qapplication.cpp:3759
#33 0x00007f7e40fffe4b in KApplication::notify (this=0x7fff4b090370, receiver=0x2c41b30, event=0x7fff4b08e370) at /home/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#34 0x00007f7e42b7fe7c in QCoreApplication::notifyInternal (this=0x7fff4b090370, receiver=0x2c41b30, event=0x7fff4b08e370) at kernel/qcoreapplication.cpp:610
#35 0x00007f7e3fe98168 in QApplicationPrivate::sendMouseEvent (receiver=0x2c41b30, event=0x7fff4b08e370, alienWidget=0x0, nativeWidget=0x2c41b30, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f7e408f9f50) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#36 0x00007f7e3ff02039 in QETWidget::translateMouseEvent (this=0x2c41b30, event=<value optimized out>) at kernel/qapplication_x11.cpp:4448
#37 0x00007f7e3ff00d7d in QApplication::x11ProcessEvent (this=0x7fff4b090370, event=0x7fff4b08fd40) at kernel/qapplication_x11.cpp:3566
#38 0x00007f7e3ff29504 in x11EventSourceDispatch (s=0x2682340, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#39 0x00007f7e3e91216a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0x00007f7e3e9157e8 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x00007f7e3e9159ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#42 0x00007f7e42ba94ef in QEventDispatcherGlib::processEvents (this=0x267d860, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#43 0x00007f7e3ff28caf in QGuiEventDispatcherGlib::processEvents (this=0xffffffff, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#44 0x00007f7e42b7e722 in QEventLoop::processEvents (this=<value optimized out>, flags={i = 1258881072}) at kernel/qeventloop.cpp:149
#45 0x00007f7e42b7eaed in QEventLoop::exec (this=0x7fff4b090070, flags={i = 1258881152}) at kernel/qeventloop.cpp:200
#46 0x00007f7e42b80db4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#47 0x00007f7e364d39c9 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at /home/kde/src/KDE/kdebase/apps/konqueror/src/konqmain.cpp:257
#48 0x00000000004074df in launch (argc=2, _name=0x263d3a8 "konqueror", args=<value optimized out>, cwd=0x263d433 "/home/david", envc=42, envs=0x263da17 "", reset_env=true, tty=0x0, 
    avoid_loops=false, startup_id_str=0x263da20 "0") at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:705
#49 0x0000000000407cb8 in handle_launcher_request (sock=11, who=<value optimized out>) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:1197
#50 0x000000000040822e in handle_requests (waitForPid=0) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:1381
#51 0x000000000040895b in main (argc=4, argv=0x7fff4b091b08, envp=0x7fff4b091b30) at /home/kde/src/KDE/kdelibs/kinit/kinit.cpp:1825

This bug may be a duplicate of or related to bug 171179.

Reported using DrKonqi
Comment 1 Dario Andres 2009-09-12 17:03:03 UTC
Bug 194850 seems to be related to this too. 
Thanks
Comment 2 András Manţia 2009-09-14 13:44:50 UTC
I can confirm it, I saw two times in the past two days.
Comment 3 Dario Massarin 2009-09-24 12:40:54 UTC
*** Bug 208374 has been marked as a duplicate of this bug. ***
Comment 4 Tommi Tervo 2009-09-25 09:03:49 UTC
*** Bug 208466 has been marked as a duplicate of this bug. ***
Comment 5 David Faure 2009-09-25 17:44:38 UTC
SVN commit 1028036 by dfaure:

Hide the whole widget, not just the view and the viewport. Otherwise the findbar stays around,
receives focus, and this makes the partmanager activate the part that we're currently deleting...
BUG: 207173


 M  +1 -2      khtml_part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1028036
Comment 6 David Faure 2009-10-07 10:14:42 UTC
*** Bug 209717 has been marked as a duplicate of this bug. ***
Comment 7 David Faure 2009-10-08 16:05:21 UTC
*** Bug 209869 has been marked as a duplicate of this bug. ***
Comment 8 David Faure 2009-10-08 16:05:32 UTC
SVN commit 1032787 by dfaure:

Backport fix for 207173/209876: Hide the whole widget, not just the view and the
viewport. Otherwise the findbar stays around, receives focus, and this makes the
partmanager activate the part that we're currently deleting...
Forgot to do this before 4.3.2, so the fix will be in 4.3.3 :(
CCBUG: 207173


 M  +1 -2      khtml_part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1032787
Comment 9 David Faure 2009-10-08 16:05:50 UTC
*** Bug 209876 has been marked as a duplicate of this bug. ***
Comment 10 David Faure 2009-10-08 21:21:37 UTC
*** Bug 209911 has been marked as a duplicate of this bug. ***
Comment 11 Tommi Tervo 2009-10-09 10:13:35 UTC
*** Bug 209963 has been marked as a duplicate of this bug. ***
Comment 12 Tommi Tervo 2009-10-09 12:44:41 UTC
*** Bug 209976 has been marked as a duplicate of this bug. ***
Comment 13 David Faure 2009-10-09 16:07:21 UTC
*** Bug 209992 has been marked as a duplicate of this bug. ***
Comment 14 David Faure 2009-10-09 23:04:38 UTC
*** Bug 210022 has been marked as a duplicate of this bug. ***
Comment 15 Frank Reininghaus 2009-10-10 10:51:12 UTC
*** Bug 210039 has been marked as a duplicate of this bug. ***
Comment 16 Dimitrios Glentadakis 2009-10-11 09:21:44 UTC
*** Bug 210160 has been marked as a duplicate of this bug. ***
Comment 17 jensmh 2009-10-13 10:16:46 UTC
*** Bug 210412 has been marked as a duplicate of this bug. ***
Comment 18 Tommi Tervo 2009-10-14 16:50:32 UTC
*** Bug 210563 has been marked as a duplicate of this bug. ***
Comment 19 David Faure 2009-10-16 11:04:57 UTC
*** Bug 210770 has been marked as a duplicate of this bug. ***
Comment 20 Dario Andres 2009-10-18 02:01:28 UTC
*** Bug 210728 has been marked as a duplicate of this bug. ***
Comment 21 Frank Reininghaus 2009-10-18 10:58:12 UTC
*** Bug 210929 has been marked as a duplicate of this bug. ***
Comment 22 Frank Reininghaus 2009-10-20 22:31:12 UTC
*** Bug 211239 has been marked as a duplicate of this bug. ***
Comment 23 Frank Reininghaus 2009-10-21 14:35:28 UTC
*** Bug 211315 has been marked as a duplicate of this bug. ***
Comment 24 Frank Reininghaus 2009-10-28 19:41:30 UTC
*** Bug 212213 has been marked as a duplicate of this bug. ***
Comment 25 Dario Andres 2009-11-11 22:44:26 UTC
*** Bug 214183 has been marked as a duplicate of this bug. ***
Comment 26 FiNeX 2009-12-05 21:23:02 UTC
*** Bug 217490 has been marked as a duplicate of this bug. ***
Comment 27 Frank Reininghaus 2009-12-09 19:12:55 UTC
*** Bug 218017 has been marked as a duplicate of this bug. ***
Comment 28 David Faure 2009-12-24 14:51:54 UTC
*** Bug 219950 has been marked as a duplicate of this bug. ***
Comment 29 Maksim Orlovich 2010-01-10 15:35:42 UTC
*** Bug 222025 has been marked as a duplicate of this bug. ***
Comment 30 David Faure 2010-03-16 21:02:49 UTC
SVN commit 1104129 by dfaure:

Move up the fix for 207173 (crash when closing khtml tab with focus in findbar) from khtml to konqueror,
so that it also fixes 213876 (crash when closing okularpart tab with focus in sidebar) :
unregister part from partmanager before deleting it.
CCBUG: 207173
BUG: 213876
Fixed for: 4.4.2


 M  +3 -0      kdebase/apps/konqueror/src/konqview.cpp  
 M  +1 -8      kdelibs/khtml/khtml_part.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1104129