Bug 373524 - Konsole crashes when closing a tab using a profile that launches autossh
Summary: Konsole crashes when closing a tab using a profile that launches autossh
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 16.08.3
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-12-11 14:04 UTC by René van Buuren
Modified: 2017-02-23 16:24 UTC (History)
0 users

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 René van Buuren 2016-12-11 14:04:52 UTC
Application: konsole (16.08.3)

Qt Version: 5.7.0
Frameworks Version: 5.28.0
Operating System: Linux 4.4.0-53-generic x86_64
Distribution: KDE neon User Edition 5.8

-- Information about the crash:
- Custom settings of the application:
I use Konsole profiles that are set to launch autossh to connect to a particular server.

- What I was doing when the application crashed:
Whenever I try to close a tab that was launched with one of these autossh profiles, Konsole crashes in its entirety, killing the window with all tabs inside of it, including local ones that had nothing to do with autossh.

(This problem does not occur when I change autossh to regular ssh in the profiles, but I depend on the measures autossh takes in the background to avoid connections getting dropped and to reopen them when they do.)

The crash can be reproduced every time.

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

Thread 3 (Thread 0x7f9b3b418700 (LWP 20906)):
#0  0x00007f9b4e3dab5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f9b4467b861 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#2  0x00007f9b4466ce11 in pa_mainloop_poll () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007f9b4466d4ae in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007f9b4466d560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007f9b4467b7a9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007f9b3f89e078 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-8.0.so
#7  0x00007f9b476476ba in start_thread (arg=0x7f9b3b418700) at pthread_create.c:333
#8  0x00007f9b4e3e682d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f9b3924c700 (LWP 31527)):
#0  0x00007f9b4e3d669d in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f9b45a2c740 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9b459e8e84 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9b459e9340 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9b459e94ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9b4afe221f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9b4af8ccea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9b4adb1fb4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f9b4e9f77a5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007f9b4adb6b98 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f9b476476ba in start_thread (arg=0x7f9b3924c700) at pthread_create.c:333
#11 0x00007f9b4e3e682d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f9b4e9238c0 (LWP 31506)):
[KCrash Handler]
#6  0x00007f9b4e026270 in ?? () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.16
#7  0x00007f9b4e048fac in Konsole::Session::getDynamicTitle() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.16
#8  0x00007f9b4e052ea3 in Konsole::SessionController::snapshot() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.16
#9  0x00007f9b4afb9e76 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f9b4afc6418 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f9b4afba9d3 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f9b4bb0e89c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f9b4bb16296 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f9b4af8ecf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f9b4afe116e in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f9b4afe16a1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f9b459e91a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f9b459e9400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f9b459e94ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#20 0x00007f9b4afe221f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f9b4af8ccea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f9b4bcf86b7 in QDialog::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f9b4c791dfe in KMessageBox::createKMessageBox(QDialog*, QDialogButtonBox*, QIcon const&, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&, QMessageBox::Icon) () from /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5
#24 0x00007f9b4c7928b7 in KMessageBox::createKMessageBox(QDialog*, QDialogButtonBox*, QMessageBox::Icon, QString const&, QStringList const&, QString const&, bool*, QFlags<KMessageBox::Option>, QString const&) () from /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5
#25 0x00007f9b4c793dc2 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5
#26 0x00007f9b4c7940dc in KMessageBox::warningYesNo(QWidget*, QString const&, QString const&, KGuiItem const&, KGuiItem const&, QString const&, QFlags<KMessageBox::Option>) () from /usr/lib/x86_64-linux-gnu/libKF5WidgetsAddons.so.5
#27 0x00007f9b4e05444b in Konsole::SessionController::confirmForceClose() const () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.16
#28 0x00007f9b4e04fc0e in Konsole::SessionController::closeSession() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.16
#29 0x00007f9b4afb9e76 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f9b4e09083b in ?? () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.16
#31 0x00007f9b4afb9e76 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f9b4bbf4192 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007f9b4bbf43e4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007f9b4bbf60b7 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007f9b4bbf6234 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007f9b4bcc079a in QToolButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f9b4bb55398 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007f9b4bcc0879 in QToolButton::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f9b4bb0e89c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007f9b4bb16b35 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f9b4af8ecf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f9b4bb1585f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007f9b4bb6f090 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007f9b4bb71863 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007f9b4bb0e89c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007f9b4bb16296 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007f9b4af8ecf8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#48 0x00007f9b4b5740a0 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#49 0x00007f9b4b575fa5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#50 0x00007f9b4b553e6b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#51 0x00007f9b3d9a5710 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#52 0x00007f9b459e91a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#53 0x00007f9b459e9400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007f9b459e94ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007f9b4afe221f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#56 0x00007f9b4af8ccea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#57 0x00007f9b4af952fc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#58 0x00007f9b4e6d0bf5 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_konsole.so
#59 0x00007f9b4e300830 in __libc_start_main (main=0x4006b0, argc=1, argv=0x7ffc3b383f68, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc3b383f58) at ../csu/libc-start.c:291
#60 0x00000000004006e9 in _start ()

Possible duplicates by query: bug 372808, bug 372620, bug 372619, bug 372593, bug 372401.

Reported using DrKonqi
Comment 1 Kurt Hindenburg 2017-02-12 00:44:40 UTC
I'd be interested if you still have issues w/ a newer release - a number of bugs were fixed in 16.12.x and later
Comment 2 René van Buuren 2017-02-23 16:24:16 UTC
(In reply to Kurt Hindenburg from comment #1)
> I'd be interested if you still have issues w/ a newer release - a number of
> bugs were fixed in 16.12.x and later

I'm now on 16.12.2, and this does seem to have been fixed. Konsole now gives the appropriate warning about killing autossh and no longer crashes. Thanks :)