Bug 368603 - crash when starting an lldb debug session
Summary: crash when starting an lldb debug session
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.0.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Peifeng Yu
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-09-11 18:17 UTC by RJVB
Modified: 2016-09-20 15:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0


Attachments
Fix Bug 268603, warn the user about unsupported lldb version (8.84 KB, patch)
2016-09-12 15:53 UTC, Peifeng Yu
Details
Add the option "Don't ask again" to warning dialog (9.06 KB, patch)
2016-09-12 16:11 UTC, Peifeng Yu
Details
Add propper detection of version string on OS X (9.55 KB, patch)
2016-09-14 22:10 UTC, Peifeng Yu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2016-09-11 18:17:08 UTC
Application: kdevelop5 (5.0.0)
 (Compiled from sources)
Qt Version: 5.6.1
Frameworks Version: 5.24.0
Operating System: Linux 4.5.7-ck1-mainline-core2-rjvb x86_64
Distribution: Ubuntu 14.04.5 LTS

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

This crash happens when trying to start a debugging session with the lldb plugin, with KDevelop git/master v4.90.91-551-g4a90319 . It happens on OS X as well.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f83c23b9780 (LWP 24817))]

Thread 17 (Thread 0x7f83a24ff700 (LWP 24818)):
#0  0x00007f83bf11efdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f83b2248b72 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f83b224a64f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f83a4f4fb09 in QXcbEventReader::run (this=0x1cc8c30) at /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/plugins/platforms/xcb/qxcbconnection.cpp:1325
#4  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x1cc8c30) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#5  0x00007f83b8eda184 in start_thread (arg=0x7f83a24ff700) at pthread_create.c:312
#6  0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 16 (Thread 0x7f83a1006700 (LWP 24819)):
#0  0x00007f83bf9e7806 in QTimerInfoList::repairTimersIfNeeded (this=0x7f8394002f20) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp:160
#1  0x00007f83bf9e7863 in QTimerInfoList::timerWait (this=0x7f8394002f20, tm=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp:382
#2  0x00007f83bf9e8b86 in timerSourcePrepareHelper (timeout=0x7f83a1005c74, src=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:126
#3  timerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7f83a1005c74) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:159
#4  0x00007f83b805468d in g_main_context_prepare (context=context@entry=0x7f8394000990, priority=priority@entry=0x7f83a1005cf8) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3352
#5  0x00007f83b8054f03 in g_main_context_iterate (context=context@entry=0x7f8394000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3714
#6  0x00007f83b80550ec in g_main_context_iteration (context=0x7f8394000990, may_block=may_block@entry=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#7  0x00007f83bf9e962b in QEventDispatcherGlib::processEvents (this=0x7f83940008c0, flags=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:419
#8  0x00007f83bf99356a in QEventLoop::exec (this=this@entry=0x7f83a1005e20, flags=..., flags@entry=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventloop.cpp:204
#9  0x00007f83bf7c8f8b in QThread::exec (this=this@entry=0x7f83c17cb400 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread.cpp:500
#10 0x00007f83c155a605 in QDBusConnectionManager::run (this=0x7f83c17cb400 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/dbus/qdbusconnection.cpp:189
#11 0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f83c17cb400 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#12 0x00007f83b8eda184 in start_thread (arg=0x7f83a1006700) at pthread_create.c:312
#13 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 15 (Thread 0x7f8390673700 (LWP 24821)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f83bf7ce9d6 in wait_relative (time=1000, this=0x25ea2f0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:126
#2  wait (time=1000, this=0x25ea2f0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:134
#3  QWaitCondition::wait (this=this@entry=0x25e3678, mutex=mutex@entry=0x25e3680, time=time@entry=1000) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#4  0x00007f83bd2916c8 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x25e3660) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevplatform5/kf5-kdevplatform-devel/work/kf5-kdevplatform-5/language/duchain/duchain.cpp:282
#5  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x25e3660) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#6  0x00007f83b8eda184 in start_thread (arg=0x7f8390673700) at pthread_create.c:312
#7  0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 14 (Thread 0x7f838123b700 (LWP 24822)):
#0  0x00007f83bf11efdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f83b8054fe4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f837c003420, timeout=-1, context=0x7f837c000990) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7f837c000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x00007f83b80550ec in g_main_context_iteration (context=0x7f837c000990, may_block=may_block@entry=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007f83bf9e962b in QEventDispatcherGlib::processEvents (this=0x7f837c0008c0, flags=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:419
#5  0x00007f83bf99356a in QEventLoop::exec (this=this@entry=0x7f838123ad90, flags=..., flags@entry=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventloop.cpp:204
#6  0x00007f83bf7c8f8b in QThread::exec (this=this@entry=0x30a85d0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread.cpp:500
#7  0x00007f83bd38eefc in KDevelop::CompletionWorkerThread::run (this=0x30a85d0) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevplatform5/kf5-kdevplatform-devel/work/kf5-kdevplatform-5/language/codecompletion/codecompletionmodel.cpp:89
#8  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x30a85d0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#9  0x00007f83b8eda184 in start_thread (arg=0x7f838123b700) at pthread_create.c:312
#10 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 13 (Thread 0x7f8373fde700 (LWP 25305)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x2523670) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2459230, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x29a82a0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#8  0x00007f83b8eda184 in start_thread (arg=0x7f8373fde700) at pthread_create.c:312
#9  0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 12 (Thread 0x7f8379ed1700 (LWP 25306)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x2523670) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2459230, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f83744d58b0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#8  0x00007f83b8eda184 in start_thread (arg=0x7f8379ed1700) at pthread_create.c:312
#9  0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 11 (Thread 0x7f8370bd9700 (LWP 25307)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x2523670) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2459230, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#10 0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#11 0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f835c039950) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#12 0x00007f83b8eda184 in start_thread (arg=0x7f8370bd9700) at pthread_create.c:312
#13 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 10 (Thread 0x7f83733de700 (LWP 25319)):
#0  0x00007f83bf11efdd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f83b8054fe4 in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f836418b120, timeout=-1, context=0x7f836422ba70) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7f836422ba70, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3729
#3  0x00007f83b80550ec in g_main_context_iteration (context=0x7f836422ba70, may_block=may_block@entry=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#4  0x00007f83bf9e962b in QEventDispatcherGlib::processEvents (this=0x7f83642120b0, flags=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:419
#5  0x00007f83bf99356a in QEventLoop::exec (this=this@entry=0x7f83733dde50, flags=..., flags@entry=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventloop.cpp:204
#6  0x00007f83bf7c8f8b in QThread::exec (this=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread.cpp:500
#7  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f83b3cd7828 <KDevelop::(anonymous namespace)::Q_QGS_s_parsingThread::innerFunction()::holder+8>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#8  0x00007f83b8eda184 in start_thread (arg=0x7f83733de700) at pthread_create.c:312
#9  0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7f8372bdd700 (LWP 25326)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7a6a5a0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f8372bdd700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7f834dad0700 (LWP 25327)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f8368053480) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#8  0x00007f83b8eda184 in start_thread (arg=0x7f834dad0700) at pthread_create.c:312
#9  0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7f834d2cf700 (LWP 25328)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f83500bf8e0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f834d2cf700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f834cace700 (LWP 25329)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f835401c680) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f834cace700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f834c2cd700 (LWP 25330)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f835801f900) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f834c2cd700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f834bacc700 (LWP 25331)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f83440013c0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f834bacc700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f834b2cb700 (LWP 25332)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f833c0013c0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f834b2cb700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f834aaca700 (LWP 25333)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f83bf7cea8b in wait (time=18446744073709551615, this=0x611c250) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7a36110, time=18446744073709551615) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
#3  0x00007f83b45c3246 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#4  0x00007f83b45bef3b in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#5  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#6  0x00007f83b45bef9a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#7  0x00007f83b45c2a03 in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#8  0x00007f83b45bf933 in ThreadWeaver::Thread::run() () from /opt/local/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5
#9  0x00007f83bf7cdc99 in QThreadPrivate::start (arg=0x7f83400013c0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/thread/qthread_unix.cpp:341
#10 0x00007f83b8eda184 in start_thread (arg=0x7f834aaca700) at pthread_create.c:312
#11 0x00007f83bf12c37d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f83c23b9780 (LWP 24817)):
[KCrash Handler]
#6  length (this=0x7f83bfa41850 <QListData::shared_null+16>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:866
#7  QRegularExpression::match (this=this@entry=0x7ffc94f70200, subject=..., offset=offset@entry=0, matchType=matchType@entry=QRegularExpression::NormalMatch, matchOptions=matchOptions@entry=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/tools/qregularexpression.cpp:1712
#8  0x00007f838f7a21aa in KDevMI::LLDB::DebugSession::handleVersion (this=0x7a832a0, s=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevelop5/kf5-kdevelop-devel/work/kf5-kdevelop-5/debuggers/lldb/debugsession.cpp:387
#9  0x00007f838f7bad95 in operator() (__args#0=..., this=<optimized out>) at /usr/include/c++/6/functional:2136
#10 handle (r=..., this=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevelop5/kf5-kdevelop-devel/work/kf5-kdevelop-5/debuggers/common/mi/micommand.cpp:34
#11 KDevMI::MI::MICommand::invokeHandler (this=0x88827a0, r=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevelop5/kf5-kdevelop-devel/work/kf5-kdevelop-5/debuggers/common/mi/micommand.cpp:111
#12 0x00007f838f7bf769 in KDevMI::MIDebugger::processLine (this=this@entry=0x8500f00, line=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevelop5/kf5-kdevelop-devel/work/kf5-kdevelop-5/debuggers/common/midebugger.cpp:198
#13 0x00007f838f7c0888 in KDevMI::MIDebugger::readyReadStandardOutput (this=0x8500f00) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevelop5/kf5-kdevelop-devel/work/kf5-kdevelop-5/debuggers/common/midebugger.cpp:135
#14 0x00007f83bf9c223c in call (a=0x7ffc94f70600, r=0x8500f00, this=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/include/QtCore/../../src/corelib/kernel/qobject_impl.h:124
#15 QMetaObject::activate (sender=sender@entry=0x8500ff0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qobject.cpp:3715
#16 0x00007f83bf9c2757 in QMetaObject::activate (sender=sender@entry=0x8500ff0, m=m@entry=0x7f83bfdd91c0 <QProcess::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qobject.cpp:3595
#17 0x00007f83bf8cd593 in QProcess::readyReadStandardOutput (this=this@entry=0x8500ff0) at .moc/moc_qprocess.cpp:359
#18 0x00007f83bf8ced3e in QProcessPrivate::tryReadFromChannel (this=0x8741f90, channel=0x87420c0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/io/qprocess.cpp:1027
#19 0x00007f83bf8d09f8 in _q_canReadStandardOutput (this=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/io/qprocess.cpp:1038
#20 QProcess::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc94f70850) at .moc/moc_qprocess.cpp:205
#21 0x00007f83bf9c2199 in QMetaObject::activate (sender=sender@entry=0x8886b10, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc94f70850) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qobject.cpp:3730
#22 0x00007f83bf9c2757 in QMetaObject::activate (sender=sender@entry=0x8886b10, m=m@entry=0x7f83bfddd680 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc94f70850) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qobject.cpp:3595
#23 0x00007f83bfa3a47e in QSocketNotifier::activated (this=this@entry=0x8886b10, _t1=<optimized out>) at .moc/moc_qsocketnotifier.cpp:135
#24 0x00007f83bf9cde52 in QSocketNotifier::event (this=0x8886b10, e=0x7ffc94f70aa0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qsocketnotifier.cpp:260
#25 0x00007f83c074e91c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x8886b10, e=0x7ffc94f70aa0) at /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/widgets/kernel/qapplication.cpp:3804
#26 0x00007f83c0753ab6 in QApplication::notify (this=0x7ffc94f70ed0, receiver=0x8886b10, e=0x7ffc94f70aa0) at /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/widgets/kernel/qapplication.cpp:3561
#27 0x00007f83bf9956a8 in QCoreApplication::notifyInternal2 (receiver=0x8886b10, event=event@entry=0x7ffc94f70aa0) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qcoreapplication.cpp:1020
#28 0x00007f83bf9e9a9d in sendEvent (event=0x7ffc94f70aa0, receiver=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#29 socketNotifierSourceDispatch (source=0x1ce5000) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:100
#30 0x00007f83b8054e04 in g_main_dispatch (context=0x7f839c003000) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3064
#31 g_main_context_dispatch (context=context@entry=0x7f839c003000) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3663
#32 0x00007f83b8055048 in g_main_context_iterate (context=context@entry=0x7f839c003000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3734
#33 0x00007f83b80550ec in g_main_context_iteration (context=0x7f839c003000, may_block=may_block@entry=1) at /build/buildd/glib2.0-2.40.2/./glib/gmain.c:3795
#34 0x00007f83bf9e960f in QEventDispatcherGlib::processEvents (this=0x1cf01e0, flags=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:417
#35 0x00007f83bf99356a in QEventLoop::exec (this=this@entry=0x7ffc94f70ca0, flags=..., flags@entry=...) at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qeventloop.cpp:204
#36 0x00007f83bf99b96d in QCoreApplication::exec () at /opt/local/var/lnxports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/corelib/kernel/qcoreapplication.cpp:1290
#37 0x00007f83bfefd40c in QGuiApplication::exec () at /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/gui/kernel/qguiapplication.cpp:1611
#38 0x00007f83c074bb75 in QApplication::exec () at /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-kde-devel/qt5-kde-devel/work/qt-everywhere-opensource-src-5.6.1/qtbase/src/widgets/kernel/qapplication.cpp:2979
#39 0x000000000040b9aa in main (argc=<optimized out>, argv=<optimized out>) at /opt/local/var/lnxports/build/_opt_local_site-ports_kf5_kdevelop5/kf5-kdevelop-devel/work/kf5-kdevelop-5/app/main.cpp:893

Reported using DrKonqi
Comment 1 RJVB 2016-09-11 18:26:22 UTC
Backtrace on OS X :

Backtrace of the crash I experienced:

Application: KDevelop (kdevelop), signal: Segmentation fault: 11
(lldb) process attach --pid 32720
Process 32720 stopped
Executable module set to "/Applications/MacPorts/KF5/kdevelop.app/Contents/MacOS/kdevelop.bin".
Architecture set to: x86_64-apple-macosx.
(lldb) set set term-width 200
(lldb) thread info
thread #1: tid = 0xbfd384, 0x00007fff8451ce20 libsystem_kernel.dylib`__wait4 + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP

(lldb) bt all
* thread #1: tid = 0xbfd384, 0x00007fff8451ce20 libsystem_kernel.dylib`__wait4 + 8, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8451ce20 libsystem_kernel.dylib`__wait4 + 8
    frame #1: 0x00000001070c4fe2 libKF5Crash.5.dylib`KCrash::startProcess(int, char const**, bool) + 135
    frame #2: 0x00000001070c4e06 libKF5Crash.5.dylib`KCrash::defaultCrashHandler(int) + 1049
    frame #3: 0x00007fff81b8c5aa libsystem_platform.dylib`_sigtramp + 26
    frame #4: 0x000000010998ec23 QtCore`QRegularExpression::match(QString const&, int, QRegularExpression::MatchType, QFlags<QRegularExpression::MatchOption>) const [inlined] QString::length(this=0x0000000109d084a0) const + 4 at qstring.h:866
    frame #5: 0x000000010998ec1f QtCore`QRegularExpression::match(this=0x00007fff58dba8e0, subject=0x0000000109d084a0, offset=0, matchType=NormalMatch, matchOptions=<unavailable>) const + 47 at qregularexpression.cpp:1712
    frame #6: 0x000000011dd22b28 kdevlldb.so`KDevMI::LLDB::DebugSession::handleVersion(this=0x00007f91a3b38870, s=0x00007f91a3f28678) + 296 at debugsession.cpp:387
    frame #7: 0x000000011dd33fcf kdevlldb.so`KDevMI::MI::MICommand::invokeHandler(this=0x00007f91a3f28650, r=0x00007f919bc96760) + 47 at micommand.cpp:111
    frame #8: 0x000000011dd39755 kdevlldb.so`KDevMI::MIDebugger::processLine(this=<unavailable>, line=<unavailable>) + 2213 at midebugger.cpp:198
    frame #9: 0x000000011dd37d48 kdevlldb.so`KDevMI::MIDebugger::readyReadStandardOutput(this=<unavailable>) + 248 at midebugger.cpp:135
    frame #10: 0x0000000109ac84b6 QtCore`QMetaObject::activate(QObject*, int, int, void**) [inlined] QtPrivate::QSlotObjectBase::call(this=<unavailable>, r=<unavailable>, a=<unavailable>) + 2054 at qobject_impl.h:124
    frame #11: 0x0000000109ac849b QtCore`QMetaObject::activate(sender=0x00007f91a3f23530, signalOffset=<unavailable>, local_signal_index=<unavailable>, argv=<unavailable>) + 2027 at qobject.cpp:3715
    frame #12: 0x00000001099d611d QtCore`QProcessPrivate::tryReadFromChannel(QProcessPrivate::Channel*) [inlined] QProcess::readyReadStandardError(QProcess::QPrivateSignal) + 8 at moc_qprocess.cpp:365
    frame #13: 0x00000001099d6115 QtCore`QProcessPrivate::tryReadFromChannel(this=<unavailable>, channel=<unavailable>) + 693 at qprocess.cpp:1029
    frame #14: 0x00000001099d96b7 QtCore`QProcess::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [inlined] QProcessPrivate::_q_canReadStandardOutput(this=<unavailable>) + 663 at qprocess.cpp:1038
    frame #15: 0x00000001099d96ab QtCore`QProcess::qt_static_metacall(_o=<unavailable>, _c=<unavailable>, _id=<unavailable>, _a=0x00007fff58dbaef0) + 651 at moc_qprocess.cpp:205
    frame #16: 0x0000000109ac8884 QtCore`QMetaObject::activate(sender=0x00007f919844bea0, signalOffset=<unavailable>, local_signal_index=<unavailable>, argv=<unavailable>) + 3028 at qobject.cpp:3730
    frame #17: 0x0000000109b6221c QtCore`QSocketNotifier::activated(this=<unavailable>, _t1=152, (null)=<unavailable>) + 60 at moc_qsocketnotifier.cpp:135
    frame #18: 0x0000000109acfc59 QtCore`QSocketNotifier::event(this=0x00007f919844bea0, e=<unavailable>) + 425 at qsocketnotifier.cpp:260
    frame #19: 0x00000001089341e6 QtWidgets`QApplicationPrivate::notify_helper(this=<unavailable>, receiver=0x00007f919844bea0, e=0x00007fff58dbb488) + 294 at qapplication.cpp:3804
    frame #20: 0x0000000108937726 QtWidgets`QApplication::notify(this=<unavailable>, receiver=<unavailable>, e=<unavailable>) + 8470 at qapplication.cpp:3767
    frame #21: 0x0000000109a94567 QtCore`QCoreApplication::notifyInternal2(receiver=0x00007f919844bea0, event=0x00007fff58dbb488) + 167 at qcoreapplication.cpp:1020
    frame #22: 0x0000000109ae8c36 QtCore`qt_mac_socket_callback(__CFSocket*, unsigned long, __CFData const*, void const*, void*) [inlined] QCoreApplication::sendEvent(receiver=<unavailable>, event=0x0000000109cff130) + 214 at qcoreapplication.h:225
    frame #23: 0x0000000109ae8c29 QtCore`qt_mac_socket_callback(s=<unavailable>, callbackType=<unavailable>, (null)=<unavailable>, (null)=<unavailable>, info=0x00007f919858f140) + 201 at qcfsocketnotifier.cpp:61
    frame #24: 0x00007fff8bbd0057 CoreFoundation`__CFSocketPerformV0 + 855
    frame #25: 0x00007fff8bb905b1 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #26: 0x00007fff8bb81c62 CoreFoundation`__CFRunLoopDoSources0 + 242
    frame #27: 0x00007fff8bb813ef CoreFoundation`__CFRunLoopRun + 831
    frame #28: 0x00007fff8bb80e75 CoreFoundation`CFRunLoopRunSpecific + 309
    frame #29: 0x00007fff8c2cca0d HIToolbox`RunCurrentEventLoopInMode + 226
    frame #30: 0x00007fff8c2cc7b7 HIToolbox`ReceiveNextEventCommon + 479
    frame #31: 0x00007fff8c2cc5bc HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 65
    frame #32: 0x00007fff8589c24e AppKit`_DPSNextEvent + 1434
    frame #33: 0x00007fff8589b89b AppKit`-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    frame #34: 0x00007fff8588f99c AppKit`-[NSApplication run] + 553
    frame #35: 0x000000011409808d libqcocoa.dylib`QCocoaEventDispatcher::processEvents(this=0x00007f919858a2f0, flags=<unavailable>) + 2189 at qcocoaeventdispatcher.mm:416
    frame #36: 0x0000000109a90981 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) [inlined] QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 401 at qeventloop.cpp:128
    frame #37: 0x0000000109a90964 QtCore`QEventLoop::exec(this=0x00007fff58dbce50, flags=<unavailable>) + 372 at qeventloop.cpp:204
    frame #38: 0x0000000109a94bf5 QtCore`QCoreApplication::exec() + 325 at qcoreapplication.cpp:1290
    frame #39: 0x0000000106e5b4ca kdevelop.bin`main(argc=<unavailable>, argv=0x00007f919ade7d20) + 53066 at main.cpp:893
    frame #40: 0x00007fff84caa5fd libdyld.dylib`start + 1

  thread #2: tid = 0xbfd385, 0x00007fff8451ce22 libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x00007fff8451ce22 libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x00000001070c4fe2 libKF5Crash.5.dylib`KCrash::startProcess(int, char const**, bool) + 135
    frame #2: 0x00000001070c4e06 libKF5Crash.5.dylib`KCrash::defaultCrashHandler(int) + 1049
    frame #3: 0x00007fff81b8c5aa libsystem_platform.dylib`_sigtramp + 26
    frame #4: 0x00007fff8451d663 libsystem_kernel.dylib`kevent64 + 11
    frame #5: 0x00007fff810f9136 libdispatch.dylib`_dispatch_mgr_thread + 52

  thread #3: tid = 0xbfd392, 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10, name = 'QDBusConnectionManager'
    frame #0: 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000109aea1a4 QtCore`qt_safe_select(nfds=9, fdread=0x00007f9198884798, fdwrite=0x00007f9198884a28, fdexcept=0x00007f9198884cb8, orig_timeout=<unavailable>) + 564 at qcore_unix.cpp:75
    frame #2: 0x0000000109aeb329 QtCore`QEventDispatcherUNIXPrivate::doSelect(this=0x00007f9198884600, timeout=<unavailable>, flags=<unavailable>) + 665 at qeventdispatcher_unix.cpp:192
    frame #3: 0x0000000109aec44e QtCore`QEventDispatcherUNIX::processEvents(this=0x00007f9198489df0, flags=<unavailable>) + 222 at qeventdispatcher_unix.cpp:607
    frame #4: 0x0000000109a90981 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) [inlined] QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 401 at qeventloop.cpp:128
    frame #5: 0x0000000109a90964 QtCore`QEventLoop::exec(this=0x00000001171b1e28, flags=<unavailable>) + 372 at qeventloop.cpp:204
    frame #6: 0x00000001098d1615 QtCore`QThread::exec(this=<unavailable>) + 117 at qthread.cpp:500
    frame #7: 0x000000010823db63 QtDBus`QDBusConnectionManager::run(this=0x00007f91985893a0) + 19 at qdbusconnection.cpp:189
    frame #8: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f91985893a0) + 363 at qthread_unix.cpp:341
    frame #9: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #10: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #11: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #4: tid = 0xbfd397, 0x00007fff84518a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #0: 0x00007fff84518a1a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff84517d18 libsystem_kernel.dylib`mach_msg + 64
    frame #2: 0x00007fff8bb81f15 CoreFoundation`__CFRunLoopServiceMachPort + 181
    frame #3: 0x00007fff8bb81539 CoreFoundation`__CFRunLoopRun + 1161
    frame #4: 0x00007fff8bb80e75 CoreFoundation`CFRunLoopRunSpecific + 309
    frame #5: 0x00007fff85a3c05e AppKit`_NSEventThread + 144
    frame #6: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #7: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #8: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #5: tid = 0xbfd39a, 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'QThread'
    frame #0: 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8c288c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x00000001098d67c0 QtCore`QWaitConditionPrivate::wait_relative(this=0x00007f919ae79850, time=<unavailable>) + 288 at qwaitcondition_unix.cpp:126
    frame #3: 0x00000001098d65fb QtCore`QWaitConditionPrivate::wait(this=0x00007f919ae79850, time=1000) + 43 at qwaitcondition_unix.cpp:134
    frame #4: 0x00000001098d64cb QtCore`QWaitCondition::wait(this=0x00007f919ae796a8, mutex=0x00007f919ae796b0, time=1000) + 155 at qwaitcondition_unix.cpp:208
    frame #5: 0x000000010a1f2b7f libKDevPlatformLanguage.10.dylib`KDevelop::DUChainPrivate::CleanupThread::run(this=<unavailable>) + 79 at duchain.cpp:282
    frame #6: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f919ae79690) + 363 at qthread_unix.cpp:341
    frame #7: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #8: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #9: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #6: tid = 0xbfd39f, 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10, name = 'KDevelop::CompletionWorkerThread'
    frame #0: 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000109aea1a4 QtCore`qt_safe_select(nfds=13, fdread=0x00007f91990ba398, fdwrite=0x00007f91990ba628, fdexcept=0x00007f91990ba8b8, orig_timeout=<unavailable>) + 564 at qcore_unix.cpp:75
    frame #2: 0x0000000109aeb329 QtCore`QEventDispatcherUNIXPrivate::doSelect(this=0x00007f91990ba200, timeout=<unavailable>, flags=<unavailable>) + 665 at qeventdispatcher_unix.cpp:192
    frame #3: 0x0000000109aec44e QtCore`QEventDispatcherUNIX::processEvents(this=0x00007f919aea40e0, flags=<unavailable>) + 222 at qeventdispatcher_unix.cpp:607
    frame #4: 0x0000000109a90981 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) [inlined] QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 401 at qeventloop.cpp:128
    frame #5: 0x0000000109a90964 QtCore`QEventLoop::exec(this=0x0000000122356da8, flags=<unavailable>) + 372 at qeventloop.cpp:204
    frame #6: 0x00000001098d1615 QtCore`QThread::exec(this=<unavailable>) + 117 at qthread.cpp:500
    frame #7: 0x000000010a2e1ef4 libKDevPlatformLanguage.10.dylib`KDevelop::CompletionWorkerThread::run(this=0x00007f919b4e46e0) + 388 at codecompletionmodel.cpp:89
    frame #8: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f919b4e46e0) + 363 at qthread_unix.cpp:341
    frame #9: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #10: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #11: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #7: tid = 0xbfd3ac, 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10, name = 'com.apple.CFSocket.private'
    frame #0: 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x00007fff8bbcda03 CoreFoundation`__CFSocketManager + 867
    frame #2: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #3: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #4: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #8: tid = 0xbfd3d9, 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Queue(0x7f919ac5bcf0)[01]'
    frame #0: 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8c288c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x00000001098d661b QtCore`QWaitConditionPrivate::wait(this=0x00007f919ac5bd20, time=<unavailable>) + 75 at qwaitcondition_unix.cpp:136
    frame #3: 0x00000001098d64cb QtCore`QWaitCondition::wait(this=0x00007f919ac5ba40, mutex=0x00007f919ac5f100, time=18446744073709551615) + 155 at qwaitcondition_unix.cpp:208
    frame #4: 0x000000010b661674 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) [inlined] ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked(this=<unavailable>, th=<unavailable>) + 804 at weaver.cpp:594
    frame #5: 0x000000010b66165d libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(this=<unavailable>, th=0x00007f919c1cce60, threadWasBusy=<unavailable>, suspendIfInactive=<unavailable>, justReturning=<unavailable>) + 781 at weaver.cpp:554
    frame #6: 0x000000010b665fc0 libKF5ThreadWeaver.5.dylib`ThreadWeaver::WorkingHardState::applyForWork(this=0x00007f919ac5bfd0, th=0x00007f919c1cce60, wasBusy=false) + 64 at workinghardstate.cpp:66
    frame #7: 0x000000010b6660c5 libKF5ThreadWeaver.5.dylib`non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=<unavailable>) + 21 at workinghardstate.cpp:75
    frame #8: 0x000000010b661972 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=false) + 50 at weaver.cpp:568
    frame #9: 0x000000010b666005 libKF5ThreadWeaver.5.dylib`ThreadWeaver::WorkingHardState::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=<unavailable>) + 133 at workinghardstate.cpp:73
    frame #10: 0x000000010b6660c5 libKF5ThreadWeaver.5.dylib`non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=<unavailable>) + 21 at workinghardstate.cpp:75
    frame #11: 0x000000010b661972 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=true) + 50 at weaver.cpp:568
    frame #12: 0x000000010b663a36 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Thread::run(this=0x00007f919c1cce60) + 118 at thread.cpp:103
    frame #13: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f919c1cce60) + 363 at qthread_unix.cpp:341
    frame #14: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #15: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #16: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #9: tid = 0xbfd3da, 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Queue(0x7f919ac5bcf0)[02]'
    frame #0: 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8c288c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x00000001098d661b QtCore`QWaitConditionPrivate::wait(this=0x00007f919ac5bd20, time=<unavailable>) + 75 at qwaitcondition_unix.cpp:136
    frame #3: 0x00000001098d64cb QtCore`QWaitCondition::wait(this=0x00007f919ac5ba40, mutex=0x00007f919ac5f100, time=18446744073709551615) + 155 at qwaitcondition_unix.cpp:208
    frame #4: 0x000000010b661674 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) [inlined] ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked(this=<unavailable>, th=<unavailable>) + 804 at weaver.cpp:594
    frame #5: 0x000000010b66165d libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(this=<unavailable>, th=0x00007f919bf331d0, threadWasBusy=<unavailable>, suspendIfInactive=<unavailable>, justReturning=<unavailable>) + 781 at weaver.cpp:554
    frame #6: 0x000000010b665fc0 libKF5ThreadWeaver.5.dylib`ThreadWeaver::WorkingHardState::applyForWork(this=0x00007f919ac5bfd0, th=0x00007f919bf331d0, wasBusy=true) + 64 at workinghardstate.cpp:66
    frame #7: 0x000000010b6660c5 libKF5ThreadWeaver.5.dylib`non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=<unavailable>) + 21 at workinghardstate.cpp:75
    frame #8: 0x000000010b661972 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=true) + 50 at weaver.cpp:568
    frame #9: 0x000000010b663a36 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Thread::run(this=0x00007f919bf331d0) + 118 at thread.cpp:103
    frame #10: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f919bf331d0) + 363 at qthread_unix.cpp:341
    frame #11: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #12: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #13: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #10: tid = 0xbfd3db, 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10, name = 'Queue(0x7f919ac5bcf0)[03]'
    frame #0: 0x00007fff8451c716 libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff8c288c3b libsystem_pthread.dylib`_pthread_cond_wait + 727
    frame #2: 0x00000001098d661b QtCore`QWaitConditionPrivate::wait(this=0x00007f919ac5bd20, time=<unavailable>) + 75 at qwaitcondition_unix.cpp:136
    frame #3: 0x00000001098d64cb QtCore`QWaitCondition::wait(this=0x00007f919ac5ba40, mutex=0x00007f919ac5f100, time=18446744073709551615) + 155 at qwaitcondition_unix.cpp:208
    frame #4: 0x000000010b661674 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) [inlined] ThreadWeaver::Weaver::blockThreadUntilJobsAreBeingAssigned_locked(this=<unavailable>, th=<unavailable>) + 804 at weaver.cpp:594
    frame #5: 0x000000010b66165d libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(this=<unavailable>, th=0x00007f919b99d610, threadWasBusy=<unavailable>, suspendIfInactive=<unavailable>, justReturning=<unavailable>) + 781 at weaver.cpp:554
    frame #6: 0x000000010b665fc0 libKF5ThreadWeaver.5.dylib`ThreadWeaver::WorkingHardState::applyForWork(this=0x00007f919ac5bfd0, th=0x00007f919b99d610, wasBusy=true) + 64 at workinghardstate.cpp:66
    frame #7: 0x000000010b6660c5 libKF5ThreadWeaver.5.dylib`non-virtual thunk to ThreadWeaver::WorkingHardState::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=<unavailable>) + 21 at workinghardstate.cpp:75
    frame #8: 0x000000010b661972 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Weaver::applyForWork(this=<unavailable>, th=<unavailable>, wasBusy=true) + 50 at weaver.cpp:568
    frame #9: 0x000000010b663a36 libKF5ThreadWeaver.5.dylib`ThreadWeaver::Thread::run(this=0x00007f919b99d610) + 118 at thread.cpp:103
    frame #10: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f919b99d610) + 363 at qthread_unix.cpp:341
    frame #11: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #12: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #13: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #11: tid = 0xbfd50c, 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10, name = 'OutputFilterThread'
    frame #0: 0x00007fff8451c9aa libsystem_kernel.dylib`__select + 10
    frame #1: 0x0000000109aea1a4 QtCore`qt_safe_select(nfds=35, fdread=0x00007f91a03f4b98, fdwrite=0x00007f91a03f4e28, fdexcept=0x00007f91a03f50b8, orig_timeout=<unavailable>) + 564 at qcore_unix.cpp:75
    frame #2: 0x0000000109aeb329 QtCore`QEventDispatcherUNIXPrivate::doSelect(this=0x00007f91a03f4a00, timeout=<unavailable>, flags=<unavailable>) + 665 at qeventdispatcher_unix.cpp:192
    frame #3: 0x0000000109aec44e QtCore`QEventDispatcherUNIX::processEvents(this=0x00007f919e9d0d60, flags=<unavailable>) + 222 at qeventdispatcher_unix.cpp:607
    frame #4: 0x0000000109a90981 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) [inlined] QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 401 at qeventloop.cpp:128
    frame #5: 0x0000000109a90964 QtCore`QEventLoop::exec(this=0x000000011bb03e58, flags=<unavailable>) + 372 at qeventloop.cpp:204
    frame #6: 0x00000001098d1615 QtCore`QThread::exec(this=<unavailable>) + 117 at qthread.cpp:500
    frame #7: 0x00000001098d501b QtCore`QThreadPrivate::start(arg=0x00007f91a0ced558) + 363 at qthread_unix.cpp:341
    frame #8: 0x00007fff8c286899 libsystem_pthread.dylib`_pthread_body + 138
    frame #9: 0x00007fff8c28672a libsystem_pthread.dylib`_pthread_start + 137
    frame #10: 0x00007fff8c28afc9 libsystem_pthread.dylib`thread_start + 13

  thread #12: tid = 0xbfd5ab, 0x00007fff8451ce6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x00007fff8451ce6a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff8c287f08 libsystem_pthread.dylib`_pthread_wqthread + 330
    frame #2: 0x00007fff8c28afb9 libsystem_pthread.dylib`start_wqthread + 13
(lldb) detach
Process 32720 detached
Comment 2 RJVB 2016-09-11 19:44:57 UTC
I think this happens because/when DebugSession::handleVersion() is called with an empty QStringList argument.

Why that would happen I have no idea, possible it's related to commit 102f673c6ff1afe5b1ca9cb6faa0503663b96e16 ("LLDB plugin: check LLDB version rather than lldb-mi version, which doesn't change frequently"). If that does what I think it does it tries to invoke lldb, which may not be in the path.

Either way, returning early from handleVersion() works around the crash and allows the debugger to function:

```
diff --git a/debuggers/lldb/debugsession.cpp b/debuggers/lldb/debugsession.cpp
index 448d3ea..e4e5c22 100644
--- a/debuggers/lldb/debugsession.cpp
+++ b/debuggers/lldb/debugsession.cpp
@@ -381,6 +381,10 @@ void DebugSession::handleCoreFile(const QStringList &s)
 
 void DebugSession::handleVersion(const QStringList& s)
 {
+    if (s.isEmpty()) {
+        // silently do nothing if s is empty
+        return;
+    }
     qCDebug(DEBUGGERLLDB) << s.first();
 
     QRegularExpression rx("^lldb version: (\\d+).(\\d+).(\\d+)\\b", QRegularExpression::MultilineOption);
```
Comment 3 Peifeng Yu 2016-09-11 19:59:18 UTC
The 'version' command is issued after lldb-mi has already been started.  And commit 102f673c6ff1afe5b1ca9cb6faa0503663b96e16 was intended to fix the previous way to check version (invoking lldb-mi directly which might not be in path). Strange enough, the output shouldn't be empty.

Did you applied this patch? https://llvm.org/bugs/show_bug.cgi?id=28026

Could you do the following and paste the output here?
1. lldb-mi --versionLong
2. lldb-mi and then type version

The output should be something like
$ lldb-mi --versionLong
LLDB Machine Interface Driver (MI) All rights reserved
Version: 1.0.0.9
Version: GNU gdb (GDB) 7.4
(This is a MI stub on top of LLDB and not GDB)
All rights reserved.

$ lldb-mi
(gdb)
version
~"lldb version 4.0.0 ( http://llvm.org/svn/llvm-project/lldb/trunk revision 279424 clang revision 279424 llvm revision 279424)\n"
^done
(gdb)

Thank you for trying this out ;)
Comment 4 RJVB 2016-09-11 20:20:43 UTC
No, I didn't apply that patch, I'm just running 3.9.0 (release).

> lldb-mi-mp-3.9 --versionLong
LLDB Machine Interface Driver (MI) All rights reserved
Version: 1.0.0.9
Version: GNU gdb (GDB) 7.4 
(This is a MI stub on top of LLDB and not GDB)
All rights reserved.

> lldb-mi-mp-3.9 
(gdb)
version
lldb-360.99.0
^done
(gdb)
Comment 5 Peifeng Yu 2016-09-11 22:15:57 UTC
Okay, that patch is required, otherwise lldb-mi doesn't produce correct spec confirming output. That's why handleVersion is getting empty lists.

And the version output is quite different, is that what you get on OS X?

Seems I still need to find a more robust way to detect lldb version.
Comment 6 RJVB 2016-09-11 23:00:46 UTC
With the patch I get 

> lldb-mi-mp-3.9
(gdb)
version
~"lldb-360.99.0\n"
^done
(gdb)

A year or two ago I asked about using the lldb-mi driver, on the lldb mailing list. I was told that the really clever thing to do for integrating lldb into an IDE (or writing a UI for it) would be to use liblldb directly
Comment 7 RJVB 2016-09-12 07:28:24 UTC
One more thought: I don't think you can expect that every user will have a patched lldb-mi anytime soon, so I'd advise to add a workaround like the one I posted. I don't really see any other way how you could handle the situation, other than falling back to using the commandline argument. You could post a warning that the lldb version cannot be verified, but that should be a warning that can be set to "don't show again". 

There's one alternative though: check the command *name*. It's quite common that the clang drivers have at least the branch in their name (3.9 in my case).
Comment 8 Peifeng Yu 2016-09-12 15:53:36 UTC
Created attachment 101057 [details]
Fix Bug 268603, warn the user about unsupported lldb version

I'm not sure it's a good idea to direct link to liblldb (I'm not aware any major IDE doing that). And building yet another proxy executable from scratch would be reinventing the wheel compared to lldb-mi, which is exactly a proxy already.

Anyway, there's the first attempt to fix this bug, the patch does the following:

- warn the user about unsupported lldb version
- reject user command if an unsupported version is found (to prevent crash on invalid message)

Could you try if this works for you?

But I have no idea how to make the warning with an option to "Don't show it again". I suppose there should be some library function that I should call. Do you know any warnings shown by KDevelop already has this feature? Maybe I can look at that code to see how to implement this.
Comment 9 Peifeng Yu 2016-09-12 15:55:06 UTC
Oops, it should be Bug 368603 in the description of the attachment.
Comment 10 Peifeng Yu 2016-09-12 16:11:17 UTC
Created attachment 101058 [details]
Add the option "Don't ask again" to warning dialog

Okay, here's the one with option "Don't ask again".

Currently KDevelop doesn't provide a way to reset these warnings. So you can't change your answer afterwards.
Comment 11 RJVB 2016-09-12 18:34:42 UTC
I'll try tomorrow, but how do you handle the case where you cannot determine the version of a perfectly acceptable lldb-mi? Again, the user may not have much choice to install a patched lldb-mi (think users on OS X).

As to using liblldb: this *is* the preferred way to write a GUI for lldb. Pretty sure it's how Xcode interfaces to the debugger; there's also a (commercial) GUI for lldb that almost certainly does the same thing. Let's be honest, it's the most direct way to control the debugger; rather than figuring out how to control an existing driver that's tailored for another kind of application you send exactly the commands you want, without having to parse text replies which may not be perfectly adequate for what you want.

Best you can do in this aspect is ask on the lldb ML, to get an uptodate opinion and hopefuly also some feedback on how lldb-mi is perceived. When I asked I got a strong impression it was seen as a 2nd-class citizen that existed only for Eclipse and that would likely never evolve towards a full MI implementation.
Comment 12 RJVB 2016-09-13 15:31:20 UTC
(In reply to Aetf from comment #8)

> Could you try if this works for you?

It works in the sense that it rejects Apple-style version reporting ...

With these hunks I get a functional LLDB plugin again:
```
@@ -381,9 +393,40 @@ void DebugSession::handleCoreFile(const QStringList &s)
 
 void DebugSession::handleVersion(const QStringList& s)
 {
+    m_hasCorrectCLIOutput = !s.isEmpty();
+    if (!m_hasCorrectCLIOutput) {
+        // No output from 'version' command. It's likely that
+        // the lldb used is not patched for the CLI output
+
+        if (!qobject_cast<QGuiApplication*>(qApp))  {
+            //for unittest
+            qFatal("You need a graphical application.");
+        }
+
+        auto ans = KMessageBox::warningYesNo(
+            qApp->activeWindow(),
+            i18n("<b>Your lldb-mi version is unsupported, as it lacks an essential patch.</b><br/>"
+                 "See https://llvm.org/bugs/show_bug.cgi?id=28026 for more information.<br/>"
+                 "Debugger console will be disabled to prevent crash.<br/>"
+                 "Do you want to continue?"),
+            i18n("LLDB Version Unsupported"),
+            KStandardGuiItem::yes(),
+            KStandardGuiItem::no(),
+            "unsupported-lldb-debugger");
+        if (ans == KMessageBox::ButtonCode::No) {
+            programFinished("Stopped because of unsupported LLDB version");
+            stopDebugger();
+        }
+        return;
+    }
+
     qCDebug(DEBUGGERLLDB) << s.first();
 
+#ifdef Q_OS_OSX
+    QRegularExpression rx("^lldb-(\\d+).(\\d+).(\\d+)\\b", QRegularExpression::MultilineOption);
+#else
     QRegularExpression rx("^lldb version: (\\d+).(\\d+).(\\d+)\\b", QRegularExpression::MultilineOption);
+#endif
     auto match = rx.match(s.first());
     int version[] = {0, 0, 0};
     if (match.hasMatch()) {
@@ -394,7 +437,12 @@ void DebugSession::handleVersion(const QStringList& s)
 
     // minimal version is 3.8.1
     bool ok = true;
+#ifdef Q_OS_OSX
+    // lldb 3.8.1 reports version 350.99.0 on OS X
+    const int min_ver[] = {350, 99, 0};
+#else
     const int min_ver[] = {3, 8, 1};
+#endif
     for (int i = 0; i < 3; ++i) {
         if (version[i] < min_ver[i]) {
             ok = false;
```

Unrelated: for some reason I can no longer use the lldb plugin on Linux. It starts, but then "drops out of" the debugging view, back into the code view. Any ideas?
Comment 13 Peifeng Yu 2016-09-14 21:32:15 UTC
Sorry for the delay. I don't have enough time to do any actual coding due to my course work for a few days.

That looks good to me. The reason I didn't add the check for OS X was I can't find the mapping between Linux version string and OS X version string.

the lldb plugin on Linux didn't work for you after applied my latest patch? Is it the case that you clicked 'don't ask again' and answered no? There should be some output in the Debug output panel saying that session stopped due to unsupported lldb version.
Comment 14 Peifeng Yu 2016-09-14 22:10:32 UTC
Created attachment 101088 [details]
Add propper detection of version string on OS X
Comment 15 RJVB 2016-09-14 23:30:23 UTC
No, I didn't tick the "don't ask again option". I checked with an unpatched lldb 3.8.1 on OS X and I indeed got the warning in the debugger console, but IIRC everything else was functional.

No, on Linux I get something else: it looks like the debug session is being created as expected, and then the IDE falls back into the regular code view. Which means I cannot even get at the debugger console to check for any relevant output there.
Comment 16 Peifeng Yu 2016-09-16 18:50:25 UTC
Could you start KDevelop from the console and check the output when starting the debug session on Linux? You can enable debug output from KDevelop by launching it with the command

env QT_LOGGING_CONF='logging.conf' kdevelop

where the content of logging.conf is

[Rules]
kdevelop.debuggers.lldb.debug=true
kdevelop.debuggers.common.debug=true

Also, even if the debug session ends, there should be an output panel titled "Debug" being raised. See if there's any relevant output in that.
Comment 17 RJVB 2016-09-16 21:18:26 UTC
Thanks, but I just found the reason when I tried a manual debugging session. Turns out it's more a bug in the lldb-3.9 package: it doesn't install non-versioned binaries, but it wants an lldb-server executable.

That also explains why it worked before (when I still had a working ll**-3.8 install) and no longer after I upgraded to 3.9.0 . I noticed the issue just too long after that upgrade so I didn't make the link (mental link, not symlink) :-/
Comment 18 Peifeng Yu 2016-09-16 22:04:55 UTC
I'm glad you found the reason. So the patch itself works for you now? If so, I'm going to close this and push the change to master.
Comment 19 RJVB 2016-09-17 09:14:55 UTC
Yes, at least as far as starting with a break in main goes. I didn't go much beyond testing that; lldb-mi-3.9 took so much memory when I tried with a simple Qt5 app that my whole plasma4 environment was OOM'ed.

One detail though: is a patched lldb-mi required for the correct change of working directory? Because that detail doesn't work with the lldb plugin on Linux even though the debug output suggests it does.
Comment 20 Peifeng Yu 2016-09-19 01:32:30 UTC
Pushed to master with commit 262bf5dddf2aef991c66fdc484c58daf32eaa348, so I'm going to close this, reopen it if you have any further problems.

A debugger shouldn't take too much memory. It looks like a bug. Did you try to manually debug using lldb 3.9? And please open another report if that only happens in KDevelop.

Well, the working directory changing does require another patch[1] ... And I've created a RR in their Phabricator[2], which seems to be more active than their bug tracker.

[1] https://llvm.org/bugs/show_bug.cgi?id=30265
[2] https://reviews.llvm.org/D24711
Comment 21 RJVB 2016-09-19 07:48:15 UTC
I'd have to figure out how to start a debugging session in lldb-mi manually, in order to check this correctly :)
But: did you ever notice how starting the debugger on a C++ app using KDE or Qt takes so much longer than starting it on a simple C app? That's because it has to scan through many more libraries containing many more and considerably more complex types. Maybe not all that scanned information is cached, but a good part is. It seems a bit weird that it would let the process image reach 6Gb but then there are so many different kinds of memory footprint nowadays, some of which are purely virtual (with overcommit and all) that I don't trust myself to notice the one that corresponds to actual memory use when the system is being trashed.

FWIW, I've the kernel overcommit parameter set to 2 on my system, but that shouldn't affect the amount of memories applications request nor increase the amount they actually get.
Comment 22 Peifeng Yu 2016-09-20 15:01:14 UTC
For a simplest session:

$ lldb-mi /path/to/executable
-break-insert main.cpp:30
-exec-run

There are also commands like -exec-continue, -exec-next. Reference: 
https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Program-Execution.html#GDB_002fMI-Program-Execution

I don't have enough knowledge about how actually a debugger scans app's memory space or the overcommit thing. But my intuition is, just attaching a debugger to the app shouldn't dramatically increases its memory usage... 

AFAIK, starting a complex app in debugger takes longer simply because the program is being instrumented and thus runs much slower.