Bug 460434

Summary: konsole crashes after editing when vim is opened from gui apps (Autokey, Dolphin)
Product: [Applications] konsole Reporter: Jeff Tratt <kdebugs.wxdrr>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: crash CC: justin.zobel
Priority: NOR Keywords: drkonqi
Version: 22.08.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 22.12.0
Sentry Crash Report:

Description Jeff Tratt 2022-10-14 14:00:41 UTC
Application: konsole (22.08.1)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.15.0-50-generic x86_64
Windowing System: X11
Distribution: KDE neon User - 5.26
DrKonqi: 5.26.0 [KCrashBackend]

-- Information about the crash:
Autokey has link to open script in external edit which open vim in konsole for me. Closing vim (:qa) closes konsole fine, but drkonqi crash dialog pops up. Same when "open with vim" from Dolphin. Everything works fine and no data loss, just a drkonqi crash report dialog pops up.

The crash can be reproduced every time.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault

[New LWP 11431]
[New LWP 11433]
[New LWP 11434]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f03550ee99f in __GI___poll (fds=0x7fff5cafed38, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
python sentry-sdk not installed :(

[Current thread is 1 (Thread 0x7f034fb009c0 (LWP 11430))]

Thread 4 (Thread 0x7f034cbd8700 (LWP 11434)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564a6dd06cc8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564a6dd06c78, cond=0x564a6dd06ca0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564a6dd06ca0, mutex=0x564a6dd06c78) at pthread_cond_wait.c:647
#3  0x00007f034663a5eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f034663a1eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f0353fca609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f03550fb133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f034d548700 (LWP 11433)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564a6dddc868) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x564a6dddc818, cond=0x564a6dddc840) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x564a6dddc840, mutex=0x564a6dddc818) at pthread_cond_wait.c:647
#3  0x00007f034663a5eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f034663a1eb in ?? () from /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f0353fca609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f03550fb133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f034ed04700 (LWP 11431)):
#0  0x00007f03550ee99f in __GI___poll (fds=0x7f03480053c0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f035360d36e in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f035360d4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f03556c1b9b in QEventDispatcherGlib::processEvents (this=0x7f0348000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f0355665b3b in QEventLoop::exec (this=this@entry=0x7f034ed03bb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f035547f342 in QThread::exec (this=this@entry=0x7f035453ad80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f03544b6f4b in QDBusConnectionManager::run (this=0x7f035453ad80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007f0355480543 in QThreadPrivate::start (arg=0x7f035453ad80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:330
#8  0x00007f0353fca609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f03550fb133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f034fb009c0 (LWP 11430)):
[KCrash Handler]
#4  0x00007f03569f5067 in ?? () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#5  0x00007f0356aa5f19 in Konsole::SessionManager::sessionProfileCommandReceived(Konsole::Session*, QString const&) () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#6  0x00007f035569e2f2 in QtPrivate::QSlotObjectBase::call (a=0x7fff5caffa30, r=0x7f0356b38540, this=0x564a6e0103f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x564a6e283ae0, signal_index=16, argv=0x7fff5caffa30) at kernel/qobject.cpp:3919
#8  0x00007f0356a7e9f9 in Konsole::Session::profileChangeCommandReceived(QString const&) () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#9  0x00007f0356a84554 in Konsole::Session::setSessionAttribute(int, QString const&) () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#10 0x00007f035569e2f2 in QtPrivate::QSlotObjectBase::call (a=0x7fff5caffbb0, r=0x564a6e283ae0, this=0x564a6e2ce500) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x564a6e2cbe40, signal_index=12, argv=0x7fff5caffbb0) at kernel/qobject.cpp:3919
#12 0x00007f03569d606a in Konsole::Emulation::sessionAttributeChanged(int, QString const&) () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#13 0x00007f0356a17872 in Konsole::Vt102Emulation::updateSessionAttributes() () from /usr/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#14 0x00007f035569e2f2 in QtPrivate::QSlotObjectBase::call (a=0x7fff5caffd50, r=0x564a6e2cbe40, this=0x564a6e1387b0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false> (sender=0x564a6e2ce260, signal_index=3, argv=0x7fff5caffd50) at kernel/qobject.cpp:3919
#16 0x00007f0355697587 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f0355903c80 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff5caffd50) at kernel/qobject.cpp:3979
#17 0x00007f03556a2e8e in QTimer::timeout (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#18 0x00007f0355694c25 in QObject::event (this=0x564a6e2ce260, e=0x7fff5cb00080) at kernel/qobject.cpp:1369
#19 0x00007f0356228e43 in QApplicationPrivate::notify_helper (this=this@entry=0x564a6dbdc110, receiver=receiver@entry=0x564a6e2ce260, e=e@entry=0x7fff5cb00080) at kernel/qapplication.cpp:3637
#20 0x00007f0356231c58 in QApplication::notify (this=0x564a6dbdc0f0, receiver=0x564a6e2ce260, e=0x7fff5cb00080) at kernel/qapplication.cpp:3161
#21 0x00007f035566703a in QCoreApplication::notifyInternal2 (receiver=0x564a6e2ce260, event=0x7fff5cb00080) at ../../include/QtCore/5.15.6/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:332
#22 0x00007f03556c0ed0 in QTimerInfoList::activateTimers (this=0x564a6dcfc630) at kernel/qtimerinfo_unix.cpp:643
#23 0x00007f03556c17bc in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#24 0x00007f035360d17d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f035360d400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f035360d4a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f03556c1b82 in QEventDispatcherGlib::processEvents (this=0x564a6dd04b30, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007f0355665b3b in QEventLoop::exec (this=this@entry=0x7fff5cb002c0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#29 0x00007f035566dce4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#30 0x0000564a6db4547e in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:252
[Inferior 1 (process 11430) detached]

Reported using DrKonqi
Comment 1 Jeff Tratt 2022-12-13 12:19:41 UTC
This is fixed in Version 22.12.0 (haven't been checking in-between versions).
Comment 2 Justin Zobel 2023-02-03 06:05:45 UTC
Reporter confirmed fixed in 22.12.0