Bug 381312

Summary: Crash after setting a breakpoint/breakpoint moved
Product: [Applications] kdevelop Reporter: OlafLostViking <olaf.the.lost.viking>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version First Reported In: 5.1.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description OlafLostViking 2017-06-17 08:38:21 UTC
Application: kdevelop (5.1.1)

Qt Version: 5.9.0
Frameworks Version: 5.35.0
Operating System: Linux 4.11.5-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:

I returned to my code view after debugging with a breakpoint set. There I edited some code and wanted to set a new breakpoint. After clicking into the icon bar the breakpoint appears at a totally different place (potentially due to inserted/deleted lines of code) and KDevelop crashed.

- How to replicate:

While I didn't manage to let KDevelop crash again, you can at least see the breakpoint problem by setting a breakpoint, inserting some lines before it and then setting another breakpoint/deleting it. The positions will be messed up.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcb05cea840 (LWP 3984))]

Thread 13 (Thread 0x7fca80c7a700 (LWP 15338)):
#0  0x00007fcafa08ea29 in g_mutex_lock () at /usr/lib/libglib-2.0.so.0
#1  0x00007fcafa049143 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcafa049b2b in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007fcb033eee9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007fcb031b740a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 12 (Thread 0x7fcaaa79d700 (LWP 4669)):
#0  0x00007fcafc4be39d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fcaf3ea6ac4 in  () at /usr/lib/libQt5Script.so.5
#2  0x00007fcaf3ea6b09 in  () at /usr/lib/libQt5Script.so.5
#3  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 11 (Thread 0x7fcaa9f9c700 (LWP 4129)):
#0  0x00007fcafa049136 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#1  0x00007fcafa049b2b in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcb033eee9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcb031b740a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fcb00cdcd3f in  () at /usr/lib/libKDevPlatformLanguage.so.10
#7  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 10 (Thread 0x7fcaab7fe700 (LWP 4086)):
#0  0x00007fcb02ac62bd in poll () at /usr/lib/libc.so.6
#1  0x00007fcafa049bf9 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcb033eee9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcb031b740a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 9 (Thread 0x7fcaabfff700 (LWP 4027)):
#0  0x00007fcafc4be39d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fcb031bd0eb in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fcaf764f3cd in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fcaf76542b8 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fcaf7651b6b in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#7  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#8  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 8 (Thread 0x7fcab8a58700 (LWP 4026)):
#0  0x00007fcafc4be39d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fcb031bd0eb in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fcaf764f3cd in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fcaf76542b8 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fcaf7654312 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fcaf7654312 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#9  0x00007fcaf7651b6b in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#10 0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#11 0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#12 0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7fcabbfff700 (LWP 4025)):
#0  0x00007fcafc4be39d in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fcb031bd0eb in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fcaf764f3cd in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x00007fcaf76542b8 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#5  0x00007fcaf7654312 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#6  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#7  0x00007fcaf7654312 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#8  0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#9  0x00007fcaf7654312 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#10 0x00007fcaf764e913 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#11 0x00007fcaf7651b6b in ThreadWeaver::Thread::run() () at /usr/lib/libKF5ThreadWeaver.so.5
#12 0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#13 0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#14 0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7fcabb7fe700 (LWP 4005)):
#0  0x00007fcafa08ea44 in g_mutex_unlock () at /usr/lib/libglib-2.0.so.0
#1  0x00007fcafa049799 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcafa049c78 in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007fcb033eee9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007fcb031b740a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007fcaf827e645 in  () at /usr/lib/libQt5Qml.so.5
#8  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#9  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7fcac2a54700 (LWP 3989)):
#0  0x00007fcafa04911c in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#1  0x00007fcafa049b2b in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcb033eee9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcb031b740a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fcb00cdcd3f in  () at /usr/lib/libKDevPlatformLanguage.so.10
#7  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7fcad9606700 (LWP 3988)):
#0  0x00007fcafc4be6cc in pthread_cond_timedwait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007fcb031bcfa8 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/libQt5Core.so.5
#2  0x00007fcb00bdb308 in  () at /usr/lib/libKDevPlatformLanguage.so.10
#3  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#4  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#5  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7fcae2b8b700 (LWP 3987)):
#0  0x00007fcb02ac62bd in poll () at /usr/lib/libc.so.6
#1  0x00007fcafa049bf9 in  () at /usr/lib/libglib-2.0.so.0
#2  0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#3  0x00007fcb033eee9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#4  0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007fcb031b740a in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x00007fcb04f20d45 in  () at /usr/lib/libQt5DBus.so.5
#7  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#8  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#9  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7fcae4793700 (LWP 3986)):
#0  0x00007fcb02ac62bd in poll () at /usr/lib/libc.so.6
#1  0x00007fcaf25918e0 in  () at /usr/lib/libxcb.so.1
#2  0x00007fcaf2593679 in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007fcae68e8d49 in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007fcb031bbcbd in  () at /usr/lib/libQt5Core.so.5
#5  0x00007fcafc4b8297 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007fcb02ad025f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7fcb05cea840 (LWP 3984)):
[KCrash Handler]
#5  0x00007fcb03bc15fe in QRegion::operator+=(QRect const&) () at /usr/lib/libQt5Gui.so.5
#6  0x00007fcb040d2b1f in  () at /usr/lib/libQt5Widgets.so.5
#7  0x00007fcb040ec925 in QWidget::update(QRect const&) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007fcaff930797 in  () at /usr/lib/libKF5TextEditor.so.5
#9  0x00007fcaff885d7d in KTextEditor::DocumentPrivate::tagLines(int, int) () at /usr/lib/libKF5TextEditor.so.5
#10 0x00007fcaff887404 in KTextEditor::DocumentPrivate::removeMark(int, unsigned int) () at /usr/lib/libKF5TextEditor.so.5
#11 0x00007fcaff947997 in  () at /usr/lib/libKF5TextEditor.so.5
#12 0x00007fcb04101d68 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007fcb040c146c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007fcb040c924f in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007fcb03396b98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#16 0x00007fcb040c8222 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007fcb0411c8db in  () at /usr/lib/libQt5Widgets.so.5
#18 0x00007fcb0411ef4a in  () at /usr/lib/libQt5Widgets.so.5
#19 0x00007fcb040c146c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007fcb040c8cf4 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007fcb03396b98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#22 0x00007fcb038ffa93 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5
#23 0x00007fcb03901575 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/libQt5Gui.so.5
#24 0x00007fcb038d9c0b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5
#25 0x00007fcae694b1b0 in  () at /usr/lib/libQt5XcbQpa.so.5
#26 0x00007fcafa049a47 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#27 0x00007fcafa049c78 in  () at /usr/lib/libglib-2.0.so.0
#28 0x00007fcafa049d0c in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#29 0x00007fcb033eee7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#30 0x00007fcb0339521a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#31 0x00007fcb0339da74 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#32 0x000000000040be4d in  ()
#33 0x00007fcb02a0343a in __libc_start_main () at /usr/lib/libc.so.6
#34 0x000000000040c49a in _start ()

Reported using DrKonqi
Comment 1 OlafLostViking 2017-06-17 08:43:14 UTC
Mh, this could be related to bug #310725 .

Other reports about crashes after breakpoint editing (weren't found by DrKonqi):
- bug #334877
- bug #340844
- bug #347529
- bug #348945
- bug #350490
- bug #361693
- bug #363237
- bug #372937
- bug #377995
Comment 2 Justin Zobel 2020-12-17 05:29:53 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 3 Bug Janitor Service 2021-01-01 04:36:59 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 4 Bug Janitor Service 2021-01-16 04:35:58 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!