Application: kdevelop (5.2.1) Qt Version: 5.9.5 Frameworks Version: 5.44.0 Operating System: Linux 4.15.0-23-generic x86_64 Distribution: Ubuntu 18.04 LTS -- Information about the crash: First of all, I am working on Kubuntu 18.04 and I installed the debug symbols for a good backtrace like this: sudo apt install kdelibs5-dbg Still, the backtrace is said to contain not so good information. I work on a large project and I could not reproduce the behaviour on small scale. This is what I did to get the crash: I am in a header file (service1.h) with a construct like this: #pragma once #include "hallo.h" #include "test.h" namespace A { namespace B { class C { ... } } } When I remove the last two brackets it takes a few seconds and KDevelop crashes. The context of the service1.h makes use of template classes. The crash can be reproduced every time. -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0x7fc6d816d940 (LWP 32025))] Thread 19 (Thread 0x7fc659ffb700 (LWP 32161)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7a412e4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7a41290, cond=0x55b8c7a412b8) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7a412b8, mutex=0x55b8c7a41290) at pthread_cond_wait.c:655 #3 0x00007fc6d4f0359b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6c9cfead5 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007fc6c9d02ba8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #7 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #8 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #9 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #10 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #11 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #12 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #13 0x00007fc6c9d00a6b in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #14 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #15 0x00007fc6cdf7b6db in start_thread (arg=0x7fc659ffb700) at pthread_create.c:463 #16 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 18 (Thread 0x7fc65a7fc700 (LWP 32160)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7a412e4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7a41290, cond=0x55b8c7a412b8) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7a412b8, mutex=0x55b8c7a41290) at pthread_cond_wait.c:655 #3 0x00007fc6d4f0359b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6c9cfead5 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007fc6c9d02ba8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #7 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #8 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #9 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #10 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #11 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #12 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #13 0x00007fc6c9d00a6b in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #14 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #15 0x00007fc6cdf7b6db in start_thread (arg=0x7fc65a7fc700) at pthread_create.c:463 #16 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 17 (Thread 0x7fc65affd700 (LWP 32159)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7a412e4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7a41290, cond=0x55b8c7a412b8) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7a412b8, mutex=0x55b8c7a41290) at pthread_cond_wait.c:655 #3 0x00007fc6d4f0359b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6c9cfead5 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007fc6c9d02ba8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #7 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #8 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #9 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #10 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #11 0x00007fc6c9d00a6b in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #12 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #13 0x00007fc6cdf7b6db in start_thread (arg=0x7fc65affd700) at pthread_create.c:463 #14 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 16 (Thread 0x7fc65b7fe700 (LWP 32158)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7a412e4) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7a41290, cond=0x55b8c7a412b8) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7a412b8, mutex=0x55b8c7a41290) at pthread_cond_wait.c:655 #3 0x00007fc6d4f0359b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6c9cfead5 in ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*, bool, bool, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #5 0x00007fc6c9d02ba8 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #6 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #7 0x00007fc6c9d02c02 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #8 0x00007fc6c9cfdc8d in ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #9 0x00007fc6c9d00a6b in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #10 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #11 0x00007fc6cdf7b6db in start_thread (arg=0x7fc65b7fe700) at pthread_create.c:463 #12 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 15 (Thread 0x7fc65bfff700 (LWP 32157)): [KCrash Handler] #6 0x0000000000009131 in ?? () #7 0x00007fc66a081263 in ?? () from /usr/lib/llvm-6.0/lib/libclang-6.0.so.1 #8 0x00007fc66a081b72 in ?? () from /usr/lib/llvm-6.0/lib/libclang-6.0.so.1 #9 0x00007fc69ab43171 in llvm::CrashRecoveryContext::~CrashRecoveryContext() () from /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1 #10 0x00007fc669e094b4 in clang_parseTranslationUnit2FullArgv () from /usr/lib/llvm-6.0/lib/libclang-6.0.so.1 #11 0x00007fc669e09901 in clang_parseTranslationUnit2 () from /usr/lib/llvm-6.0/lib/libclang-6.0.so.1 #12 0x00007fc66b768a0b in ParseSessionData::ParseSessionData(QVector<UnsavedFile> const&, ClangIndex*, ClangParsingEnvironment const&, QFlags<ParseSessionData::Option>) () from /usr/lib/x86_64-linux-gnu/libKDevClangPrivate.so.30 #13 0x00007fc66b9ad373 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/30/kdevclangsupport.so #14 0x00007fc66b9b0cc9 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdevplatform/30/kdevclangsupport.so #15 0x00007fc6c9d01d8a in ThreadWeaver::IdDecorator::run(QSharedPointer<ThreadWeaver::JobInterface>, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #16 0x00007fc6c9d02368 in ThreadWeaver::Executor::run(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #17 0x00007fc6c9d00fd0 in ThreadWeaver::Job::execute(QSharedPointer<ThreadWeaver::JobInterface> const&, ThreadWeaver::Thread*) () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #18 0x00007fc6c9d00b2d in ThreadWeaver::Thread::run() () from /usr/lib/x86_64-linux-gnu/libKF5ThreadWeaver.so.5 #19 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #20 0x00007fc6cdf7b6db in start_thread (arg=0x7fc65bfff700) at pthread_create.c:463 #21 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 14 (Thread 0x7fc66133d700 (LWP 32115)): #0 0x00007fc6d47e70b4 in __GI___libc_read (fd=24, buf=0x7fc66133ca30, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27 #1 0x00007fc6cb711960 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6ccf27 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6cb6cd3e0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007fc661afa3c5 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/XmlListModel/libqmlxmllistmodelplugin.so #9 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #10 0x00007fc6cdf7b6db in start_thread (arg=0x7fc66133d700) at pthread_create.c:463 #11 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 13 (Thread 0x7fc669c0a700 (LWP 32054)): #0 0x00007fc6d47ebbf9 in __GI___poll (fds=0x7fc664004d70, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007fc6cb6cd439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6d29f6a0f in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.52 #7 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007fc6cdf7b6db in start_thread (arg=0x7fc669c0a700) at pthread_create.c:463 #9 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 12 (Thread 0x7fc682a95700 (LWP 32045)): #0 0x00007fc6d47ebbf9 in __GI___poll (fds=0x7fc66c004a10, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007fc6cb6cd439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007fc6cdf7b6db in start_thread (arg=0x7fc682a95700) at pthread_create.c:463 #8 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 11 (Thread 0x7fc682294700 (LWP 32038)): #0 0x00007fc6d47ebbf9 in __GI___poll (fds=0x7fc670003fe0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007fc6cb6cd439 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #4 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6cda0a6f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5 #7 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007fc6cdf7b6db in start_thread (arg=0x7fc682294700) at pthread_create.c:463 #9 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 10 (Thread 0x7fc683b44700 (LWP 32034)): #0 0x00007fc6cb712cd9 in g_mutex_lock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #1 0x00007fc6cb6cc454 in g_main_context_release () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6cd3f6 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007fc6cdf7b6db in start_thread (arg=0x7fc683b44700) at pthread_create.c:463 #9 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 9 (Thread 0x7fc6937fe700 (LWP 32033)): #0 0x00007fc6d47e70b4 in __GI___libc_read (fd=13, buf=0x7fc6937fd9e0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27 #1 0x00007fc6cb711960 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6ccf27 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6cb6cd3e0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #5 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #8 0x00007fc6d28ee91b in ?? () from /usr/lib/x86_64-linux-gnu/libKDevPlatformLanguage.so.52 #9 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #10 0x00007fc6cdf7b6db in start_thread (arg=0x7fc6937fe700) at pthread_create.c:463 #11 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 8 (Thread 0x7fc698f37700 (LWP 32032)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7b736f8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7b736a8, cond=0x55b8c7b736d0) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7b736d0, mutex=0x55b8c7b736a8) at pthread_cond_wait.c:655 #3 0x00007fc69f01d86b in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #4 0x00007fc69f01d6e7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #5 0x00007fc6cdf7b6db in start_thread (arg=0x7fc698f37700) at pthread_create.c:463 #6 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 7 (Thread 0x7fc693fff700 (LWP 32031)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7b73590) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7b73540, cond=0x55b8c7b73568) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7b73568, mutex=0x55b8c7b73540) at pthread_cond_wait.c:655 #3 0x00007fc69f01d86b in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #4 0x00007fc69f01d6e7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #5 0x00007fc6cdf7b6db in start_thread (arg=0x7fc693fff700) at pthread_create.c:463 #6 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 6 (Thread 0x7fc699738700 (LWP 32030)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7b73428) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7b733d8, cond=0x55b8c7b73400) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7b73400, mutex=0x55b8c7b733d8) at pthread_cond_wait.c:655 #3 0x00007fc69f01d86b in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #4 0x00007fc69f01d6e7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #5 0x00007fc6cdf7b6db in start_thread (arg=0x7fc699738700) at pthread_create.c:463 #6 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 5 (Thread 0x7fc699f39700 (LWP 32029)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b8c7b732c0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7b73270, cond=0x55b8c7b73298) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x55b8c7b73298, mutex=0x55b8c7b73270) at pthread_cond_wait.c:655 #3 0x00007fc69f01d86b in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #4 0x00007fc69f01d6e7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so #5 0x00007fc6cdf7b6db in start_thread (arg=0x7fc699f39700) at pthread_create.c:463 #6 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 4 (Thread 0x7fc6aa8e5700 (LWP 32028)): #0 0x00007fc6cb712cd9 in g_mutex_lock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #1 0x00007fc6cb6cce5c in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007fc6cb6cd3e0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #4 0x00007fc6d513990b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #6 0x00007fc6d4efd22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x00007fc6d6e41d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5 #8 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #9 0x00007fc6cdf7b6db in start_thread (arg=0x7fc6aa8e5700) at pthread_create.c:463 #10 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 3 (Thread 0x7fc6b0e5e700 (LWP 32027)): #0 0x00007fc6d47ebbf9 in __GI___poll (fds=0x7fc6b0e5db68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29 #1 0x00007fc6c4910747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #2 0x00007fc6c491236a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #3 0x00007fc6b3a042a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #4 0x00007fc6d4f0216d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #5 0x00007fc6cdf7b6db in start_thread (arg=0x7fc6b0e5e700) at pthread_create.c:463 #6 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 2 (Thread 0x7fc6b4cd2700 (LWP 32026)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7fc6c982e110) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7620980, cond=0x7fc6c982e0e8) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x7fc6c982e0e8, mutex=0x55b8c7620980) at pthread_cond_wait.c:655 #3 0x00007fc6d4b80620 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007fc6c8b6f0a7 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5 #5 0x00007fc6c8b6f1e9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5 #6 0x00007fc6d4b86733 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #7 0x00007fc6cdf7b6db in start_thread (arg=0x7fc6b4cd2700) at pthread_create.c:463 #8 0x00007fc6d47f888f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Thread 1 (Thread 0x7fc6d816d940 (LWP 32025)): #0 0x00007fc6cdf819f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7ffd1963b228) at ../sysdeps/unix/sysv/linux/futex-internal.h:88 #1 __pthread_cond_wait_common (abstime=0x0, mutex=0x55b8c7634228, cond=0x7ffd1963b200) at pthread_cond_wait.c:502 #2 __pthread_cond_wait (cond=0x7ffd1963b200, mutex=0x55b8c7634228) at pthread_cond_wait.c:655 #3 0x00007fc6c4910952 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #4 0x00007fc6c491206f in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #5 0x00007fc6c4912180 in xcb_wait_for_reply () from /usr/lib/x86_64-linux-gnu/libxcb.so.1 #6 0x00007fc6b3a032ea in QXcbConnection::sync() () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #7 0x00007fc6b3a220d3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #8 0x00007fc6b3a221ac in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #9 0x00007fc6d5840f4b in QBackingStore::beginPaint(QRegion const&) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #10 0x00007fc6d5e6dc14 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #11 0x00007fc6d5e6e095 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #12 0x00007fc6d5e8566f in QWidgetPrivate::syncBackingStore() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #13 0x00007fc6d5e9d1a8 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #14 0x00007fc6d5fb0c4b in QMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #15 0x00007fc6d100cb87 in KMainWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 #16 0x00007fc6d10519e5 in KXmlGuiWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5 #17 0x00007fc6d5e5e82c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #18 0x00007fc6d5e660f4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #19 0x00007fc6d50e09a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #20 0x00007fc6d50e311d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #21 0x00007fc6d513a2c3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #22 0x00007fc6cb6cd287 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #23 0x00007fc6cb6cd4c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #24 0x00007fc6cb6cd54c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #25 0x00007fc6d51398ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #26 0x00007fc6d50de9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #27 0x00007fc6d50e7a84 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #28 0x000055b8c71704f7 in ?? () #29 0x00007fc6d46f8b97 in __libc_start_main (main=0x55b8c716a400, argc=1, argv=0x7ffd1963c178, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd1963c168) at ../csu/libc-start.c:310 #30 0x000055b8c7170a7a in _start () Possible duplicates by query: bug 393643, bug 391158. Reported using DrKonqi
I already disabled the background parser. How can install more debug symbols to make the crash report more useful?
Unfortunately this is a crash in clang, not much we can do about it on the KDevelop side :/
Hi, thanks for the assessment. I really would like to use KDevelop for a big project at work. What is the recommended way to go forward? I already downloaded and compiled the latest code with kdesrc-build. I first thought about trying to narrow down the reason for the crash. With the self-compiled binary I could see from the console output that the crash happens in a file that looks pretty simple. (It has nothing to do anymore with the original crash description because it also crashes when the project code compiles fine; so I rename the title of the issue). I suspect the project is too complex to find a good solution here. With the self-compiled code, would it be easily feasible to remove the calls to libclang to workaround this specific problem? What do you think?
It won't be, this happens deep within a call to ParseTranslationUnit, if you remove that you basically disable C++ support completely. Maybe try reporting this to libclang upstream, see what they say ...
(In reply to Sven Brauch from comment #4) > It won't be, this happens deep within a call to ParseTranslationUnit, if you > remove that you basically disable C++ support completely. Thanks for the assessment. It would (hopefully) leave me with the other useful features like the compiler output parser (to jump to the correct error lines) and maybe visual debugging. :-) > Maybe try reporting this to libclang upstream, see what they say ... Hmm, a report like "in my large project with undisclosable source code libclang crashes in Kdevelop" seems not helpful for the libclang guys :(. Maybe I try anyway.