Bug 310733

Summary: Konsole Blows Up Randomly [Konsole::Session::closeInForceWay]
Product: [Applications] konsole Reporter: yo
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: a.samirh78, khindenburg
Priority: NOR    
Version: 2.9.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description yo 2012-11-26 20:04:57 UTC
Application: konsole (2.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.3
Operating System: Linux 3.5.0-19-generic i686
Distribution: Ubuntu 12.10

-- Information about the crash:
Konsole encountered an immediate segmentation fault after attempting to close it and a few windows. I had a dual monitor setup.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb479e740 (LWP 2771))]

Thread 2 (Thread 0xb1ac8b40 (LWP 2784)):
#0  0xb7702424 in __kernel_vsyscall ()
#1  0xb75f95f0 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb54d974b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb54cad00 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb54cae61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb6bde99f in QEventDispatcherGlib::processEvents (this=0xb1100468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0xb6bab26c in QEventLoop::processEvents (this=this@entry=0xb1ac8228, flags=...) at kernel/qeventloop.cpp:149
#7  0xb6bab561 in QEventLoop::exec (this=0xb1ac8228, flags=...) at kernel/qeventloop.cpp:204
#8  0xb6a9666c in QThread::exec (this=0x9489aa8) at thread/qthread.cpp:501
#9  0xb6b897bd in QInotifyFileSystemWatcherEngine::run (this=0x9489aa8) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6a99a58 in QThreadPrivate::start (arg=0x9489aa8) at thread/qthread_unix.cpp:338
#11 0xb559ad4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb7607d3e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb479e740 (LWP 2771)):
[KCrash Handler]
#7  Konsole::Session::closeInForceWay (this=0x0) at ../../src/Session.cpp:782
#8  0xb74acf4a in Konsole::SessionController::closeSession (this=0x96ba0e0) at ../../src/SessionController.cpp:798
#9  0xb74d08f1 in Konsole::ViewManager::closeTabFromContainer (this=this@entry=0x94f9e88, container=0x9613540, tab=0x96b9998) at ../../src/ViewManager.cpp:1044
#10 0xb74d6b8d in qt_static_metacall (_a=0xbfd15314, _id=46, _o=0x94f9e88, _c=<optimized out>) at ./ViewManager.moc:187
#11 Konsole::ViewManager::qt_static_metacall (_o=0x94f9e88, _c=QMetaObject::InvokeMetaMethod, _id=46, _a=0xbfd15314) at ./ViewManager.moc:129
#12 0xb6bc4ed6 in QMetaObject::activate (sender=0x9613540, m=0xb7512910 <Konsole::TabbedViewContainer::staticMetaObject>, local_signal_index=1, argv=0xbfd15314) at kernel/qobject.cpp:3547
#13 0xb74ccd8d in Konsole::TabbedViewContainer::closeTab (this=this@entry=0x9613540, _t1=_t1@entry=0x9613540, _t2=0x96b9998) at ./ViewContainer.moc:308
#14 0xb74ccdee in Konsole::TabbedViewContainer::tabContextMenuCloseTab (this=0x9613540) at ../../src/ViewContainer.cpp:564
#15 0xb6bc4ed6 in QMetaObject::activate (sender=0x9614c68, m=0xb6a103b8 <QAction::staticMetaObject>, local_signal_index=1, argv=0xbfd15438) at kernel/qobject.cpp:3547
#16 0xb609510d in QAction::triggered (this=this@entry=0x9614c68, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#17 0xb60953ac in QAction::activate (this=0x9614c68, event=QAction::Trigger) at kernel/qaction.cpp:1257
#18 0xb6547225 in QMenuPrivate::activateCausedStack (this=0x9614460, causedStack=..., action=0x9614c68, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#19 0xb654e326 in QMenuPrivate::activateAction (this=0x9614460, action=0x9614c68, action_e=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1120
#20 0xb654f275 in QMenu::mouseReleaseEvent (this=0x9608640, e=0xbfd15cc4) at widgets/qmenu.cpp:2360
#21 0xb7294f8c in KMenu::mouseReleaseEvent (this=0x9608640, e=0xbfd15cc4) at ../../kdeui/widgets/kmenu.cpp:464
#22 0xb60f56df in QWidget::event (this=0x9608640, event=0xbfd15cc4) at kernel/qwidget.cpp:8371
#23 0xb654f76c in QMenu::event (this=0x9608640, e=0xbfd15cc4) at widgets/qmenu.cpp:2469
#24 0xb609c39c in QApplicationPrivate::notify_helper (this=0x91bc0c0, receiver=0x9608640, e=0xbfd15cc4) at kernel/qapplication.cpp:4562
#25 0xb60a1892 in QApplication::notify (this=0x91bc0c0, receiver=0x9608640, e=0xbfd15cc4) at kernel/qapplication.cpp:4105
#26 0xb71bce91 in KApplication::notify (this=0xbfd173fc, receiver=0x9608640, event=0xbfd15cc4) at ../../kdeui/kernel/kapplication.cpp:311
#27 0xb6bac78e in QCoreApplication::notifyInternal (this=0xbfd173fc, receiver=0x9608640, event=0xbfd15cc4) at kernel/qcoreapplication.cpp:915
#28 0xb609d206 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#29 QApplicationPrivate::sendMouseEvent (receiver=0x9608640, event=0xbfd15cc4, alienWidget=0x0, nativeWidget=0x9608640, buttonDown=0xb6a2dd14 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#30 0xb612891f in QETWidget::translateMouseEvent (this=0x9608640, event=0xbfd160ec) at kernel/qapplication_x11.cpp:4556
#31 0xb6127705 in QApplication::x11ProcessEvent (this=0xbfd173fc, event=0xbfd160ec) at kernel/qapplication_x11.cpp:3737
#32 0xb6152dc4 in x11EventSourceDispatch (s=0x91bdd00, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#33 0xb54ca9e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#34 0xb54cad80 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#35 0xb54cae61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#36 0xb6bde981 in QEventDispatcherGlib::processEvents (this=0x912aea0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#37 0xb61529aa in QGuiEventDispatcherGlib::processEvents (this=0x912aea0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0xb6bab26c in QEventLoop::processEvents (this=this@entry=0xbfd163d8, flags=...) at kernel/qeventloop.cpp:149
#39 0xb6bab561 in QEventLoop::exec (this=0xbfd163d8, flags=...) at kernel/qeventloop.cpp:204
#40 0xb654bb27 in QMenu::exec (this=0x9608640, p=..., action=0x0) at widgets/qmenu.cpp:2113
#41 0xb74cc4fb in Konsole::TabbedViewContainer::openTabContextMenu (this=0x9613540, index=1, pos=...) at ../../src/ViewContainer.cpp:558
#42 0xb6bc4ed6 in QMetaObject::activate (sender=0x9613238, m=0xb7408510 <KTabBar::staticMetaObject>, local_signal_index=0, argv=0xbfd16514) at kernel/qobject.cpp:3547
#43 0xb72b80dd in KTabBar::contextMenu (this=this@entry=0x9613238, _t1=_t1@entry=1, _t2=...) at ./ktabbar.moc:138
#44 0xb72b82a5 in KTabBar::mousePressEvent (this=0x9613238, event=0xbfd16c14) at ../../kdeui/widgets/ktabbar.cpp:103
#45 0xb60f5989 in QWidget::event (this=0x9613238, event=0xbfd16c14) at kernel/qwidget.cpp:8367
#46 0xb6575190 in QTabBar::event (this=0x9613238, event=0xbfd16c14) at widgets/qtabbar.cpp:1514
#47 0xb609c39c in QApplicationPrivate::notify_helper (this=0x91bc0c0, receiver=0x9613238, e=0xbfd16c14) at kernel/qapplication.cpp:4562
#48 0xb60a1892 in QApplication::notify (this=0x91bc0c0, receiver=0x9613238, e=0xbfd16c14) at kernel/qapplication.cpp:4105
#49 0xb71bce91 in KApplication::notify (this=0xbfd173fc, receiver=0x9613238, event=0xbfd16c14) at ../../kdeui/kernel/kapplication.cpp:311
#50 0xb6bac78e in QCoreApplication::notifyInternal (this=0xbfd173fc, receiver=0x9613238, event=0xbfd16c14) at kernel/qcoreapplication.cpp:915
#51 0xb609d206 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#52 QApplicationPrivate::sendMouseEvent (receiver=0x9613238, event=0xbfd16c14, alienWidget=0x0, nativeWidget=0x9613238, buttonDown=0xb6a2dd14 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#53 0xb6128a75 in QETWidget::translateMouseEvent (this=0x9613238, event=0xbfd1703c) at kernel/qapplication_x11.cpp:4622
#54 0xb6127705 in QApplication::x11ProcessEvent (this=0xbfd173fc, event=0xbfd1703c) at kernel/qapplication_x11.cpp:3737
#55 0xb6152dc4 in x11EventSourceDispatch (s=0x91bdd00, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#56 0xb54ca9e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#57 0xb54cad80 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#58 0xb54cae61 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#59 0xb6bde981 in QEventDispatcherGlib::processEvents (this=0x912aea0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#60 0xb61529aa in QGuiEventDispatcherGlib::processEvents (this=0x912aea0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#61 0xb6bab26c in QEventLoop::processEvents (this=this@entry=0xbfd17338, flags=...) at kernel/qeventloop.cpp:149
#62 0xb6bab561 in QEventLoop::exec (this=0xbfd17338, flags=...) at kernel/qeventloop.cpp:204
#63 0xb6bb0cba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#64 0xb6099fc4 in QApplication::exec () at kernel/qapplication.cpp:3823
#65 0xb76f45d0 in kdemain (argc=1, argv=0xbfd174e4) at ../../src/main.cpp:85
#66 0x0804854b in main (argc=1, argv=0xbfd174e4) at konsole_dummy.cpp:3

Reported using DrKonqi
Comment 1 Kurt Hindenburg 2013-08-17 23:37:23 UTC
Can you still reproduce?  if you run it from another terminal it should show some output.  Also what do you have running when you try to close Konsole? (bash/zsh/mc/...)
Comment 2 Christoph Feck 2013-08-30 01:23:43 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 yo 2013-08-31 04:41:29 UTC
I was using bash and it seems like a one-time bug, I can't reproduce this bug.
Comment 4 Ahmad Samir 2018-03-16 20:38:19 UTC
KDE4/konsole is no longer maintained.