Bug 401162 - Kate crash on openning a file
Summary: Kate crash on openning a file
Status: RESOLVED DUPLICATE of bug 401480
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 18.08.0
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-11-18 11:32 UTC by Martial Guex
Modified: 2018-12-31 08:18 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 Martial Guex 2018-11-18 11:32:55 UTC
Application: kate (18.08.0)

Qt Version: 5.11.2
Frameworks Version: 5.51.0
Operating System: Linux 4.18.0-2-amd64 x86_64
Distribution: Debian GNU/Linux oldoldstable-updates (sid)

-- Information about the crash:
kate crash from some files  not so special.
For exemple I can open ESPEasyWiFiEvent.h from src/espeasy git clone (https://github.com/letscontrolit/ESPEasy) but crash with file ESPEasyWiFiEvent.ino

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa4aafeb800 (LWP 24440))]

Thread 6 (Thread 0x7fa48bfff700 (LWP 24714)):
#0  0x00007fa4aeda1e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55cb11478d50) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fa4aeda1e6c in __pthread_cond_wait_common (abstime=0x0, mutex=0x55cb11478d00, cond=0x55cb11478d28) at pthread_cond_wait.c:502
#2  0x00007fa4aeda1e6c in __pthread_cond_wait (cond=0x55cb11478d28, mutex=0x55cb11478d00) at pthread_cond_wait.c:655
#3  0x00007fa4b083f44b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa4a0a32d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fa4a0a36ae8 in  () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fa4a0a31e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007fa4a0a34bb9 in ThreadWeaver::Thread::run() () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007fa4b083ec97 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fa4aed9bf2a in start_thread (arg=0x7fa48bfff700) at pthread_create.c:463
#10 0x00007fa4b0531edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fa49892b700 (LWP 24713)):
#0  0x00007fa4aeda1e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55cb11478d50) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fa4aeda1e6c in __pthread_cond_wait_common (abstime=0x0, mutex=0x55cb11478d00, cond=0x55cb11478d28) at pthread_cond_wait.c:502
#2  0x00007fa4aeda1e6c in __pthread_cond_wait (cond=0x55cb11478d28, mutex=0x55cb11478d00) at pthread_cond_wait.c:655
#3  0x00007fa4b083f44b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa4a0a32d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fa4a0a36ae8 in  () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fa4a0a31e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007fa4a0a34bb9 in ThreadWeaver::Thread::run() () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007fa4b083ec97 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fa4aed9bf2a in start_thread (arg=0x7fa49892b700) at pthread_create.c:463
#10 0x00007fa4b0531edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fa49912c700 (LWP 24710)):
#0  0x00007fa4aeda1e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55cb11478d50) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fa4aeda1e6c in __pthread_cond_wait_common (abstime=0x0, mutex=0x55cb11478d00, cond=0x55cb11478d28) at pthread_cond_wait.c:502
#2  0x00007fa4aeda1e6c in __pthread_cond_wait (cond=0x55cb11478d28, mutex=0x55cb11478d00) at pthread_cond_wait.c:655
#3  0x00007fa4b083f44b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa4a0a32d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fa4a0a36ae8 in  () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fa4a0a31e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007fa4a0a34bb9 in ThreadWeaver::Thread::run() () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007fa4b083ec97 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fa4aed9bf2a in start_thread (arg=0x7fa49912c700) at pthread_create.c:463
#10 0x00007fa4b0531edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fa49992d700 (LWP 24709)):
#0  0x00007fa4aeda1e6c in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55cb11478d50) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fa4aeda1e6c in __pthread_cond_wait_common (abstime=0x0, mutex=0x55cb11478d00, cond=0x55cb11478d28) at pthread_cond_wait.c:502
#2  0x00007fa4aeda1e6c in __pthread_cond_wait (cond=0x55cb11478d28, mutex=0x55cb11478d00) at pthread_cond_wait.c:655
#3  0x00007fa4b083f44b in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa4a0a32d30 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007fa4a0a36ae8 in  () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007fa4a0a31e3d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007fa4a0a34bb9 in ThreadWeaver::Thread::run() () at /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007fa4b083ec97 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fa4aed9bf2a in start_thread (arg=0x7fa49992d700) at pthread_create.c:463
#10 0x00007fa4b0531edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fa4a15d8700 (LWP 24703)):
#0  0x00007fa4b0527739 in __GI___poll (fds=0x7fa49c002930, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fa4ae159e46 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa4ae159f6c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa4b0a38d2b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fa4b09e5d0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fa4b08350c6 in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fa4b0c8c545 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fa4b083ec97 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fa4aed9bf2a in start_thread (arg=0x7fa4a15d8700) at pthread_create.c:463
#9  0x00007fa4b0531edf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fa4aafeb800 (LWP 24440)):
[KCrash Handler]
#4  0x00007fa4b238e66a in  () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#5  0x00007fa4afeddd19 in KSyntaxHighlighting::AbstractHighlighter::highlightLine(QString const&, KSyntaxHighlighting::State const&) () at /usr/lib/x86_64-linux-gnu/libKF5SyntaxHighlighting.so.5
#6  0x00007fa4b2463e3d in  () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#7  0x00007fa4b2407ba5 in KateBuffer::doHighlight(int, int, bool) () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#8  0x00007fa4b23e84b3 in KTextEditor::DocumentPrivate::kateTextLine(int) () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#9  0x00007fa4b2474def in KTextEditor::ViewPrivate::updateFoldingConfig() () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#10 0x00007fa4b247518d in KTextEditor::ViewPrivate::updateConfig() () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#11 0x00007fa4b247a6ae in KTextEditor::ViewPrivate::ViewPrivate(KTextEditor::DocumentPrivate*, QWidget*, KTextEditor::MainWindow*) () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#12 0x00007fa4b23f33f8 in KTextEditor::DocumentPrivate::createView(QWidget*, KTextEditor::MainWindow*) () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#13 0x000055cb0f62e2fd in  ()
#14 0x000055cb0f625f5d in  ()
#15 0x000055cb0f627572 in  ()
#16 0x000055cb0f62782b in  ()
#17 0x000055cb0f652616 in  ()
#18 0x00007fa4b09f58e5 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fa4b09f6fce in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fa4b24e16e9 in KTextEditor::MainWindow::openUrl(QUrl const&, QString const&) () at /usr/lib/x86_64-linux-gnu/libKF5TextEditor.so.5
#21 0x00007fa4a0a8154a in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/ktexteditor/kateprojectplugin.so
#22 0x00007fa4b0a103e0 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fa4b170d985 in QAbstractItemView::clicked(QModelIndex const&) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fa4b1710ffe in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fa4b1782a3b in QTreeView::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007fa4b15057c8 in QWidget::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007fa4b15a8dee in QFrame::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#28 0x00007fa4b171a35b in QAbstractItemView::viewportEvent(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007fa4b17822bb in QTreeView::viewportEvent(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007fa4b09e6d4b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007fa4b14c7481 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007fa4b14ced18 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007fa4b09e7039 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007fa4b14ce019 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007fa4b1520304 in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007fa4b1522e8e in  () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007fa4b14c7491 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#38 0x00007fa4b14cead0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007fa4b09e7039 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007fa4b0efab2b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#41 0x00007fa4b0efca25 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#42 0x00007fa4b0ed6d8b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#43 0x00007fa4aad1f85b in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#44 0x00007fa4b09e5d0b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#45 0x00007fa4b09ede82 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x000055cb0f605a25 in  ()
#47 0x00007fa4b045cb17 in __libc_start_main (main=0x55cb0f603ac0, argc=3, argv=0x7ffd6da357f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd6da357e8) at ../csu/libc-start.c:310
#48 0x000055cb0f6070ba in _start ()

Reported using DrKonqi
Comment 1 Lothar 2018-12-29 14:26:05 UTC
> but crash with file ESPEasyWiFiEvent.ino

I have tried these two, could not find "ESPEasyWiFiEvent.ino"
https://github.com/letscontrolit/ESPEasy/blob/mega/src/ESPEasyWiFiEvent.h
https://github.com/letscontrolit/ESPEasy/blob/mega/src/ESPEasyWifi.ino

but without crash. Have chose RAW mode on GitHub, copy&paste, save. close, open.
Kate Version 19.03.70
Frameworks 5.53.0
Comment 2 Kåre Särs 2018-12-30 21:09:05 UTC
I think the issue is with a custom arduino highlighting file that does not work with libKF5SyntaxHighlighting

*** This bug has been marked as a duplicate of bug 401480 ***
Comment 3 Lothar 2018-12-31 08:18:08 UTC
Yes, and he knew it. 
https://bugs.kde.org/show_bug.cgi?id=401480#c4
A hint here would have been nice.