Bug 477592 - Konsole crashes when mouse over of right side of the window.
Summary: Konsole crashes when mouse over of right side of the window.
Status: RESOLVED DUPLICATE of bug 479319
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 23.08.3
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-27 04:44 UTC by dev
Modified: 2024-09-21 15:27 UTC (History)
2 users (show)

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


Attachments
attachment-274781-0.html (2.24 KB, text/html)
2023-11-27 08:27 UTC, tcanabrava
Details
A backtrace of one possible crash of Konsole 23.08.05 (6.07 KB, text/plain)
2024-06-09 11:46 UTC, Jonáš Vidra
Details
A backtrace of another crash (8.09 KB, text/plain)
2024-06-09 11:47 UTC, Jonáš Vidra
Details
A backtrace of a third crash (6.50 KB, text/plain)
2024-06-09 11:48 UTC, Jonáš Vidra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dev 2023-11-27 04:44:02 UTC
SUMMARY
Konsole crashes when the mouse hovers over the right side of the screen. Also, text doesn't render on the right side, and running programs, such as pacman, also cause a crash.

STEPS TO REPRODUCE
1. Open Konsole
2. Mouse-over the right side of the window (specifically in the text area). 

OBSERVED RESULT
Konsole crashes.

EXPECTED RESULT
I should be able to mouse over the right side of the window.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux ARM 
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.1.62-3-rpi-ARCH (32-bit)
Graphics Platform: X11
Processors: 4 x ARM Cortex-A72
Memory: 1.8 GiB of RAM
Graphics Processor: V3D 4.2
Product Name: Raspberry Pi 4 Model B Rev 1.1
Comment 1 tcanabrava 2023-11-27 08:27:21 UTC
Created attachment 163531 [details]
attachment-274781-0.html

Please provide a backtrace

On Mon, 27 Nov 2023 at 05:44 <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=477592
>
>             Bug ID: 477592
>            Summary: Konsole crashes when mouse over of right side of the
>                     window.
>     Classification: Applications
>            Product: konsole
>            Version: 23.08.3
>           Platform: Other
>                 OS: Linux
>             Status: REPORTED
>           Severity: normal
>           Priority: NOR
>          Component: general
>           Assignee: konsole-devel@kde.org
>           Reporter: dev@moxvallix.com
>   Target Milestone: ---
>
> SUMMARY
> Konsole crashes when the mouse hovers over the right side of the screen.
> Also,
> text doesn't render on the right side, and running programs, such as
> pacman,
> also cause a crash.
>
> STEPS TO REPRODUCE
> 1. Open Konsole
> 2. Mouse-over the right side of the window (specifically in the text
> area).
>
> OBSERVED RESULT
> Konsole crashes.
>
> EXPECTED RESULT
> I should be able to mouse over the right side of the window.
>
> SOFTWARE/OS VERSIONS
> Operating System: Arch Linux ARM
> KDE Plasma Version: 5.27.9
> KDE Frameworks Version: 5.112.0
> Qt Version: 5.15.11
> Kernel Version: 6.1.62-3-rpi-ARCH (32-bit)
> Graphics Platform: X11
> Processors: 4 x ARM Cortex-A72
> Memory: 1.8 GiB of RAM
> Graphics Processor: V3D 4.2
> Product Name: Raspberry Pi 4 Model B Rev 1.1
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 2 dev 2023-11-28 03:57:43 UTC
(In reply to tcanabrava from comment #1)
> Created attachment 163531 [details]
> attachment-274781-0.html
> 
> Please provide a backtrace
> 
> On Mon, 27 Nov 2023 at 05:44 <bugzilla_noreply@kde.org> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=477592
> >
> >             Bug ID: 477592
> >            Summary: Konsole crashes when mouse over of right side of the
> >                     window.
> >     Classification: Applications
> >            Product: konsole
> >            Version: 23.08.3
> >           Platform: Other
> >                 OS: Linux
> >             Status: REPORTED
> >           Severity: normal
> >           Priority: NOR
> >          Component: general
> >           Assignee: konsole-devel@kde.org
> >           Reporter: dev@moxvallix.com
> >   Target Milestone: ---
> >
> > SUMMARY
> > Konsole crashes when the mouse hovers over the right side of the screen.
> > Also,
> > text doesn't render on the right side, and running programs, such as
> > pacman,
> > also cause a crash.
> >
> > STEPS TO REPRODUCE
> > 1. Open Konsole
> > 2. Mouse-over the right side of the window (specifically in the text
> > area).
> >
> > OBSERVED RESULT
> > Konsole crashes.
> >
> > EXPECTED RESULT
> > I should be able to mouse over the right side of the window.
> >
> > SOFTWARE/OS VERSIONS
> > Operating System: Arch Linux ARM
> > KDE Plasma Version: 5.27.9
> > KDE Frameworks Version: 5.112.0
> > Qt Version: 5.15.11
> > Kernel Version: 6.1.62-3-rpi-ARCH (32-bit)
> > Graphics Platform: X11
> > Processors: 4 x ARM Cortex-A72
> > Memory: 1.8 GiB of RAM
> > Graphics Processor: V3D 4.2
> > Product Name: Raspberry Pi 4 Model B Rev 1.1
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.

I think this is what you need, hopefully:

Starting program: /usr/bin/konsole 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xaebcf220 (LWP 13787)]
[New Thread 0xae1ff220 (LWP 13788)]
[New Thread 0xa401e220 (LWP 13789)]
[New Thread 0xa26ae220 (LWP 13790)]
[New Thread 0xa1ead220 (LWP 13791)]
[New Thread 0xa12ff220 (LWP 13792)]
[New Thread 0xa0afe220 (LWP 13793)]
[Detaching after fork from child process 13795]

Thread 1 "konsole" received signal SIGSEGV, Segmentation fault.
0xb6e7b4ec in Konsole::TerminalDisplay::getCharacterPosition(QPoint const&, bool) const () from /usr/lib/libkonsoleprivate.so.1
Quit

Thread 8 (Thread 0xa0afe220 (LWP 13793) "Thread (pooled)"):
#0  0xb5617f78 in  () at /usr/lib/libc.so.6
#1  0xb56180bc in  () at /usr/lib/libc.so.6
#2  0xb561b934 in __pthread_cond_timedwait64 () at /usr/lib/libc.so.6
#3  0xb561bb70 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#4  0xb59edb18 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#5  0xb59ea874 in  () at /usr/lib/libQt5Core.so.5
#6  0xb59e6498 in  () at /usr/lib/libQt5Core.so.5
#7  0xb561c140 in  () at /usr/lib/libc.so.6
#8  0xb569dd1c in  () at /usr/lib/libc.so.6

Thread 7 (Thread 0xa12ff220 (LWP 13792) "Thread (pooled)"):
#0  0xb5617f78 in  () at /usr/lib/libc.so.6
#1  0xb56180bc in  () at /usr/lib/libc.so.6
#2  0xb561b934 in __pthread_cond_timedwait64 () at /usr/lib/libc.so.6
#3  0xb561bb70 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#4  0xb59edb18 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#5  0xb59ea874 in  () at /usr/lib/libQt5Core.so.5
#6  0xb59e6498 in  () at /usr/lib/libQt5Core.so.5
#7  0xb561c140 in  () at /usr/lib/libc.so.6
#8  0xb569dd1c in  () at /usr/lib/libc.so.6

Thread 6 (Thread 0xa1ead220 (LWP 13791) "Thread (pooled)"):
#0  0xb5617f78 in  () at /usr/lib/libc.so.6
#1  0xb56180bc in  () at /usr/lib/libc.so.6
#2  0xb561b934 in __pthread_cond_timedwait64 () at /usr/lib/libc.so.6
#3  0xb561bb70 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#4  0xb59edb18 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#5  0xb59ea874 in  () at /usr/lib/libQt5Core.so.5
#6  0xb59e6498 in  () at /usr/lib/libQt5Core.so.5
#7  0xb561c140 in  () at /usr/lib/libc.so.6
#8  0xb569dd1c in  () at /usr/lib/libc.so.6

Thread 5 (Thread 0xa26ae220 (LWP 13790) "Thread (pooled)"):
#0  0xb5617f78 in  () at /usr/lib/libc.so.6
#1  0xb56180bc in  () at /usr/lib/libc.so.6
#2  0xb561b934 in __pthread_cond_timedwait64 () at /usr/lib/libc.so.6
#3  0xb561bb70 in pthread_cond_timedwait () at /usr/lib/libc.so.6
#4  0xb59edb18 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () at /usr/lib/libQt5Core.so.5
#5  0xb59ea874 in  () at /usr/lib/libQt5Core.so.5
#6  0xb59e6498 in  () at /usr/lib/libQt5Core.so.5
#7  0xb561c140 in  () at /usr/lib/libc.so.6
#8  0xb569dd1c in  () at /usr/lib/libc.so.6

Thread 4 (Thread 0xa401e220 (LWP 13789) "konsole:disk$0"):
#0  0xb5617f78 in  () at /usr/lib/libc.so.6
#1  0xb56180bc in  () at /usr/lib/libc.so.6
#2  0xb561b540 in pthread_cond_wait () at /usr/lib/libc.so.6
#3  0xabb0e74c in  () at /usr/lib/dri/vc4_dri.so
#4  0xabab9ce8 in  () at /usr/lib/dri/vc4_dri.so
#5  0xb561c140 in  () at /usr/lib/libc.so.6
#6  0xb569dd1c in  () at /usr/lib/libc.so.6

Thread 3 (Thread 0xae1ff220 (LWP 13788) "QXcbEventQueue"):
#0  0xb568f818 in poll () at /usr/lib/libc.so.6
#1  0xb367a8ec in  () at /usr/lib/libxcb.so.1
#2  0xb367ce20 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0xaee9d024 in  () at /usr/lib/libQt5XcbQpa.so.5

Thread 2 (Thread 0xaebcf220 (LWP 13787) "QDBusConnection"):
#0  0xb568f818 in poll () at /usr/lib/libc.so.6
#1  0xb3a5c1fc in  () at /usr/lib/libglib-2.0.so.0
#2  0xb3a5c91c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0xb5c638ac in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0xb5bf88fc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0xb59e4c64 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0xb45b3798 in  () at /usr/lib/libQt5DBus.so.5

Thread 1 (Thread 0xb6c8e020 (LWP 13785) "konsole"):
#0  0xb6e7b4ec in Konsole::TerminalDisplay::getCharacterPosition(QPoint const&, bool) const () at /usr/lib/libkonsoleprivate.so.1
#1  0xb6e81198 in Konsole::TerminalDisplay::mouseMoveEvent(QMouseEvent*) () at /usr/lib/libkonsoleprivate.so.1
#2  0x00429b08 in  ()
Comment 3 Jonáš Vidra 2024-06-09 11:46:51 UTC
Created attachment 170287 [details]
A backtrace of one possible crash of Konsole 23.08.05

I also see this bug with Konsole 23.08.05, KDE Frameworks 5.115.0 and Qt 5.15.12. My system is somewhat weird – 32 bit PowerPC machine with musl libc, running X11 on radeon with the NoAccel option set.

I get multiple different backtraces depending on my actions. The crash can be caused either by moving the mouse over the rightmost ~25% of the text area, or by typing or printing a text long enough that it extends into the same area. Spaces can be typed without an issue, but as soon as a non-blank character is written (whether by me or by a running program) far enough to the right, Konsole crashes.

I assume this means that the issue is not with the crashing code, but rather with whatever code is responsible for initializing the text area, so the backtraces are probably not particularly informative, but I'm attaching them anyway.
Comment 4 Jonáš Vidra 2024-06-09 11:47:48 UTC
Created attachment 170288 [details]
A backtrace of another crash
Comment 5 Jonáš Vidra 2024-06-09 11:48:42 UTC
Created attachment 170289 [details]
A backtrace of a third crash
Comment 6 Christoph Cullmann 2024-09-21 15:27:58 UTC

*** This bug has been marked as a duplicate of bug 479319 ***