Bug 467691 - Segfault in libqt causes Konsole to crash based on scaling
Summary: Segfault in libqt causes Konsole to crash based on scaling
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 22.12.2
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-22 14:28 UTC by schwarzl.marteun
Modified: 2024-07-24 03:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description schwarzl.marteun 2023-03-22 14:28:55 UTC
SUMMARY
Scaling up the Konsole w/ ctrl++ and the global KDE scaling settings (display configuration) causes a segfault in libqt when starting Konsole. 
Not sure yet if the bug could be exploitable. 

Stacktrace:
#0  0x00007f5faf781a90 in ?? () from /usr/lib/libQt5Gui.so.5
#1  0x00007f5fafa1f67c in QRasterPaintEngine::fillRect(QRectF const&, QSpanData*) () from /usr/lib/libQt5Gui.so.5
#2  0x00007f5fafa377f8 in QPainter::fillRect(QRect const&, QColor const&) () from /usr/lib/libQt5Gui.so.5
#3  0x00007f5fad209923 in QtWaylandClient::QWaylandShmBackingStore::beginPaint(QRegion const&) () from /usr/lib/libQt5WaylandClient.so.5
#4  0x00007f5faf95032e in QBackingStore::beginPaint(QRegion const&) () from /usr/lib/libQt5Gui.so.5
#5  0x00007f5fafe6b758 in ?? () from /usr/lib/libQt5Widgets.so.5
#6  0x00007f5fafe822d0 in QWidgetPrivate::syncBackingStore(QRegion const&) () from /usr/lib/libQt5Widgets.so.5
#7  0x00007f5fafeb71cb in ?? () from /usr/lib/libQt5Widgets.so.5
#8  0x00007f5fafe5fb5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#9  0x00007f5faf329f48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007f5faf7bb804 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/lib/libQt5Gui.so.5
#11 0x00007f5faf79a885 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#12 0x00007f5fad24aa75 in ?? () from /usr/lib/libQt5WaylandClient.so.5
#13 0x00007f5fad49d82b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#14 0x00007f5fad4f4cc9 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0x00007f5fad49c0e2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#16 0x00007f5faf374c6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#17 0x00007f5faf3226ec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#18 0x00007f5faf32d219 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#19 0x000055d9f8623b65 in ?? ()
#20 0x00007f5faec9e790 in __libc_start_call_main (main=main@entry=0x55d9f8622020, argc=argc@entry=0x1, argv=argv@entry=0x7ffd00463398) at ../sysdeps/nptl/libc_start_call_main.h:58



STEPS TO REPRODUCE
1. Increase font size to 16pt HACK. 
2. Scale up to maximum with ctrl++ in Konsole.
3. Additionally in the Display Configuration of KDE Scale up to 150-175% 

OBSERVED RESULT
Konsole crashes ion startup due the scaling issue in libqt.

EXPECTED RESULT
Konsole should start.

SOFTWARE/OS VERSIONS
Linux: 5.15.102-1-MANJARO
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2024-06-07 17:42:05 UTC
Please re-try with a current Qt 6 based release, there were a lot of Wayland
changes in the stack.
Comment 2 Bug Janitor Service 2024-06-22 03:47:44 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 schwarzl.marteun 2024-06-24 08:24:22 UTC
Hi, 

this seems to be fixed now with the latest Qt 6.

Thank you!

Kind regards,
Martin
Comment 4 Bug Janitor Service 2024-07-09 03:47:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2024-07-24 03:46:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!