Bug 482248 - Kate crashes when searching (always)
Summary: Kate crashes when searching (always)
Status: RESOLVED DUPLICATE of bug 482152
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-02 19:59 UTC by João Figueiredo
Modified: 2024-03-04 09:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description João Figueiredo 2024-03-02 19:59:53 UTC
SUMMARY
When a match is found in a file, kate crashes immediately, thus rendering the search function completely unusable.
It seems to be different from bug 480489, because it wasn't present in kate 23.08.4, and the crash happens as soon as the first match is found.


STEPS TO REPRODUCE
1. Create a new file;
2. Type any character;
3. Open the search tab and type a different character;
4. Now delete it and type the same character as in step 2.

OBSERVED RESULT
Instant crash.

EXPECTED RESULT
No crash :)

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0
Kernel Version: 6.7.7-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Stack trace of thread 227603:
#0  0x0000771d94293c6a n/a (libKF6TextEditor.so.6 + 0x93c6a)
#1  0x0000771d8c4e3875 n/a (katesearchplugin.so + 0x4b875)
#2  0x0000771d8c4e3d19 n/a (katesearchplugin.so + 0x4bd19)
#3  0x0000771d8c4d2929 n/a (katesearchplugin.so + 0x3a929)
#4  0x0000771d94d96dd9 n/a (libQt6Core.so.6 + 0x196dd9)
#5  0x0000771d94d9c554 _ZN6QTimer10timerEventEP11QTimerEvent (libQt6Core.so.6 + 0x19c554)
#6  0x0000771d94d87c06 _ZN7QObject5eventEP6QEvent (libQt6Core.so.6 + 0x187c06)
#7  0x0000771d95efbf5b _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt6Widgets.so.6 + 0xfbf>
#8  0x0000771d94d3d2c8 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt6Core.so.6 + 0x13d2c8)
#9  0x0000771d94eab1cd _ZN14QTimerInfoList14activateTimersEv (libQt6Core.so.6 + 0x2ab1cd)
#10 0x0000771d94f85f44 n/a (libQt6Core.so.6 + 0x385f44)
#11 0x0000771d9310df69 n/a (libglib-2.0.so.0 + 0x59f69)
#12 0x0000771d9316c3a7 n/a (libglib-2.0.so.0 + 0xb83a7)
#13 0x0000771d9310c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
#14 0x0000771d94f83b04 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (>
#15 0x0000771d94d454fe _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x1454fe)
#16 0x0000771d94d40ee8 _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x140ee8)
#17 0x000064f69d7aaeb4 n/a (kate + 0x8eb4)
#18 0x0000771d94643cd0 n/a (libc.so.6 + 0x25cd0)
#19 0x0000771d94643d8a __libc_start_main (libc.so.6 + 0x25d8a)
#20 0x000064f69d7ad845 n/a (kate + 0xb845)

Stack trace of thread 227604:
#0  0x0000771d947190bf __poll (libc.so.6 + 0xfb0bf)
#1  0x0000771d9316c2f6 n/a (libglib-2.0.so.0 + 0xb82f6)
#2  0x0000771d9310c162 g_main_context_iteration (libglib-2.0.so.0 + 0x58162)
#3  0x0000771d94f83b04 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (>
#4  0x0000771d94d454fe _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x1454fe)
#5  0x0000771d94e2c17f _ZN7QThread4execEv (libQt6Core.so.6 + 0x22c17f)
#6  0x0000771d95bb613f n/a (libQt6DBus.so.6 + 0x2c13f)
#7  0x0000771d94ead5e3 n/a (libQt6Core.so.6 + 0x2ad5e3)
#8  0x0000771d946a955a n/a (libc.so.6 + 0x8b55a)
#9  0x0000771d94726a3c n/a (libc.so.6 + 0x108a3c)

Stack trace of thread 227605:
#0  0x0000771d947190bf __poll (libc.so.6 + 0xfb0bf)
#1  0x0000771d8f94dce8 n/a (libQt6WaylandClient.so.6 + 0x64ce8)
#2  0x0000771d94ead5e3 n/a (libQt6Core.so.6 + 0x2ad5e3)
#3  0x0000771d946a955a n/a (libc.so.6 + 0x8b55a)
#4  0x0000771d94726a3c n/a (libc.so.6 + 0x108a3c)

Stack trace of thread 227608:
#0  0x0000771d946a5ebe n/a (libc.so.6 + 0x87ebe)
#1  0x0000771d946a8750 pthread_cond_wait (libc.so.6 + 0x8a750)
#2  0x0000771d8528681c n/a (iris_dri.so + 0x8681c)
#3  0x0000771d8529e7ec n/a (iris_dri.so + 0x9e7ec)
#4  0x0000771d946a955a n/a (libc.so.6 + 0x8b55a)
#5  0x0000771d94726a3c n/a (libc.so.6 + 0x108a3c)

Stack trace of thread 227619:
#0  0x0000771d94719616 ppoll (libc.so.6 + 0xfb616)
#1  0x0000771d94ea5a33 _Z12qt_safe_pollP6pollfdm14QDeadlineTimer (libQt6Core.so.6 + 0x2a5a33)
#2  0x0000771d95d4e212 n/a (libQt6Network.so.6 + 0x10e212)
#3  0x0000771d95ce2a63 n/a (libQt6Network.so.6 + 0xa2a63)
#4  0x0000771d95cda9f9 _ZN15QAbstractSocket16waitForReadyReadEi (libQt6Network.so.6 + 0x9a9f9)
#5  0x0000771d940c79da n/a (libKF6KIOCore.so.6 + 0x3c9da)
#6  0x0000771d941a7a9d n/a (libKF6KIOCore.so.6 + 0x11ca9d)
#7  0x0000771d94183632 n/a (libKF6KIOCore.so.6 + 0xf8632)
#8  0x0000771d94ead5e3 n/a (libQt6Core.so.6 + 0x2ad5e3)
#9  0x0000771d946a955a n/a (libc.so.6 + 0x8b55a)
#10 0x0000771d94726a3c n/a (libc.so.6 + 0x108a3c)

Stack trace of thread 227606:
#0  0x0000771d947190bf __poll (libc.so.6 + 0xfb0bf)
#1  0x0000771d8f94dce8 n/a (libQt6WaylandClient.so.6 + 0x64ce8)
#2  0x0000771d94ead5e3 n/a (libQt6Core.so.6 + 0x2ad5e3)
#3  0x0000771d946a955a n/a (libc.so.6 + 0x8b55a)
#4  0x0000771d94726a3c n/a (libc.so.6 + 0x108a3c)

Stack trace of thread 227607:
#0  0x0000771d946a5ebe n/a (libc.so.6 + 0x87ebe)
#1  0x0000771d946a8750 pthread_cond_wait (libc.so.6 + 0x8a750)
#2  0x0000771d8528681c n/a (iris_dri.so + 0x8681c)
#3  0x0000771d8529e7ec n/a (iris_dri.so + 0x9e7ec)
#4  0x0000771d946a955a n/a (libc.so.6 + 0x8b55a)
#5  0x0000771d94726a3c n/a (libc.so.6 + 0x108a3c)

Stack trace of thread 227620:
#0  0x0000771d946a5ebe n/a (libc.so.6 + 0x87ebe)
#1  0x0000771d946a8a65 pthread_cond_timedwait (libc.so.6 + 0x8aa65)
#2  0x0000771d94eb9ad4 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x2b9ad4)
Comment 1 fanzhuyifan 2024-03-03 16:53:51 UTC
Thank you for the bug report! Unfortunately I can't reproduce the crash myself on current git master, and the backtrace is incomplete and missing debug symbols for the following lines that we need to figure out exactly what's going wrong:

> #0  0x0000771d94293c6a n/a (libKF6TextEditor.so.6 + 0x93c6a)
> #1  0x0000771d8c4e3875 n/a (katesearchplugin.so + 0x4b875)
> #2  0x0000771d8c4e3d19 n/a (katesearchplugin.so + 0x4bd19)
> #3  0x0000771d8c4d2929 n/a (katesearchplugin.so + 0x3a929)

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 João Figueiredo 2024-03-03 19:29:04 UTC
I compiled from git master as well and can no longer reproduce it.
Thanks for your time, anyway (and sorry for the incomplete trace)!
Comment 3 Waqar Ahmed 2024-03-04 09:50:44 UTC

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