Bug 482108 - Cate crashes when open 8_000_000 lines
Summary: Cate crashes when open 8_000_000 lines
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
: 480417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-01 02:05 UTC by stalin.2025
Modified: 2024-03-09 19:56 UTC (History)
2 users (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 stalin.2025 2024-03-01 02:05:36 UTC
Application: kate (23.08.1)

Qt Version: 5.15.10
Frameworks Version: 5.110.0
Operating System: Linux 6.5.0-21-generic x86_64
Windowing System: X11
Distribution: Ubuntu 23.10
DrKonqi: 5.27.8 [KCrashBackend]

-- Information about the crash:
I am trying to open file with 8_000_000 lines (~2.0 Gb) and kate crash

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Aborted

[KCrash Handler]
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#7  0x00007f7b010428e6 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#8  0x00007f7b010268b7 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007f7b014a4f06 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f7b014b6e6c in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f7b014b6ed7 in std::terminate() () from /lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007f7b014b7138 in __cxa_throw () from /lib/x86_64-linux-gnu/libstdc++.so.6
#13 0x00007f7b01890261 in qBadAlloc() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f7b018973df in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f7b0195fbb5 in QString::append(QString const&) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f7b00d157ad in KTextEditor::DocumentPrivate::text(KTextEditor::Range const&, bool) const () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#17 0x00007f7b00de10b1 in KTextEditor::ViewPrivate::selectionText() const () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#18 0x00007f7b00de23f0 in ?? () from /lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#19 0x00007f7b01b06312 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f7b02965256 in QAction::triggered(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f7b02967f57 in QAction::activate(QAction::ActionEvent) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f7b02968b3d in QAction::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f7b0296bc82 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f7b01acc7a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f7b01f74981 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007f7b01f755a3 in QShortcutMap::tryShortcut(QKeyEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x00007f7b01f1adaa in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#28 0x00007f7b01f3f9b1 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007f7b01f1762c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007f7afbaf9f7e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#31 0x00007f7affb13b2c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f7affb6f46f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f7affb11d20 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f7b01b27daa in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f7b01acb15b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f7b01ad3904 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00005599c9246371 in ?? ()
#38 0x00007f7b01028150 in __libc_start_call_main (main=main@entry=0x5599c9244e50, argc=argc@entry=3, argv=argv@entry=0x7ffe8140b618) at ../sysdeps/nptl/libc_start_call_main.h:58
#39 0x00007f7b01028209 in __libc_start_main_impl (main=0x5599c9244e50, argc=3, argv=0x7ffe8140b618, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe8140b608) at ../csu/libc-start.c:360
#40 0x00005599c92486f5 in ?? ()
[Inferior 1 (process 12309) detached]

The reporter indicates this bug may be a duplicate of or related to bug 479073.

Reported using DrKonqi
Comment 1 Christoph Cullmann 2024-03-09 19:25:00 UTC
Could you retry with 24.02, at least that crash should be gone there.
Comment 2 Christoph Cullmann 2024-03-09 19:56:11 UTC
*** Bug 480417 has been marked as a duplicate of this bug. ***