Bug 458157 - Right clicking (to paste) when konsole starts up with Neofetch set in the .zshrc/.bashrc causes konsole to crash.
Summary: Right clicking (to paste) when konsole starts up with Neofetch set in the .zs...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-08-22 03:23 UTC by mp645slix
Modified: 2022-11-25 01:04 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 mp645slix 2022-08-22 03:23:12 UTC
Application: konsole (22.04.1)

Qt Version: 5.15.5
Frameworks Version: 5.97.0
Operating System: Linux 5.18.17-201.fsync.fc36.x86_64 x86_64
Windowing System: Wayland
Distribution: Nobara Linux 36 (KDE Plasma)
DrKonqi: 5.25.4 [KCrashBackend]

-- Information about the crash:
If I accidentally right click to paste while neofetch is being executed, it causes konsole to crash.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007fe2aa4daea4 in Konsole::ProcessInfo::isValid() const () from /lib64/libkonsoleprivate.so.1
#5  0x00007fe2aa55f754 in Konsole::Session::getUrl() () from /lib64/libkonsoleprivate.so.1
#6  0x00007fe2aa567f2d in Konsole::SessionController::url() const () from /lib64/libkonsoleprivate.so.1
#7  0x00007fe2aa57b9e1 in Konsole::SessionController::showDisplayContextMenu(QPoint const&) () from /lib64/libkonsoleprivate.so.1
#8  0x00007fe2a92088c6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#9  0x00007fe2aa4cb459 in Konsole::TerminalDisplay::configureRequest(QPoint const&) () from /lib64/libkonsoleprivate.so.1
#10 0x00007fe2aa53e73a in Konsole::TerminalDisplay::mousePressEvent(QMouseEvent*) () from /lib64/libkonsoleprivate.so.1
#11 0x00007fe2a9d87828 in QWidget::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#12 0x00007fe2a9d44d22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#13 0x00007fe2a9d4d392 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#14 0x00007fe2a91d5228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#15 0x00007fe2a9d4b492 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib64/libQt5Widgets.so.5
#16 0x00007fe2a9da0b8c in QWidgetWindow::handleMouseEvent(QMouseEvent*) () from /lib64/libQt5Widgets.so.5
#17 0x00007fe2a9da3f50 in QWidgetWindow::event(QEvent*) () from /lib64/libQt5Widgets.so.5
#18 0x00007fe2a9d44d22 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#19 0x00007fe2a91d5228 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#20 0x00007fe2a96c6df5 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib64/libQt5Gui.so.5
#21 0x00007fe2a96a5fbc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#22 0x00007fe2a70b9bb4 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5WaylandClient.so.5
#23 0x00007fe2a7375faf in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#24 0x00007fe2a73cb2c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#25 0x00007fe2a7373940 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#26 0x00007fe2a9225f5a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#27 0x00007fe2a91d3c7a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#28 0x00007fe2a91dbd42 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#29 0x0000555c8d4b85f1 in main ()
[Inferior 1 (process 176270) detached]

The reporter indicates this bug may be a duplicate of or related to bug 391447, bug 454122.

Reported using DrKonqi
Comment 1 Bug Janitor Service 2022-11-12 00:23:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/772
Comment 2 Kurt Hindenburg 2022-11-25 01:04:30 UTC
Git commit bc127dd2c1c30e8af9061809fcf217dfabf915d8 by Kurt Hindenburg, on behalf of Luis Javier Merino Morán.
Committed on 25/11/2022 at 00:58.
Pushed by hindenburg into branch 'master'.

Update foreground pgroup info before accessing it

Fixes a potential crash when opening the right mouse button context menu
just after launching some process in the shell, before konsole has had
any chance to update the foreground process group information.
Related: bug 454122

M  +1    -1    src/session/Session.cpp

https://invent.kde.org/utilities/konsole/commit/bc127dd2c1c30e8af9061809fcf217dfabf915d8