Bug 399848 - Closing neovim in terminal crashes konsole
Summary: Closing neovim in terminal crashes konsole
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 18.08.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
: 401736 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-15 17:37 UTC by sedrubal
Modified: 2020-12-02 09:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.55 KB, text/plain)
2019-03-11 15:42 UTC, ioan.camil.bancioiu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sedrubal 2018-10-15 17:37:09 UTC
Application: kdeinit5 (18.08.1)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.18.12-300.fc29.x86_64 x86_64
Distribution (Platform): Fedora RPMs

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

I have neovim installed which installs a .desktop file with `Terminal=true`. Clicking on that desktop icon opens nvim in a konsole terminal window. When I close neovim (with :q), konsole sometimes closes normally but sometimes it crashes.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Konsole (kdeinit5), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7eff56282940 (LWP 8867))]

Thread 4 (Thread 0x7eff3f494700 (LWP 8872)):
#0  0x00007eff58aa567c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007eff3f8efa43 in ?? () from /usr/lib64/dri/i965_dri.so
#2  0x00007eff3f8ef79b in ?? () from /usr/lib64/dri/i965_dri.so
#3  0x00007eff58a9f58e in start_thread () from /lib64/libpthread.so.0
#4  0x00007eff58c71513 in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7eff46406700 (LWP 8871)):
#0  0x00007eff58c663f6 in ppoll () from /lib64/libc.so.6
#1  0x00007eff59311e85 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /lib64/libQt5Core.so.5
#2  0x00007eff59312fd9 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#3  0x00007eff592c439b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007eff5912bf16 in QThread::exec() () from /lib64/libQt5Core.so.5
#5  0x00007eff5a29ec89 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#6  0x00007eff591353ab in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#7  0x00007eff58a9f58e in start_thread () from /lib64/libpthread.so.0
#8  0x00007eff58c71513 in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7eff479b8700 (LWP 8870)):
#0  0x00007eff58c66301 in poll () from /lib64/libc.so.6
#1  0x00007eff5a12639f in ?? () from /lib64/libxcb.so.1
#2  0x00007eff5a12801a in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007eff47b23b79 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007eff591353ab in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007eff58a9f58e in start_thread () from /lib64/libpthread.so.0
#6  0x00007eff58c71513 in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7eff56282940 (LWP 8867)):
[KCrash Handler]
#6  0x00007eff49321324 in QHash<Konsole::Profile::Property, QVariant>::findNode (this=this@entry=0x10, akey=@0x7ffed8baae20: Konsole::Profile::Font, ahp=ahp@entry=0x0) at /usr/include/qt5/QtCore/qhash.h:926
#7  0x00007eff49374572 in QHash<Konsole::Profile::Property, QVariant>::contains (akey=@0x7ffed8baae20: Konsole::Profile::Font, this=0x10) at /usr/include/qt5/QtCore/qhash.h:904
#8  Konsole::Profile::property<QVariant> (p=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/src/Profile.h:670
#9  Konsole::Profile::property<QFont> (p=Konsole::Profile::Font, this=<optimized out>) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/src/Profile.h:664
#10 Konsole::Profile::font (this=<optimized out>) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/src/Profile.h:443
#11 Konsole::SessionManager::sessionProfileCommandReceived (this=0x7eff49402d20 <(anonymous namespace)::Q_QGS_theSessionManager::innerFunction()::holder>, text=...) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/src/SessionManager.cpp:293
#12 0x00007eff592ed763 in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#13 0x00007eff493a8a79 in Konsole::Session::profileChangeCommandReceived (this=this@entry=0x55e52ffda130, _t1=...) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/x86_64-redhat-linux-gnu/src/konsoleprivate_autogen/EWIEGA46WW/moc_Session.cpp:774
#14 0x00007eff4935925f in Konsole::Session::setSessionAttribute (this=0x55e52ffda130, what=50, caption=...) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/src/Session.cpp:572
#15 0x00007eff592ed763 in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#16 0x00007eff493a7a3a in Konsole::Emulation::sessionAttributeChanged (this=this@entry=0x55e530006340, _t1=<optimized out>, _t1@entry=50, _t2=...) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/x86_64-redhat-linux-gnu/src/konsoleprivate_autogen/EWIEGA46WW/moc_Emulation.cpp:532
#17 0x00007eff493a2be9 in Konsole::Vt102Emulation::updateSessionAttributes (this=0x55e530006340) at /usr/include/qt5/QtCore/qhash.h:158
#18 0x00007eff592ed763 in QMetaObject::activate(QObject*, int, int, void**) () from /lib64/libQt5Core.so.5
#19 0x00007eff592f940b in QTimer::timeout(QTimer::QPrivateSignal) () from /lib64/libQt5Core.so.5
#20 0x00007eff592ee2fb in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#21 0x00007eff59bb3b05 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#22 0x00007eff59bbb220 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007eff592c5456 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#24 0x00007eff59314d99 in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#25 0x00007eff593130fc in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#26 0x00007eff47bb7051 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5XcbQpa.so.5
#27 0x00007eff592c439b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#28 0x00007eff592cc466 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#29 0x00007eff49532640 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/konsole5-18.08.1-1.fc29.x86_64/src/main.cpp:207
#30 0x000055e52ea99667 in ?? ()
#31 0x000055e52ea9a68a in ?? ()
#32 0x000055e52ea9afa8 in ?? ()
#33 0x000055e52ea96045 in ?? ()
#34 0x00007eff58b98413 in __libc_start_main () from /lib64/libc.so.6
#35 0x000055e52ea96c8e in _start ()
[Inferior 1 (process 8867) detached]

Reported using DrKonqi
Comment 1 Christoph Feck 2018-12-27 19:37:29 UTC
*** Bug 401736 has been marked as a duplicate of this bug. ***
Comment 2 ioan.camil.bancioiu 2019-03-11 15:42:37 UTC
Created attachment 118718 [details]
New crash information added by DrKonqi

konsole (18.08.3) using Qt 5.11.3

- What I was doing when the application crashed:

I closed NeoVim with the :quit command. Like other users, I also have a .desktop file which opens NeoVim in Konsole. This crash happens only sometimes, but it's only when exiting NeoVim - I haven't noticed it for other terminal applications.

-- Backtrace (Reduced):
#6  0x00007f68dee1b644 in QHash<Konsole::Profile::Property, QVariant>::findNode (this=this@entry=0x10, akey=@0x7ffc2f41b4a0: Konsole::Profile::Font, ahp=ahp@entry=0x0) at /usr/include/qt5/QtCore/qhash.h:926
#7  0x00007f68dee6e8a2 in QHash<Konsole::Profile::Property, QVariant>::contains (akey=@0x7ffc2f41b4a0: Konsole::Profile::Font, this=0x10) at /usr/src/debug/konsole5-18.08.3-1.fc28.x86_64/src/Profile.h:670
#8  Konsole::Profile::property<QVariant> (p=<optimized out>, this=<optimized out>) at /usr/src/debug/konsole5-18.08.3-1.fc28.x86_64/src/Profile.h:670
#9  Konsole::Profile::property<QFont> (p=Konsole::Profile::Font, this=<optimized out>) at /usr/src/debug/konsole5-18.08.3-1.fc28.x86_64/src/Profile.h:664
#10 Konsole::Profile::font (this=<optimized out>) at /usr/src/debug/konsole5-18.08.3-1.fc28.x86_64/src/Profile.h:443
Comment 3 Justin Zobel 2020-12-02 00:00:45 UTC
Thanks for the report.

As it's 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've set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved" when you respond, thanks.
Comment 4 sedrubal 2020-12-02 09:22:23 UTC
Yes it looks like this is fixed.