https://bugs.kde.org/show_bug.cgi?id=468492
nyanpasu64 <nyanpas...@tuta.io> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nyanpas...@tuta.io --- Comment #1 from nyanpasu64 <nyanpas...@tuta.io> --- I'm getting the same crash when diffing two shell scripts, but a different crash when using KDiff3 as a Git mergetool. The crash occurs on https://invent.kde.org/sdk/kdiff3/-/blob/1.10.1/src/difftextwindow.cpp?ref_type=tags#L1751. After hours of fruitless debugging (https://invent.kde.org/-/snippets/2597), rr, pernosco, asan, I recompiled KDiff3 in debug mode and saw: >ASSERT failure in QVector<T>::operator[]: "index out of range", file >/usr/include/qt/QtCore/qvector.h, line 457 All the invalid shared_ptr nonsense is a result of creating an out-of-bounds pointer and interpreting it as a pointer to Diff3WrapLine { std::shared_ptr<Diff3Line> pD3L ... }. Stack trace: ... 5 QMessageLogger::fatal(const char *, ...) const 0x7ffff5c9fede 6 qt_assert_x(const char *, const char *, const char *, int) 0x7ffff5c9ff9d 7 QVector<Diff3WrapLine>::operator[] qvector.h 457 0x55555573713a 8 DiffTextWindow::recalcWordWrapHelper difftextwindow.cpp 1749 0x555555730817 9 DiffTextWindow::recalcWordWrap difftextwindow.cpp 1639 0x55555572ff61 10 KDiff3App::slotFinishRecalcWordWrap pdiff.cpp 1533 0x55555570f099 11 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<int>, void, void (KDiff3App:: *)(int)>::call qobjectdefs_impl.h 152 0x55555571c5f9 12 QtPrivate::FunctionPointer<void (KDiff3App:: *)(int)>::call<QtPrivate::List<int>, void> qobjectdefs_impl.h 185 0x55555571a2fc 13 QtPrivate::QSlotObject<void (KDiff3App:: *)(int), QtPrivate::List<int>, void>::impl qobjectdefs_impl.h 418 0x5555557189f3 14 QObject::event(QEvent *) 0x7ffff5eb1c80 15 QApplicationPrivate::notify_helper(QObject *, QEvent *) 0x7ffff6b78b5c 16 QCoreApplication::notifyInternal2(QObject *, QEvent *) 0x7ffff5e8e028 17 QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *) 0x7ffff5e8eb33 18 ?? 0x7ffff5ed4f58 19 g_main_context_dispatch 0x7ffff490f53b 20 ?? 0x7ffff496c219 ... <More> -- You are receiving this mail because: You are watching all bug changes.