jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.68k stars 105 forks source link

Konsole Crashes When Zooming In #224

Open Strbean1 opened 3 years ago

Strbean1 commented 3 years ago

Steps to reproduce:

  1. Open amp in Konsole
  2. Use Ctrl+Scroll to Zoom in and out

I either get this error:

user-pc% konsole
HistoryFile::add.write: Bad address
zsh: segmentation fault (core dumped)  konsole

or this:

user-pc% konsole
corrupted size vs. prev_size while consolidating
zsh: abort (core dumped)  konsole

Any idea why this happens? Should I report to KDE instead?

christoph-heiss commented 3 years ago

I managed to recreate the crash, just wildly zooming in and out while Amp is open with a file.

This seems like some sort of memory corruption inside of Konsole. Thus I think reporting to upstream KDE is the way to go, seems like a very weird issue to me.

I've captured multiple backtraces + full core dumps from the crash. If needed, I can gladly chime in on the KDE bugtracker and help figuring this out.

Below is one backtrace, which you can use when reporting to KDE. This was on a fully up-to-date Arch Linux box (konsole 21.04.0).

Backtrace kernel: konsole[52891]: segfault at 10 ip 00007fe054a09b84 sp 00007ffdc682ede0 error 4 in libkonsoleprivate.so.21.04.0[7fe0549e7000+cf000] kernel: Code: 41 54 55 89 f5 be 08 00 00 00 53 48 83 ec 08 48 8b 07 bf 10 00 00 00 44 8b 20 ff 15 f6 20 10 00 49 8b 4d 00 48 89 c3 8b 41 04 <48> 8b 7b 10 89 43 04 48 8b 41 10 48 01 df 48 63 51 04 48 8d 34 01 Stack trace of thread 52891: #0 0x00007fe054a09b84 n/a (libkonsoleprivate.so.21 + 0x7cb84) #1 0x00007fe054a088d4 _ZN7Konsole6Screen16displayCharacterEj (libkonsoleprivate.so.21 + 0x7b8d4) #2 0x00007fe054a1d743 n/a (libkonsoleprivate.so.21 + 0x90743) #3 0x00007fe0549f7a1a _ZN7Konsole9Emulation11receiveDataEPKci (libkonsoleprivate.so.21 + 0x6aa1a) #4 0x00007fe054fcbb76 n/a (libQt5Core.so.5 + 0x2edb76) #5 0x00007fe0549e91be _ZN7Konsole3Pty12receivedDataEPKci (libkonsoleprivate.so.21 + 0x5c1be) #6 0x00007fe0549ffed7 _ZN7Konsole3Pty12dataReceivedEv (libkonsoleprivate.so.21 + 0x72ed7) #7 0x00007fe054fcbb76 n/a (libQt5Core.so.5 + 0x2edb76) #8 0x00007fe052a4a13d n/a (libKF5Pty.so.5 + 0x613d) #9 0x00007fe052a4aae9 n/a (libKF5Pty.so.5 + 0x6ae9) #10 0x00007fe054fcbbb0 n/a (libQt5Core.so.5 + 0x2edbb0) #11 0x00007fe054fcf175 _ZN15QSocketNotifier9activatedEiNS_14QPrivateSignalE (libQt5Core.so.5 + 0x2f1175) #12 0x00007fe054fcf928 _ZN15QSocketNotifier5eventEP6QEvent (libQt5Core.so.5 + 0x2f1928) #13 0x00007fe053f18762 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5 + 0x15a762) #14 0x00007fe054f9481a _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b681a) #15 0x00007fe054fedf36 n/a (libQt5Core.so.5 + 0x30ff36) #16 0x00007fe052b3b02c g_main_context_dispatch (libglib-2.0.so.0 + 0x5402c) #17 0x00007fe052b8eb59 n/a (libglib-2.0.so.0 + 0xa7b59) #18 0x00007fe052b38781 g_main_context_iteration (libglib-2.0.so.0 + 0x51781) #19 0x00007fe054fed321 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30f321) #20 0x00007fe054f9317c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b517c) #21 0x00007fe054f9b634 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bd634) #22 0x00007fe0552f6d50 kdemain (libkdeinit5_konsole.so + 0x26d50) #23 0x00007fe054b38b25 __libc_start_main (libc.so.6 + 0x27b25) #24 0x000055841e22905e n/a (konsole + 0x205e) Stack trace of thread 52893: #0 0x00007fe054c0537f __poll (libc.so.6 + 0xf437f) #1 0x00007fe0520c463b n/a (libxcb.so.1 + 0xc63b) #2 0x00007fe0520c637b xcb_wait_for_event (libxcb.so.1 + 0xe37b) #3 0x00007fe04ed64161 n/a (libQt5XcbQpa.so.5 + 0x5e161) #4 0x00007fe054dac08f n/a (libQt5Core.so.5 + 0xce08f) #5 0x00007fe0534f8299 start_thread (libpthread.so.0 + 0x9299) #6 0x00007fe054c10053 __clone (libc.so.6 + 0xff053) Stack trace of thread 52895: #0 0x00007fe054c0537f __poll (libc.so.6 + 0xf437f) #1 0x00007fe052b8eae8 n/a (libglib-2.0.so.0 + 0xa7ae8) #2 0x00007fe052b3a593 g_main_loop_run (libglib-2.0.so.0 + 0x53593) #3 0x00007fe04d9c6558 n/a (libgio-2.0.so.0 + 0x102558) #4 0x00007fe052b690c1 n/a (libglib-2.0.so.0 + 0x820c1) #5 0x00007fe0534f8299 start_thread (libpthread.so.0 + 0x9299) #6 0x00007fe054c10053 __clone (libc.so.6 + 0xff053) Stack trace of thread 52894: #0 0x00007fe054c0537f __poll (libc.so.6 + 0xf437f) #1 0x00007fe052b8eae8 n/a (libglib-2.0.so.0 + 0xa7ae8) #2 0x00007fe052b38781 g_main_context_iteration (libglib-2.0.so.0 + 0x51781) #3 0x00007fe052b387d2 n/a (libglib-2.0.so.0 + 0x517d2) #4 0x00007fe052b690c1 n/a (libglib-2.0.so.0 + 0x820c1) #5 0x00007fe0534f8299 start_thread (libpthread.so.0 + 0x9299) #6 0x00007fe054c10053 __clone (libc.so.6 + 0xff053) Stack trace of thread 52896: #0 0x00007fe054c0537f __poll (libc.so.6 + 0xf437f) #1 0x00007fe052b8eae8 n/a (libglib-2.0.so.0 + 0xa7ae8) #2 0x00007fe052b38781 g_main_context_iteration (libglib-2.0.so.0 + 0x51781) #3 0x00007fe054fed321 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30f321) #4 0x00007fe054f9317c _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b517c) #5 0x00007fe054daaea2 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccea2) #6 0x00007fe0525d0098 n/a (libQt5DBus.so.5 + 0x17098) #7 0x00007fe054dac08f n/a (libQt5Core.so.5 + 0xce08f) #8 0x00007fe0534f8299 start_thread (libpthread.so.0 + 0x9299) #9 0x00007fe054c10053 __clone (libc.so.6 + 0xff053)
Strbean1 commented 3 years ago

Thanks for the reply, I made a report here