Bug 394375 - Kate crashes when undoing a file restoration
Summary: Kate crashes when undoing a file restoration
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 18.04.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-05-17 14:57 UTC by Mayeul C.
Modified: 2019-05-27 04:33 UTC (History)
1 user (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 Mayeul C. 2018-05-17 14:57:35 UTC
Application: kate (18.04.1)

Qt Version: 5.10.1
Frameworks Version: 5.46.0
Operating System: Linux 4.16.8-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I opened a file in Kate, and it offered me to restore its contents as it hadn't been closed correctly [1]. I couldn't display the diff [2], so I chose to restore the file. I then decided it wasn't worth it, so I hit Ctrl+Z to undo the restoration. Kate crashed.


[1] I moved the file around before saving it (which, strangely, made kate display an authentication window upon hitting ctrl+s).

[2] probably due to kompare or kdiff not being installed; though vimdiff -- or even diff -- could have been used as an alternative.

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fadbbb3f600 (LWP 7193))]

Thread 11 (Thread 0x7fad825f9700 (LWP 7206)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7fad82dfa700 (LWP 7205)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7fad835fb700 (LWP 7204)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7fad83dfc700 (LWP 7202)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fad90fd7700 (LWP 7201)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fad917d8700 (LWP 7200)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fad91fd9700 (LWP 7198)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fad927da700 (LWP 7197)):
#0  0x00007fadb1eb6ffc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fadb6b3af9c in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fad953e2149 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fad953e6029 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fad953e120d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fad953e4079 in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fad9d4e3700 (LWP 7195)):
#0  0x00007fadb6432ea9 in poll () at /usr/lib/libc.so.6
#1  0x00007fadafe8d523 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fadafe8d63e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fadb6d83254 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fadb6d2531b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fadb6b3471e in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fadb71a6416 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fada6930700 (LWP 7194)):
#0  0x00007fadb6432ea9 in poll () at /usr/lib/libc.so.6
#1  0x00007fadb22d7180 in  () at /usr/lib/libxcb.so.1
#2  0x00007fadb22d8e4b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fada96db82a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fadb6b39abd in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fadb1eb1075 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fadb643d53f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fadbbb3f600 (LWP 7193)):
[KCrash Handler]
#6  0x00007fadbb5076da in  () at /usr/lib/libKF5TextEditor.so.5
#7  0x00007fadbb505da4 in  () at /usr/lib/libKF5TextEditor.so.5
#8  0x00007fadbb5095b9 in KateUndoManager::undo() () at /usr/lib/libKF5TextEditor.so.5
#9  0x00007fadbb67320d in  () at /usr/lib/libKF5TextEditor.so.5
#10 0x00007fadb6d57606 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/libQt5Core.so.5
#11 0x00007fadb81fa533 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007fadb81fcdb6 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007fadb81fd766 in QAction::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007fadb8200fec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007fadb82089c6 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#16 0x00007fadb6d26ce0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#17 0x00007fadb7a25bd9 in QShortcutMap::dispatchEvent(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#18 0x00007fadb7a25cae in QShortcutMap::tryShortcut(QKeyEvent*) () at /usr/lib/libQt5Gui.so.5
#19 0x00007fadb79d31ed in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () at /usr/lib/libQt5Gui.so.5
#20 0x00007fadb79f2d18 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () at /usr/lib/libQt5Gui.so.5
#21 0x00007fadb79f7f66 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#22 0x00007fadb79cf29c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#23 0x00007fada976348d in  () at /usr/lib/libQt5XcbQpa.so.5
#24 0x00007fadb6d2531b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#25 0x00007fadb6d2e718 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#26 0x000055dbd5dcd66d in  ()
#27 0x00007fadb636806b in __libc_start_main () at /usr/lib/libc.so.6
#28 0x000055dbd5dcee6a in _start ()

Reported using DrKonqi
Comment 1 Ahmad Samir 2019-04-09 12:28:06 UTC
If you can still reproduce this issue, then please install the necessary debug packages and post the crash backtrace again.

Thanks.
Comment 2 Bug Janitor Service 2019-04-24 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Dominik Haumann 2019-04-27 06:41:09 UTC
Mayeul, do you still have these two files, i.e. the file itself + the swap file? If so, please attach them here, or send it to me privately. if not, we probably can't do anything about it right now.
Comment 4 Bug Janitor Service 2019-05-12 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2019-05-27 04:33:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!