Bug 417890 - Kile Crash
Summary: Kile Crash
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: 19.12.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-02-19 18:37 UTC by kiran.vktm
Modified: 2020-03-14 18:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kiran.vktm 2020-02-19 18:37:04 UTC
Application: kile (2.9.91)

Qt Version: 5.14.1
Frameworks Version: 5.67.0
Operating System: Linux 5.3.0-40-generic x86_64
Windowing system: X11
Distribution: KDE neon User Edition 5.18

-- Information about the crash:
- What I was doing when the application crashed:
Created a Kile new file;
Selected document type:Kile Script(empty file);
Pressed OK;
typed: \begin{
Pressed on the down arrow button appeared on the left margin;
crashed everytime;



- Custom settings of the application:

The crash can be reproduced every time.

-- Backtrace:
Application: Kile (kile), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f10a66c6840 (LWP 13688))]

Thread 6 (Thread 0x7f106b056700 (LWP 13693)):
#0  0x00007f109ecbf9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x557a4fea87f8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x557a4fea87a8, cond=0x557a4fea87d0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x557a4fea87d0, mutex=0x557a4fea87a8) at pthread_cond_wait.c:655
#3  0x00007f1070608ebb in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f1070608ab7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f109ecb96db in start_thread (arg=0x7f106b056700) at pthread_create.c:463
#6  0x00007f10a5c6e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f107edee700 (LWP 13692)):
#0  0x00007f109ecbf9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x557a4feb0cc0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x557a4feb0c70, cond=0x557a4feb0c98) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x557a4feb0c98, mutex=0x557a4feb0c70) at pthread_cond_wait.c:655
#3  0x00007f109f52ad9b in QWaitConditionPrivate::wait (deadline=..., this=0x557a4feb0c70) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x557a4fde65f0, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f109f52af19 in QWaitCondition::wait (this=0x557a4fde65f8, mutex=0x557a4fde65f0, time=<optimized out>) at thread/qwaitcondition_unix.cpp:208
#6  0x00007f10a616f195 in ?? () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kile.so
#7  0x00007f109f5247ec in QThreadPrivate::start (arg=0x557a4fde65c0) at thread/qthread_unix.cpp:342
#8  0x00007f109ecb96db in start_thread (arg=0x7f107edee700) at pthread_create.c:463
#9  0x00007f10a5c6e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f107f5ef700 (LWP 13691)):
#0  0x00007f109ecbf9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x557a4fec4620) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x557a4fec45d0, cond=0x557a4fec45f8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x557a4fec45f8, mutex=0x557a4fec45d0) at pthread_cond_wait.c:655
#3  0x00007f109f52ad9b in QWaitConditionPrivate::wait (deadline=..., this=0x557a4fec45d0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait (this=<optimized out>, mutex=0x557a4fde6560, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007f109f52af19 in QWaitCondition::wait (this=0x557a4fde6568, mutex=0x557a4fde6560, time=<optimized out>) at thread/qwaitcondition_unix.cpp:208
#6  0x00007f10a616f195 in ?? () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kile.so
#7  0x00007f109f5247ec in QThreadPrivate::start (arg=0x557a4fde6530) at thread/qthread_unix.cpp:342
#8  0x00007f109ecb96db in start_thread (arg=0x7f107f5ef700) at pthread_create.c:463
#9  0x00007f10a5c6e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f1084b10700 (LWP 13690)):
#0  0x00007f10a5c61bf9 in __GI___poll (fds=0x7f107801bc50, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f10975bd5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f10975bd6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f109f7730db in QEventDispatcherGlib::processEvents (this=0x7f1078000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f109f71263a in QEventLoop::exec (this=this@entry=0x7f1084b0fd30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f109f523317 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#6  0x00007f10a0d24555 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f109f5247ec in QThreadPrivate::start (arg=0x7f10a0f9cda0) at thread/qthread_unix.cpp:342
#8  0x00007f109ecb96db in start_thread (arg=0x7f1084b10700) at pthread_create.c:463
#9  0x00007f10a5c6e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f1087898700 (LWP 13689)):
#0  0x00007f10a5c61bf9 in __GI___poll (fds=0x7f1087897c68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f10992fa747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f10992fc36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f1089ff6cc0 in QXcbEventQueue::run (this=0x557a4fd21420) at qxcbeventqueue.cpp:228
#4  0x00007f109f5247ec in QThreadPrivate::start (arg=0x557a4fd21420) at thread/qthread_unix.cpp:342
#5  0x00007f109ecb96db in start_thread (arg=0x7f1087898700) at pthread_create.c:463
#6  0x00007f10a5c6e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f10a66c6840 (LWP 13688)):
[KCrash Handler]
#6  QString::length (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:932
#7  Kate::TextLineData::length (this=<optimized out>) at ./src/buffer/katetextline.h:285
#8  KTextEditor::ViewPrivate::foldLine (this=this@entry=0x557a50fbb080, line=line@entry=0) at ./src/view/kateview.cpp:1273
#9  0x00007f10a456452a in KTextEditor::ViewPrivate::toggleFoldingOfLine (this=0x557a50fbb080, line=line@entry=0) at ./src/view/kateview.cpp:1312
#10 0x00007f10a458c0e5 in KateIconBorder::mouseReleaseEvent (this=0x557a510a4dd0, e=0x7ffe92922af0) at ./src/view/kateviewhelpers.cpp:2342
#11 0x00007f10a063e7f8 in QWidget::event (this=0x557a510a4dd0, event=0x7ffe92922af0) at kernel/qwidget.cpp:9031
#12 0x00007f10a05fd8bc in QApplicationPrivate::notify_helper (this=this@entry=0x557a4fd1dd20, receiver=receiver@entry=0x557a510a4dd0, e=e@entry=0x7ffe92922af0) at kernel/qapplication.cpp:3684
#13 0x00007f10a0605908 in QApplication::notify (this=<optimized out>, receiver=0x557a510a4dd0, e=0x7ffe92922af0) at kernel/qapplication.cpp:3128
#14 0x00007f109f713db8 in QCoreApplication::notifyInternal2 (receiver=0x557a510a4dd0, event=0x7ffe92922af0) at kernel/qcoreapplication.cpp:1092
#15 0x00007f109f713f9e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x557a510a4dd0, event=event@entry=0x7ffe92922af0) at kernel/qcoreapplication.cpp:1499
#16 0x00007f10a0603f8f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x557a510a4dd0, event=event@entry=0x7ffe92922af0, alienWidget=0x557a510a4dd0, nativeWidget=0x557a4fda5810, buttonDown=buttonDown@entry=0x7f10a0d0d980 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2614
#17 0x00007f10a0658eb1 in QWidgetWindow::handleMouseEvent (this=this@entry=0x557a4fedc790, event=event@entry=0x7ffe92922f70) at kernel/qwidgetwindow.cpp:673
#18 0x00007f10a065bd1a in QWidgetWindow::event (this=0x557a4fedc790, event=0x7ffe92922f70) at kernel/qwidgetwindow.cpp:295
#19 0x00007f10a05fd8bc in QApplicationPrivate::notify_helper (this=this@entry=0x557a4fd1dd20, receiver=receiver@entry=0x557a4fedc790, e=e@entry=0x7ffe92922f70) at kernel/qapplication.cpp:3684
#20 0x00007f10a0604ac0 in QApplication::notify (this=0x7ffe92923520, receiver=0x557a4fedc790, e=0x7ffe92922f70) at kernel/qapplication.cpp:3430
#21 0x00007f109f713db8 in QCoreApplication::notifyInternal2 (receiver=0x557a4fedc790, event=0x7ffe92922f70) at kernel/qcoreapplication.cpp:1092
#22 0x00007f109f713f9e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x557a4fedc790, event=event@entry=0x7ffe92922f70) at kernel/qcoreapplication.cpp:1499
#23 0x00007f109fd0ff95 in QGuiApplicationPrivate::processMouseEvent (e=0x557a5121afc0) at kernel/qguiapplication.cpp:2209
#24 0x00007f109fd110c5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x557a5121afc0) at kernel/qguiapplication.cpp:1941
#25 0x00007f109fcea01b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1163
#26 0x00007f1089ff7c8a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#27 0x00007f10975bd417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f10975bd650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f10975bd6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f109f7730bc in QEventDispatcherGlib::processEvents (this=0x557a4fd6f870, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007f109f71263a in QEventLoop::exec (this=this@entry=0x7ffe92923310, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#32 0x00007f109f71bdb0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1400
#33 0x00007f10a615e4cf in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kile.so
#34 0x00007f10a5b6eb97 in __libc_start_main (main=0x557a4dbca730, argc=1, argv=0x7ffe92923718, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe92923708) at ../csu/libc-start.c:310
#35 0x0000557a4dbca76a in _start ()

Possible duplicates by query: bug 91185, bug 274169, bug 238544, bug 118706.

Reported using DrKonqi
Comment 1 Christoph Cullmann 2020-03-14 16:32:06 UTC
Yep, can reproduce that :/
Bad :(
Comment 2 Christoph Cullmann 2020-03-14 18:47:26 UTC
Git commit 1527af3b5435c4592f8b8daf9ffc7304ec69b77b by Christoph Cullmann.
Committed on 14/03/2020 at 18:47.
Pushed by cullmann into branch 'master'.

fix folding crash for folding of single line folds

M  +2    -1    src/view/kateview.cpp

https://commits.kde.org/ktexteditor/1527af3b5435c4592f8b8daf9ffc7304ec69b77b