Bug 390736 - Crash when swapping tabs
Summary: Crash when swapping tabs
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 17.08.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
: 364624 373538 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-19 15:17 UTC by Pedro Ferreira
Modified: 2021-01-02 12:55 UTC (History)
2 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 Pedro Ferreira 2018-02-19 15:17:24 UTC
Application: konsole (17.08.3)
 (Compiled from sources)
Qt Version: 5.7.1
Frameworks Version: 5.40.0
Operating System: Linux 4.14.8-gentoo-r1 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

Just clicked the Konsole tab for the console I wanted to activate. I had a different console where my build completed and wanted to swap to where my GDB sessions would be restarted.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
[KCrash Handler]
#6  Konsole::Session::sessionId (this=this@entry=0x0) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/Session.cpp:927
#7  0x00007f55250976e8 in Konsole::ViewManager::createTerminalDisplay (this=this@entry=0x561362ce8ef0, session=session@entry=0x0) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/ViewManager.cpp:843
#8  0x00007f552509b24f in Konsole::ViewManager::createView (this=this@entry=0x561362ce8ef0, session=session@entry=0x0, container=0x561363a6e820, index=index@entry=-1) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/ViewManager.cpp:586
#9  0x00007f552509ceb9 in Konsole::ViewManager::createView (this=0x561362ce8ef0, session=session@entry=0x0) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/ViewManager.cpp:646
#10 0x00007f55256cb829 in Konsole::MainWindow::createView (this=this@entry=0x561362813f30, session=session@entry=0x0) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/MainWindow.cpp:543
#11 0x00007f55256c58d0 in Konsole::Application::detachView (this=<optimized out>, session=0x0) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/Application.cpp:188
#12 0x00007f55220d8506 in QtPrivate::QSlotObjectBase::call (a=0x7ffc457b99d0, r=0x7ffc457badd0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#13 QMetaObject::activate (sender=0x5613622b24e0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc457b99d0) at kernel/qobject.cpp:3723
#14 0x00007f55220d8a87 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f55258f6aa0 <Konsole::MainWindow::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc457b99d0) at kernel/qobject.cpp:3602
#15 0x00007f55256e7212 in Konsole::MainWindow::viewDetached (this=<optimized out>, _t1=<optimized out>) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3_build/src/kdeinit_konsole_autogen/EWIEGA46WW/moc_MainWindow.cpp:273
#16 0x00007f55220d8506 in QtPrivate::QSlotObjectBase::call (a=0x7ffc457b9af0, r=0x5613622b24e0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#17 QMetaObject::activate (sender=sender@entry=0x5613623580b0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc457b9af0) at kernel/qobject.cpp:3723
#18 0x00007f55220d8a87 in QMetaObject::activate (sender=sender@entry=0x5613623580b0, m=m@entry=0x7f55252f8900 <Konsole::ViewManager::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc457b9af0) at kernel/qobject.cpp:3602
#19 0x00007f55250ad372 in Konsole::ViewManager::viewDetached (this=this@entry=0x5613623580b0, _t1=<optimized out>) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3_build/src/konsoleprivate_autogen/EWIEGA46WW/moc_ViewManager.cpp:466
#20 0x00007f552509c12d in Konsole::ViewManager::detachView (this=0x5613623580b0, container=0x5613624f1480, widgetView=<optimized out>) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/ViewManager.cpp:382
#21 0x00007f55220d8506 in QtPrivate::QSlotObjectBase::call (a=0x7ffc457b9c80, r=0x5613623580b0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#22 QMetaObject::activate (sender=sender@entry=0x5613624f1480, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc457b9c80) at kernel/qobject.cpp:3723
#23 0x00007f55220d8a87 in QMetaObject::activate (sender=sender@entry=0x5613624f1480, m=m@entry=0x7f55252f4620 <Konsole::TabbedViewContainer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc457b9c80) at kernel/qobject.cpp:3602
#24 0x00007f55250ad208 in Konsole::TabbedViewContainer::detachTab (this=this@entry=0x5613624f1480, _t1=<optimized out>, _t1@entry=0x5613624f1480, _t2=<optimized out>, _t2@entry=0x561362700a80) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3_build/src/konsoleprivate_autogen/EWIEGA46WW/moc_ViewContainer.cpp:537
#25 0x00007f55250937ce in Konsole::TabbedViewContainer::startTabDrag (this=0x5613624f1480, tab=<optimized out>) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/ViewContainer.cpp:545
#26 0x00007f55220d8506 in QtPrivate::QSlotObjectBase::call (a=0x7ffc457b9e40, r=0x5613624f1480, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#27 QMetaObject::activate (sender=sender@entry=0x5613624f8980, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc457b9e40) at kernel/qobject.cpp:3723
#28 0x00007f55220d8a87 in QMetaObject::activate (sender=sender@entry=0x5613624f8980, m=m@entry=0x7f55252f8940 <Konsole::ViewContainerTabBar::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc457b9e40) at kernel/qobject.cpp:3602
#29 0x00007f55250ad27e in Konsole::ViewContainerTabBar::initiateDrag (this=this@entry=0x5613624f8980, _t1=<optimized out>) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3_build/src/konsoleprivate_autogen/EWIEGA46WW/moc_ViewContainerTabBar.cpp:160
#30 0x00007f5525096303 in Konsole::ViewContainerTabBar::mouseMoveEvent (this=0x5613624f8980, event=0x7ffc457ba300) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/ViewContainerTabBar.cpp:87
#31 0x00007f5522b9a6e8 in QWidget::event (this=this@entry=0x5613624f8980, event=event@entry=0x7ffc457ba300) at kernel/qwidget.cpp:9161
#32 0x00007f5522cdbb33 in QTabBar::event (this=0x5613624f8980, event=0x7ffc457ba300) at widgets/qtabbar.cpp:1658
#33 0x00007f5522b5654c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5613624f8980, e=0x7ffc457ba300) at kernel/qapplication.cpp:3799
#34 0x00007f5522b5e27d in QApplication::notify (this=<optimized out>, receiver=0x5613624f8980, e=0x7ffc457ba300) at kernel/qapplication.cpp:3273
#35 0x00007f55220b29ea in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x5613624f8980, event=event@entry=0x7ffc457ba300) at kernel/qcoreapplication.cpp:988
#36 0x00007f5522b5cd4d in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#37 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x5613624f8980, event=event@entry=0x7ffc457ba300, alienWidget=alienWidget@entry=0x5613624f8980, nativeWidget=0x5613622b24e0, buttonDown=buttonDown@entry=0x7f5523034cb0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2771
#38 0x00007f5522bb3fbe in QWidgetWindow::handleMouseEvent (this=this@entry=0x561362373070, event=event@entry=0x7ffc457ba710) at kernel/qwidgetwindow.cpp:617
#39 0x00007f5522bb67fb in QWidgetWindow::event (this=0x561362373070, event=0x7ffc457ba710) at kernel/qwidgetwindow.cpp:239
#40 0x00007f5522b5654c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x561362373070, e=0x7ffc457ba710) at kernel/qapplication.cpp:3799
#41 0x00007f5522b5d761 in QApplication::notify (this=0x5613622414c0, receiver=0x561362373070, e=0x7ffc457ba710) at kernel/qapplication.cpp:3556
#42 0x00007f55220b29ea in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x561362373070, event=event@entry=0x7ffc457ba710) at kernel/qcoreapplication.cpp:988
#43 0x00007f552266fe03 in QCoreApplication::sendSpontaneousEvent (event=0x7ffc457ba710, receiver=0x561362373070) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#44 QGuiApplicationPrivate::processMouseEvent (e=e@entry=0x5613636b2630) at kernel/qguiapplication.cpp:1903
#45 0x00007f552266f850 in QGuiApplicationPrivate::processMouseEvent (e=0x5613636b2630) at kernel/qguiapplication.cpp:1805
#46 0x00007f5522671885 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x5613636b2630) at kernel/qguiapplication.cpp:1687
#47 0x00007f5522653ecb in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:659
#48 0x00007f5518f57850 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:76
#49 0x00007f551db684d7 in g_main_dispatch (context=0x7f55100016f0) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3203
#50 g_main_context_dispatch (context=context@entry=0x7f55100016f0) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3856
#51 0x00007f551db68708 in g_main_context_iterate (context=context@entry=0x7f55100016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3929
#52 0x00007f551db687ac in g_main_context_iteration (context=0x7f55100016f0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3990
#53 0x00007f55220fd5bf in QEventDispatcherGlib::processEvents (this=0x56136227d800, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#54 0x00007f55220b1a8a in QEventLoop::exec (this=this@entry=0x7ffc457bac80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#55 0x00007f55220b919d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#56 0x00007f55226679fc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1633
#57 0x00007f5522b564a5 in QApplication::exec () at kernel/qapplication.cpp:2975
#58 0x00007f55256d828e in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/konsole-17.08.3/work/konsole-17.08.3/src/main.cpp:190
#59 0x00007f5525322541 in __libc_start_main (main=0x5613610937a0 <main>, argc=3, argv=0x7ffc457baf18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc457baf08) at ../csu/libc-start.c:295
#60 0x00005613610937da in _start ()

Possible duplicates by query: bug 388355, bug 383829.

Reported using DrKonqi
Comment 1 Christoph Feck 2018-03-01 03:10:48 UTC
*** Bug 373538 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2018-03-01 03:11:02 UTC
*** Bug 364624 has been marked as a duplicate of this bug. ***
Comment 3 Kurt Hindenburg 2018-03-08 03:57:27 UTC
I can't reproduce but there are a number of these same reports - the session is 0x0 which is causing these crashes.
Comment 4 Kurt Hindenburg 2018-03-08 04:04:33 UTC
Git commit b85c469efc606f4777aabc62d637733959dfe664 by Kurt Hindenburg.
Committed on 08/03/2018 at 04:00.
Pushed by hindenburg into branch 'master'.

Check for valid session when detaching to prevent crashes

It is unclear what causes the session to be invalid when detaching
tabs, but there are enough BRs with the same backtraces to confirm it.
For now, check to prevent crashes.

M  +6    -1    src/ViewManager.cpp

https://commits.kde.org/konsole/b85c469efc606f4777aabc62d637733959dfe664
Comment 5 Justin Zobel 2020-12-17 05:35:42 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 6 Pedro Ferreira 2020-12-17 11:03:50 UTC
Hi!
This report originated from my work computer. Unfortunately with the present events of 2020, I do not have GUI access to said computer (I have to SSH in).
Thus, I am unable to give the feedback you require.

That being said, I've been using KDE and Konsole since the report, and I has never crashed on me again. I suspect this issue may have been fixed by someone in the meantime.

If you're doing bug-cleanup, my standing as the original reporter is that I'm happy for this to be closed as resolved. Should I find any other crashes when I'm back in the office, I shall report :)

My thanks to all the KDE team and happy holidays!
Comment 7 Bug Janitor Service 2021-01-01 04:38:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Pedro Ferreira 2021-01-02 12:55:47 UTC
I am unable to replicate this.