Bug 436245 - Konsole segfault
Summary: Konsole segfault
Status: RESOLVED UPSTREAM
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.04.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
: 456583 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-04-26 22:33 UTC by Chase Meadors
Modified: 2022-07-11 12:08 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (4.04 KB, text/plain)
2021-05-04 08:12 UTC, Bart Vaes
Details
New crash information added by DrKonqi (2.49 KB, text/plain)
2021-08-25 15:24 UTC, Peter Shkenev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chase Meadors 2021-04-26 22:33:32 UTC
Application: konsole (21.04.0)

Qt Version: 5.15.2
Frameworks Version: 5.81.0
Operating System: Linux 5.11.16-arch1-1 x86_64
Windowing System: X11
Drkonqi Version: 5.21.4
Distribution: EndeavourOS

-- Information about the crash:
I pressed `ctrl-C` during a `sudo` command prompt in a newly opened second Konsole tab.

The reporter is unsure if this crash is reproducible.

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

[KCrash Handler]
#4  0x0000560c29855da0 in  ()
#5  0x00007fc0f590452a in QMetaObject::cast(QObject const*) const () at /usr/lib/libQt5Core.so.5
#6  0x00007fc0ee543cfa in QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) () at /usr/lib/libQt5QuickTemplates2.so.5
#7  0x00007fc0f41bd44f in QShortcutMap::find(QKeyEvent*, int) () at /usr/lib/libQt5Gui.so.5
#8  0x00007fc0f41c0461 in QShortcutMap::nextState(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#9  0x00007fc0f41c1797 in QShortcutMap::tryShortcut(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#10 0x00007fc0f41692b4 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () at /usr/lib/libQt5Gui.so.5
#11 0x00007fc0f418c39c in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /usr/lib/libQt5Gui.so.5
#12 0x00007fc0f4165bb5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#13 0x00007fc0ef6e019c in  () at /usr/lib/libQt5XcbQpa.so.5
#14 0x00007fc0f34a402c in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#15 0x00007fc0f34f7b59 in  () at /usr/lib/libglib-2.0.so.0
#16 0x00007fc0f34a1781 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#17 0x00007fc0f5954191 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#18 0x00007fc0f58f9fec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007fc0f59024a4 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#20 0x00007fc0f5c5cd50 in kdemain () at /usr/lib/libkdeinit5_konsole.so
#21 0x00007fc0f549fb25 in __libc_start_main () at /usr/lib/libc.so.6
#22 0x0000560c2819405e in  ()
[Inferior 1 (process 13775) detached]

Possible duplicates by query: bug 330505.

Reported using DrKonqi
Comment 1 Bart Vaes 2021-05-04 08:12:13 UTC
Created attachment 138135 [details]
New crash information added by DrKonqi

konsole (21.04.0) using Qt 5.15.2

- What I was doing when the application crashed: on a remote SSH session to AWS EC2 server. Pressed 'ctrl+c' during command requiring  sudo privileges. I forgot to actually use sudo, so it asked for password.

-- Backtrace (Reduced):
#9  0x00007fea00fcd4dc in qobject_cast<QQuickItem*> (object=0x55de68fcf1c0) at /usr/include/qt5/QtCore/qobject.h:519
#10 QQuickShortcutContext::matcher (context=<optimized out>, obj=0x55de68fcf1c0) at qquickshortcutcontext.cpp:79
#11 QQuickShortcutContext::matcher (obj=<optimized out>, context=<optimized out>) at qquickshortcutcontext.cpp:71
#12 0x00007fea06be3e7f in QShortcutEntry::correctContext (this=0x55de66731b08) at kernel/qshortcutmap.cpp:79
#13 QShortcutMap::find (this=this@entry=0x55de65840498, e=e@entry=0x7fff56f50440, ignoredModifiers=ignoredModifiers@entry=0) at kernel/qshortcutmap.cpp:457
Comment 2 Peter Shkenev 2021-08-25 15:24:58 UTC
Created attachment 141036 [details]
New crash information added by DrKonqi

konsole (21.04.3) using Qt 5.15.2

- What I was doing when the application crashed:

I was running make and entered ctrl-c. After that, konsole crashed. I had only one tab

-- Backtrace (Reduced):
#4  0x00007f4de85d6aa0 in QArrayData::shared_null () at /usr/lib/libQt5Core.so.5
[...]
#6  0x00007f4de058cc9d in QQuickShortcutContext::matcher(QObject*, Qt::ShortcutContext) () at /usr/lib/libQt5QuickTemplates2.so.5
#7  0x00007f4de6ceea74 in QShortcutMap::find(QKeyEvent*, int) () at /usr/lib/libQt5Gui.so.5
#8  0x00007f4de6cf1c71 in QShortcutMap::nextState(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#9  0x00007f4de6cf2f67 in QShortcutMap::tryShortcut(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
Comment 3 Nate Graham 2022-01-19 21:27:18 UTC
This is an upstream bug in Qt which was fixed with https://codereview.qt-project.org/c/qt/qtdeclarative/+/371842. It will be backported to the KDE patch collection soon; see https://invent.kde.org/qt/qt/qtquickcontrols2/-/merge_requests/3

Thanks so much to Nicolas Fella for discovering this and backporting it!
Comment 4 Nicolas Fella 2022-07-11 12:08:32 UTC
*** Bug 456583 has been marked as a duplicate of this bug. ***