[konsole] [Bug 454122] neofetch and right mouse button menu at the same time will cause a crash

Bernhard Übelacker bugzilla_noreply at kde.org
Wed Nov 2 09:48:47 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=454122

Bernhard Übelacker <bernhardu at mailbox.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernhardu at mailbox.org

--- Comment #6 from Bernhard Übelacker <bernhardu at mailbox.org> ---
I received this crash too with current Debian testing.
Below the top of the backtrace without and the full backtrace with debug
symbols installed.
While in my first crash I think I had also a ssh connection open, I could
reproduce the issue
- with installing neofetch
- starting a new konsole
- starting inside neofetch
- right click while neofetch was still running.

Interesting looks the call to `Konsole::ProcessInfo::isValid` with this=0x0.

I assume these bugs are duplicates to this one: 458157 460764

And bug 391447 seems also kind of related, while it was closed with a commit
changing this:
-        if (isForegroundProcessActive()) {
+        if (isForegroundProcessActive() && _foregroundProcessInfo->isValid())
{

Maybe extend this check by following:
-        if (isForegroundProcessActive() && _foregroundProcessInfo->isValid())
{
+        if (isForegroundProcessActive() && _foregroundProcessInfo &&
_foregroundProcessInfo->isValid()) {

Kind regards,
Bernhard

Application: Konsole (konsole), signal: Segmentation fault
[KCrash Handler]
#4  0x00007f85356d0ad0 in Konsole::ProcessInfo::isValid() const () from
/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#5  0x00007f85357609f4 in Konsole::Session::getUrl() () from
/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#6  0x00007f8535768b71 in Konsole::SessionController::url() const () from
/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
#7  0x00007f8535776bdc in
Konsole::SessionController::showDisplayContextMenu(QPoint const&) () from
/lib/x86_64-linux-gnu/libkonsoleprivate.so.1
...

konsole-dbgsym 4:22.08.1-1
konsole-kpart-dbgsym 4:22.08.1-1
libqt5core5a-dbgsym 5.15.6+dfsg-2
libqt5gui5-dbgsym 5.15.6+dfsg-2
libqt5widgets5-dbgsym 5.15.6+dfsg-2
libglib2.0-0-dbgsym 2.74.1-1

Application: Konsole (konsole), signal: Segmentation fault
[KCrash Handler]
#4  Konsole::ProcessInfo::isValid (this=0x0) at
/usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:151
#5  0x00007f85357609f4 in Konsole::Session::getUrl (this=0x5646bfb35520) at
./src/session/Session.cpp:1232
#6  0x00007f8535768b71 in Konsole::SessionController::url (this=<optimized
out>) at ./src/session/SessionController.cpp:379
#7  0x00007f8535776bdc in Konsole::SessionController::showDisplayContextMenu
(this=0x5646bf563fb0, position=...) at ./src/session/SessionController.cpp:1891
#8  0x00007f85340e8caf in QtPrivate::QSlotObjectBase::call (a=0x7ffe7043e5c0,
r=0x5646bf563fb0, this=0x5646bfbdbce0) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false> (sender=0x5646bf95cea0, signal_index=12,
argv=0x7ffe7043e5c0) at kernel/qobject.cpp:3919
#10 0x00007f85340e1f4f in QMetaObject::activate
(sender=sender at entry=0x5646bf95cea0, m=m at entry=0x7f8535803be0
<Konsole::TerminalDisplay::staticMetaObject>,
local_signal_index=local_signal_index at entry=5, argv=argv at entry=0x7ffe7043e5c0)
at kernel/qobject.cpp:3979
#11 0x00007f85356ba575 in Konsole::TerminalDisplay::configureRequest
(this=this at entry=0x5646bf95cea0, _t1=...) at
./obj-x86_64-linux-gnu/src/konsoleprivate_autogen/DRAQINE3W2/moc_TerminalDisplay.cpp:398
#12 0x00007f853573fc8f in Konsole::TerminalDisplay::mousePressEvent
(this=0x5646bf95cea0, ev=0x7ffe7043eb10) at
./src/terminalDisplay/TerminalDisplay.cpp:1168
#13 0x00007f8534da4ce8 in QWidget::event (this=0x5646bf95cea0,
event=0x7ffe7043eb10) at kernel/qwidget.cpp:9034
#14 0x00007f8534d62f5e in QApplicationPrivate::notify_helper
(this=this at entry=0x5646bf4211d0, receiver=receiver at entry=0x5646bf95cea0,
e=e at entry=0x7ffe7043eb10) at kernel/qapplication.cpp:3637
#15 0x00007f8534d6b502 in QApplication::notify (this=<optimized out>,
receiver=0x5646bf95cea0, e=<optimized out>) at kernel/qapplication.cpp:3081
#16 0x00007f85340b1718 in QCoreApplication::notifyInternal2
(receiver=0x5646bf95cea0, event=0x7ffe7043eb10) at
kernel/qcoreapplication.cpp:1064
#17 0x00007f8534d6960e in QApplicationPrivate::sendMouseEvent
(receiver=receiver at entry=0x5646bf95cea0, event=event at entry=0x7ffe7043eb10,
alienWidget=<optimized out>, nativeWidget=0x5646bf74f790,
buttonDown=buttonDown at entry=0x7f85352a69f0 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at
kernel/qapplication.cpp:2619
#18 0x00007f8534dbdaf8 in QWidgetWindow::handleMouseEvent (this=0x5646bf779c80,
event=0x7ffe7043edc0) at kernel/qwidgetwindow.cpp:683
#19 0x00007f8534dc0e80 in QWidgetWindow::event (this=0x5646bf779c80,
event=0x7ffe7043edc0) at kernel/qwidgetwindow.cpp:300
#20 0x00007f8534d62f5e in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x5646bf779c80, e=0x7ffe7043edc0) at
kernel/qapplication.cpp:3637
#21 0x00007f85340b1718 in QCoreApplication::notifyInternal2
(receiver=0x5646bf779c80, event=0x7ffe7043edc0) at
kernel/qcoreapplication.cpp:1064
#22 0x00007f853453d6bd in QGuiApplicationPrivate::processMouseEvent
(e=0x5646bfd264b0) at kernel/qguiapplication.cpp:2285
#23 0x00007f8534511e1c in QWindowSystemInterface::sendWindowSystemEvents
(flags=flags at entry=...) at kernel/qwindowsysteminterface.cpp:1169
#24 0x00007f852defc0fa in xcbSourceDispatch (source=<optimized out>) at
./src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#25 0x00007f8532468799 in g_main_dispatch (context=0x7f8528005010) at
../../../glib/gmain.c:3444
#26 g_main_context_dispatch (context=context at entry=0x7f8528005010) at
../../../glib/gmain.c:4162
#27 0x00007f8532468a28 in g_main_context_iterate
(context=context at entry=0x7f8528005010, block=block at entry=1,
dispatch=dispatch at entry=1, self=<optimized out>) at ../../../glib/gmain.c:4238
#28 0x00007f8532468abc in g_main_context_iteration (context=0x7f8528005010,
may_block=1) at ../../../glib/gmain.c:4303
#29 0x00007f85341094b6 in QEventDispatcherGlib::processEvents
(this=0x5646bf4f66c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f85340b019b in QEventLoop::exec (this=this at entry=0x7ffe7043f0f0,
flags=..., flags at entry=...) at
../../include/QtCore/../../src/corelib/global/qflags.h:69
#31 0x00007f85340b8306 in QCoreApplication::exec () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#32 0x00005646bdbc4e4c in ?? ()
#33 0x00007f853362920a in __libc_start_call_main
(main=main at entry=0x5646bdbc4690, argc=argc at entry=3,
argv=argv at entry=0x7ffe7043f418) at ../sysdeps/nptl/libc_start_call_main.h:58
#34 0x00007f85336292bc in __libc_start_main_impl (main=0x5646bdbc4690, argc=3,
argv=0x7ffe7043f418, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffe7043f408) at ../csu/libc-start.c:389
#35 0x00005646bdbc5301 in ?? ()
[Inferior 1 (process 16913) detached]

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list