Bug 490292

Summary: Konsole crashes after opening an email with alpine
Product: [Applications] konsole Reporter: Herbert Schwabl <gnu>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: crash CC: kdedev
Priority: NOR Keywords: drkonqi
Version: 23.08.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Herbert Schwabl 2024-07-15 09:23:06 UTC
Application: konsole (23.08.5)
 (Compiled from sources)
Qt Version: 5.15.14
Frameworks Version: 5.116.0
Operating System: Linux 4.19.44-gentoo-x86 i686
Windowing System: X11
Distribution: "Gentoo Linux"
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
Konsole crashes after opening a HTML-email with alpine 2.26

The crash can be reproduced every time.

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

[KCrash Handler]
#5  0xb7df0f4a in ?? () from /usr/lib/libkonsoleprivate.so.1
#6  0xb7df5200 in ?? () from /usr/lib/libkonsoleprivate.so.1
#7  0xb7de1585 in Konsole::TerminalDisplay::paintEvent(QPaintEvent*) () from /usr/lib/libkonsoleprivate.so.1
#8  0xb74ce24e in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0xb7dee1e1 in Konsole::TerminalDisplay::event(QEvent*) () from /usr/lib/libkonsoleprivate.so.1
#10 0xb7487195 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#11 0xb748e957 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#12 0xb6900711 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0xb69009bd in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#14 0xb74c5eed in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /usr/lib/libQt5Widgets.so.5
#15 0xb74c6812 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () from /usr/lib/libQt5Widgets.so.5
#16 0xb7498cfe in ?? () from /usr/lib/libQt5Widgets.so.5
#17 0xb74c7688 in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQt5Widgets.so.5
#18 0xb74cea37 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#19 0xb75f6a08 in QMainWindow::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#20 0xb7c57edb in KMainWindow::event(QEvent*) () from /usr/lib/libKF5XmlGui.so.5
#21 0xb7c9b27d in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libKF5XmlGui.so.5
#22 0xb7487195 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#23 0xb748e957 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#24 0xb6900711 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#25 0xb690097d in QCoreApplication::sendEvent(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#26 0xb6903e1b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#27 0xb69040c9 in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQt5Core.so.5
#28 0xb69553d3 in ?? () from /usr/lib/libQt5Core.so.5
#29 0xb47dd37a in ?? () from /usr/lib/libglib-2.0.so.0
#30 0xb47e0675 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0xb47e0d56 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0xb6954dbd in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#33 0xb04ae961 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#34 0xb68fefbc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#35 0xb6907789 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#36 0xb6dc7652 in QGuiApplication::exec() () from /usr/lib/libQt5Gui.so.5
#37 0xb7487104 in QApplication::exec() () from /usr/lib/libQt5Widgets.so.5
#38 0x004dae39 in ?? ()
#39 0xb6231bb5 in ?? () from /usr/lib/libc.so.6
#40 0xb6231c7f in __libc_start_main () from /usr/lib/libc.so.6
#41 0x004db2e7 in ?? ()
[Inferior 1 (process 4157) detached]

Reported using DrKonqi
Comment 1 TraceyC 2024-08-27 15:29:52 UTC
Thank you for the bug report! If this is still happening on your system, we need a little more information.

Unfortunately the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

#5  0xb7df0f4a in ?? () from /usr/lib/libkonsoleprivate.so.1
#16 0xb7498cfe in ?? () from /usr/lib/libQt5Widgets.so.5
#33 0xb04ae961 in ?? () from /usr/lib/libQt5XcbQpa.so.5

Could you please install debug symbols and attach a new symbolicated backtrace generated by using `coredumpctl gdb` in a terminal window? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl for details about how to do this. Thanks again!
Comment 2 Herbert Schwabl 2024-08-27 21:18:05 UTC
After recompiling/upgrading xwayland, mesa, libqt*, etc. the crash doesn't occur anymore - so I cannot reproduce it to create another stacktrace.
Comment 3 TraceyC 2024-08-28 16:09:21 UTC
I'm glad to hear this is working properly on your system now. If the problem recurs, please open a new bug report for the current software versions on your system. Thanks!