Created attachment 107456 [details] full backtrace Application: kdevelop (5.1.1) Qt Version: 5.7.1 Frameworks Version: 5.37.0 Operating System: Linux 4.12.8-gentoo x86_64 Distribution: "Gentoo Base System release 2.3" -- Information about the crash: - What I was doing when the application crashed: Changed a variable in ProjectConfiguration::CMake::Cache Values. After pressing OK KDevelop crashed. The variable in question makes some CMake targets visible and hides some others. Several threads in pthread_cond_wait have been omitted to keep below the comment size limit. The full backtrace is attached. This report was created with the help of KCrash. -- Backtrace: Application: KDevelop (kdevelop), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7f6bdb40a800 (LWP 14908))] Thread 69 (Thread 0x7f6a59dde700 (LWP 15109)): #0 0x00007f6bd03e6634 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0 #1 0x00007f6bd03935ac in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f6bd03940ab in ?? () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #4 0x00007f6bd935581b in QEventDispatcherGlib::processEvents (this=0x7f6a540008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #5 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7f6a59dddd20, flags=...) at kernel/qeventloop.cpp:134 #6 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7f6a59dddd20, flags=...) at kernel/qeventloop.cpp:212 #7 0x00007f6bd9098903 in QThread::exec (this=0x51a5e30) at thread/qthread.cpp:507 #8 0x00007f6bd6aa6190 in KDevelop::CompletionWorkerThread::run (this=0x51a5e30) at /usr/src/debug/dev-util/kdevplatform-5.1.1/kdevplatform-5.1.1/language/codecompletion/codecompletionmodel.cpp:89 #9 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x51a5e30) at thread/qthread_unix.cpp:368 #10 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #11 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 47 (Thread 0x7f6af57fa700 (LWP 15087)): #0 0x00007f6bd906af84 in std::operator& (__m=std::memory_order_relaxed, __mod=1) at /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/atomic_base.h:81 #1 0x00007f6bd90943c3 in std::__atomic_base<QMutexData*>::compare_exchange_strong (__m2=std::memory_order_relaxed, __m1=std::memory_order_release, __p2=0x0, __p1=@0x7f6af57f9970: 0x1, this=0x5a22d50) at /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/atomic_base.h:746 #2 std::atomic<QMutexData*>::compare_exchange_strong (this=0x5a22d50, __p1=@0x7f6af57f9970: 0x1, __p2=0x0, __m=std::memory_order_release) at /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/atomic:475 #3 0x00007f6bd9094236 in QAtomicOps<QMutexData*>::testAndSetRelease<QMutexData*> (_q_value=..., expectedValue=0x1, newValue=0x0, currentValue=0x7f6af57f9a00) at ../../src/corelib/arch/qatomic_cxx11.h:299 #4 0x00007f6bd90940f2 in QBasicAtomicPointer<QMutexData>::testAndSetRelease (this=0x5a22d50, expectedValue=0x1, newValue=0x0, currentValue=@0x7f6af57f9a00: 0x7f6af57f9a30) at ../../src/corelib/thread/qbasicatomic.h:261 #5 0x00007f6bd9093ddc in QBasicMutex::fastTryUnlock (this=0x5a22d50, current=@0x7f6af57f9a00: 0x7f6af57f9a30) at thread/qmutex.h:92 #6 0x00007f6bd9093860 in QMutex::unlock (this=0x5a22d50) at thread/qmutex.cpp:277 #7 0x00007f6bd90701da in QMutexLocker::unlock (this=0x7f6af57f9a70) at ../../src/corelib/thread/qmutex.h:147 #8 0x00007f6bd9070192 in QMutexLocker::~QMutexLocker (this=0x7f6af57f9a70, __in_chrg=<optimized out>) at ../../src/corelib/thread/qmutex.h:141 #9 0x00007f6bd934fe51 in QThreadData::canWaitLocked (this=0x5a22d20) at ../../src/corelib/thread/qthread_p.h:253 #10 0x00007f6bd9354f38 in postEventSourcePrepare (s=0x7f6ac00012d0, timeout=0x7f6af57f9b04) at kernel/qeventdispatcher_glib.cpp:259 #11 0x00007f6bd03935c0 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0 #12 0x00007f6bd03940ab in ?? () from /usr/lib64/libglib-2.0.so.0 #13 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #14 0x00007f6bd935581b in QEventDispatcherGlib::processEvents (this=0x7f6ac00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #15 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7f6af57f9d20, flags=...) at kernel/qeventloop.cpp:134 #16 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7f6af57f9d20, flags=...) at kernel/qeventloop.cpp:212 #17 0x00007f6bd9098903 in QThread::exec (this=0x54fe640) at thread/qthread.cpp:507 #18 0x00007f6bd6aa6190 in KDevelop::CompletionWorkerThread::run (this=0x54fe640) at /usr/src/debug/dev-util/kdevplatform-5.1.1/kdevplatform-5.1.1/language/codecompletion/codecompletionmodel.cpp:89 #19 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x54fe640) at thread/qthread_unix.cpp:368 #20 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #21 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 6 (Thread 0x7f6b8bfff700 (LWP 15008)): #0 0x00007f6bd891b48d in poll () from /lib64/libc.so.6 #1 0x00007f6bd039417c in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f6bd935581b in QEventDispatcherGlib::processEvents (this=0x7f6b800ddf40, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #4 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7f6b8bffed80, flags=...) at kernel/qeventloop.cpp:134 #5 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7f6b8bffed80, flags=...) at kernel/qeventloop.cpp:212 #6 0x00007f6bd9098903 in QThread::exec (this=0x7f6bcb710b78 <KDevelop::(anonymous namespace)::Q_QGS_s_parsingThread::innerFunction()::holder+8>) at thread/qthread.cpp:507 #7 0x00007f6bd9098adc in QThread::run (this=0x7f6bcb710b78 <KDevelop::(anonymous namespace)::Q_QGS_s_parsingThread::innerFunction()::holder+8>) at thread/qthread.cpp:574 #8 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x7f6bcb710b78 <KDevelop::(anonymous namespace)::Q_QGS_s_parsingThread::innerFunction()::holder+8>) at thread/qthread_unix.cpp:368 #9 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #10 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 5 (Thread 0x7f6b9affd700 (LWP 14933)): #0 0x00007f6bd891b48d in poll () from /lib64/libc.so.6 #1 0x00007f6bd039417c in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f6bd935581b in QEventDispatcherGlib::processEvents (this=0x7f6b900008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #4 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7f6b9affcd80, flags=...) at kernel/qeventloop.cpp:134 #5 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7f6b9affcd80, flags=...) at kernel/qeventloop.cpp:212 #6 0x00007f6bd9098903 in QThread::exec (this=0x4a46c30) at thread/qthread.cpp:507 #7 0x00007f6bce977845 in ?? () from /usr/lib64/libQt5Qml.so.5 #8 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x4a46c30) at thread/qthread_unix.cpp:368 #9 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #10 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 4 (Thread 0x7f6ba2de5700 (LWP 14916)): #0 0x00007f6bd891b48d in poll () from /lib64/libc.so.6 #1 0x00007f6bd039417c in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f6bd935581b in QEventDispatcherGlib::processEvents (this=0x7f6b9c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #4 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7f6ba2de4d20, flags=...) at kernel/qeventloop.cpp:134 #5 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7f6ba2de4d20, flags=...) at kernel/qeventloop.cpp:212 #6 0x00007f6bd9098903 in QThread::exec (this=0x3486d70) at thread/qthread.cpp:507 #7 0x00007f6bd6aa6190 in KDevelop::CompletionWorkerThread::run (this=0x3486d70) at /usr/src/debug/dev-util/kdevplatform-5.1.1/kdevplatform-5.1.1/language/codecompletion/codecompletionmodel.cpp:89 #8 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x3486d70) at thread/qthread_unix.cpp:368 #9 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #10 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 3 (Thread 0x7f6bae160700 (LWP 14915)): #0 0x00007f6bd262a259 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0 #1 0x00007f6bd90a18c2 in QWaitConditionPrivate::wait_relative (this=0x3198c30, time=1000) at thread/qwaitcondition_unix.cpp:133 #2 0x00007f6bd90a1902 in QWaitConditionPrivate::wait (this=0x3198c30, time=1000) at thread/qwaitcondition_unix.cpp:141 #3 0x00007f6bd90a16a2 in QWaitCondition::wait (this=0x31983f8, mutex=0x3198400, time=1000) at thread/qwaitcondition_unix.cpp:215 #4 0x00007f6bd696035c in KDevelop::DUChainPrivate::CleanupThread::run (this=0x31983e0) at /usr/src/debug/dev-util/kdevplatform-5.1.1/kdevplatform-5.1.1/language/duchain/duchain.cpp:282 #5 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x31983e0) at thread/qthread_unix.cpp:368 #6 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #7 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7f6bbda11700 (LWP 14911)): #0 0x00007f6bd03e6619 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0 #1 0x00007f6bd0394162 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #3 0x00007f6bd935581b in QEventDispatcherGlib::processEvents (this=0x7f6bb00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425 #4 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7f6bbda10d70, flags=...) at kernel/qeventloop.cpp:134 #5 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7f6bbda10d70, flags=...) at kernel/qeventloop.cpp:212 #6 0x00007f6bd9098903 in QThread::exec (this=0x7f6bdb5751c0) at thread/qthread.cpp:507 #7 0x00007f6bdb4f7d35 in ?? () from /usr/lib64/libQt5DBus.so.5 #8 0x00007f6bd90a004e in QThreadPrivate::start (arg=0x7f6bdb5751c0) at thread/qthread_unix.cpp:368 #9 0x00007f6bd26243aa in start_thread () from /lib64/libpthread.so.0 #10 0x00007f6bd892452d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7f6bdb40a800 (LWP 14908)): [KCrash Handler] #5 0x00007f6bd907fee5 in QString::length (this=0x4fc7e38) at ../../src/corelib/tools/qstring.h:877 #6 0x00007f6bd916dbc7 in QString::indexOf (this=0x4fc7e38, ch=..., from=0, cs=Qt::CaseSensitive) at tools/qstring.cpp:3184 #7 0x00007f6bdab1d4c9 in QString::contains (this=0x4fc7e38, c=..., cs=Qt::CaseSensitive) at /usr/include/qt5/QtCore/qstring.h:1132 #8 0x00007f6bdab3f934 in KDevelop::Path::isLocalFile (this=0x7ffd5ea42490) at /usr/src/debug/dev-util/kdevplatform-5.1.1/kdevplatform-5.1.1/util/path.cpp:327 #9 0x00007f6bd5f4ac38 in KDevelop::FileManagerListJob::startNextJob (this=0x8b16e80) at /usr/src/debug/dev-util/kdevplatform-5.1.1/kdevplatform-5.1.1/project/filemanagerlistjob.cpp:87 #10 0x00007f6bd5f4cd48 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KDevelop::FileManagerListJob::*)()>::call(void (KDevelop::FileManagerListJob::*)(), KDevelop::FileManagerListJob*, void**) (f=(void (KDevelop::FileManagerListJob::*)(KDevelop::FileManagerListJob * const)) 0x7f6bd5f4ab82 <KDevelop::FileManagerListJob::startNextJob()>, o=0x8b16e80, arg=0x51d88e0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:141 #11 0x00007f6bd5f4caa8 in QtPrivate::FunctionPointer<void (KDevelop::FileManagerListJob::*)()>::call<QtPrivate::List<>, void>(void (KDevelop::FileManagerListJob::*)(), KDevelop::FileManagerListJob*, void**) (f=(void (KDevelop::FileManagerListJob::*)(KDevelop::FileManagerListJob * const)) 0x7f6bd5f4ab82 <KDevelop::FileManagerListJob::startNextJob()>, o=0x8b16e80, arg=0x51d88e0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:160 #12 0x00007f6bd5f4c53f in QtPrivate::QSlotObject<void (KDevelop::FileManagerListJob::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5070870, r=0x8b16e80, a=0x51d88e0, ret=0x0) at /usr/include/qt5/QtCore/qobject_impl.h:120 #13 0x00007f6bd931a459 in QtPrivate::QSlotObjectBase::call (this=0x5070870, r=0x8b16e80, a=0x51d88e0) at ../../src/corelib/kernel/qobject_impl.h:101 #14 0x00007f6bd93106ad in QMetaCallEvent::placeMetaCall (this=0x4f878f0, object=0x8b16e80) at kernel/qobject.cpp:500 #15 0x00007f6bd93118b9 in QObject::event (this=0x8b16e80, e=0x4f878f0) at kernel/qobject.cpp:1263 #16 0x00007f6bd9bfcfbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #17 0x00007f6bd9c04220 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #18 0x00007f6bd92d550b in QCoreApplication::notifyInternal2 (receiver=0x8b16e80, event=0x4f878f0) at kernel/qcoreapplication.cpp:988 #19 0x00007f6bd92d95ce in QCoreApplication::sendEvent (receiver=0x8b16e80, event=0x4f878f0) at kernel/qcoreapplication.h:231 #20 0x00007f6bd92d6956 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1deccc0) at kernel/qcoreapplication.cpp:1649 #21 0x00007f6bd92d630c in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1503 #22 0x00007f6bd935500b in postEventSourceDispatch (s=0x1e325f0) at kernel/qeventdispatcher_glib.cpp:276 #23 0x00007f6bd0393e3a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #24 0x00007f6bd03941e0 in ?? () from /usr/lib64/libglib-2.0.so.0 #25 0x00007f6bd039428c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #26 0x00007f6bd93557ec in QEventDispatcherGlib::processEvents (this=0x1e4be70, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #27 0x00007f6bd92d250a in QEventLoop::processEvents (this=0x7ffd5ea42d10, flags=...) at kernel/qeventloop.cpp:134 #28 0x00007f6bd92d2801 in QEventLoop::exec (this=0x7ffd5ea42d10, flags=...) at kernel/qeventloop.cpp:212 #29 0x00007f6bd92d5c95 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261 #30 0x000000000040ef0c in main (argc=2, argv=0x7ffd5ea43208) at /usr/src/debug/dev-util/kdevelop-5.1.1/kdevelop-5.1.1/app/main.cpp:763
Same root cause as in bug 355241, thus marking as a duplicate. *** This bug has been marked as a duplicate of bug 355241 ***