Bug 316622

Summary: Crash after adding files in a CMakeLists.txt
Product: [Applications] kdevelop Reporter: Bart Janssens <bart>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash CC: bart
Priority: NOR    
Version: unspecified   
Target Milestone: 4.3.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bart Janssens 2013-03-12 22:31:49 UTC
Application: kdevelop (4.5.60)
KDE Platform Version: 4.10.1
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

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

Added new cpp files and modified CMakeLists.txt accordingly. Hit F8 to rebuild, and it crashes shortly after cmake has ran. This is on latest git.

The crash can be reproduced every time.

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

Thread 14 (Thread 0x7f35a7835700 (LWP 27593)):
#0  0x00007f35c3196d01 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f35c3422d37 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f35bfa697ff in KDevelop::DUChainPrivate::CleanupThread::run (this=0x1b5fe40) at /home/bjanssens/src/build/aur/kdevplatform-git/src/kdevplatform/language/duchain/duchain.cpp:282
#3  0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#5  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7f358fda1700 (LWP 27596)):
#0  0x00007f35c156cfad in poll () from /usr/lib/libc.so.6
#1  0x00007f35bbc89b14 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f35c354db86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f35c341f8a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#9  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7f358f5a0700 (LWP 27597)):
#0  0x00007f35c3194d83 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#1  0x00007f35bbcc6b41 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#2  0x00007f35bbc893b3 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#3  0x00007f35bbc89a3b in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007f35c354db86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007f35c341f8a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#11 0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7f3587fff700 (LWP 27602)):
#0  0x00007f35c3196954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f35c07017a7 in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007f35c07017d9 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#4  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7f358625b700 (LWP 27605)):
#0  0x00007f35bbc89491 in g_main_context_query () from /usr/lib/libglib-2.0.so.0
#1  0x00007f35bbc89a89 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f35c354db86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f35c341f8a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f35c34febbf in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#10 0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7f34f2f4c700 (LWP 27633)):
#0  0x00007f35c3196954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f35ba159af5 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f35ba159b49 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#4  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7f3584dcb700 (LWP 27634)):
#0  0x00007f35c3196954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f35b9ea0059 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f35ba18827e in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#4  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7f34fa327700 (LWP 27635)):
#0  0x00007f35c319910c in __lll_lock_wait () from /usr/lib/libpthread.so.0
#1  0x00007f35c3194f47 in _L_lock_560 () from /usr/lib/libpthread.so.0
#2  0x00007f35c3194dd9 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#3  0x00007f35b53e283c in ?? () from /usr/lib/libGL.so.1
#4  0x00007f35b53e6cb0 in ?? () from /usr/lib/libGL.so.1
#5  0x00007f35b53e7196 in ?? () from /usr/lib/libGL.so.1
#6  0x00007f35b4238b27 in ?? () from /usr/lib/libnvidia-tls.so.313.26
#7  0x00007f35bbcc5e7f in ?? () from /usr/lib/libglib-2.0.so.0
#8  0x00007f35bbc896a4 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#9  0x00007f35bbc89ab2 in ?? () from /usr/lib/libglib-2.0.so.0
#10 0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#11 0x00007f35c354db86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#12 0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#13 0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#14 0x00007f35c341f8a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#15 0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#17 0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#18 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f34f94aa700 (LWP 27649)):
#0  0x00007f35bbc5be80 in pthread_mutex_lock@plt () from /usr/lib/libglib-2.0.so.0
#1  0x00007f35bbcc6b41 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#2  0x00007f35bbc893b3 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#3  0x00007f35bbc89a3b in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007f35c354db86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007f35c341f8a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007f35c34febbf in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#12 0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#13 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7f34f3c3f700 (LWP 27832)):
#0  0x00007f35c3196954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f35c3422ddb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f35c5d95df1 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f35c5d9863b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f35c5d974af in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f35c5d9753b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#8  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7f34f274b700 (LWP 27833)):
#0  0x00007f35c3196954 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f35c3422ddb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f35c5d95df1 in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007f35c5d9863b in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007f35c5d98654 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0x00007f35c5d974af in ?? () from /usr/lib/libthreadweaver.so.4
#6  0x00007f35c5d9753b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#9  0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f34f8ca9700 (LWP 32217)):
#0  0x00007f35c15690bd in read () from /usr/lib/libc.so.6
#1  0x00007f35b53e716c in ?? () from /usr/lib/libGL.so.1
#2  0x00007f35b4238b27 in ?? () from /usr/lib/libnvidia-tls.so.313.26
#3  0x00007f35bbcc5e7f in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f35bbc896a4 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#5  0x00007f35bbc89ab2 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#7  0x00007f35c354db86 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0x00007f35c341f8a0 in QThread::exec() () from /usr/lib/libQtCore.so.4
#11 0x00007f35c34febbf in ?? () from /usr/lib/libQtCore.so.4
#12 0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#13 0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#14 0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#15 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f34f0e93700 (LWP 32218)):
#0  0x00007f35c319938d in write () from /usr/lib/libpthread.so.0
#1  0x00007f35bbcc5ef1 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f35c3522b1a in QCoreApplication::postEvent(QObject*, QEvent*, int) () from /usr/lib/libQtCore.so.4
#3  0x00007f35c3534eb5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#4  0x00007f35c709cab4 in KDevelop::IProject::fileAddedToSet (this=<optimized out>, _t1=0x29d4d20, _t2=...) at /home/bjanssens/src/build/aur/kdevplatform-git/src/build/interfaces/iproject.moc:199
#5  0x00007f35c00a62d9 in KDevelop::ProjectFileItem::setUrl (this=this@entry=0x7f3475814b70, url=...) at /home/bjanssens/src/build/aur/kdevplatform-git/src/kdevplatform/project/projectmodel.cpp:857
#6  0x00007f35c00a6cc9 in KDevelop::ProjectFileItem::ProjectFileItem (this=0x7f3475814b70, project=0x29d4d20, file=..., parent=0x7f3475823900) at /home/bjanssens/src/build/aur/kdevplatform-git/src/kdevplatform/project/projectmodel.cpp:713
#7  0x00007f3585625c5f in CMakeManager::setTargetFiles (this=this@entry=0x532cf30, target=target@entry=0x7f3475823900, files=...) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:981
#8  0x00007f358562d3c0 in CMakeManager::parse (this=0x532cf30, item=0x7f347524cf00) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:932
#9  0x00007f358562d7df in CMakeManager::parse (this=0x532cf30, item=0x7f3475259d80) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:941
#10 0x00007f358562d7df in CMakeManager::parse (this=0x532cf30, item=0x7f347503ee50) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:941
#11 0x00007f358562d7df in CMakeManager::parse (this=0x532cf30, item=0x8d35160) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:941
#12 0x00007f35c00ad03b in KDevelop::ImportProjectJobPrivate::import (this=0x822e160, folder=<optimized out>) at /home/bjanssens/src/build/aur/kdevplatform-git/src/kdevplatform/project/importprojectjob.cpp:53
#13 0x00007f35c00acb89 in QtConcurrent::RunFunctionTask<void>::run (this=0x8c166c0) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:134
#14 0x00007f35c341645d in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f35c342287c in ?? () from /usr/lib/libQtCore.so.4
#16 0x00007f35b53e81b4 in ?? () from /usr/lib/libGL.so.1
#17 0x00007f35c3192e0f in start_thread () from /usr/lib/libpthread.so.0
#18 0x00007f35c1575efd in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f35b09407c0 (LWP 27545)):
[KCrash Handler]
#5  0x00007f3585856393 in MakeJob::start (this=0x2ac1690) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/projectbuilders/makebuilder/makejob.cpp:79
#6  0x00007f35c6ddfc7b in KDevelop::RunController::registerJob (this=0xc926e0, job=0x2ac1690) at /home/bjanssens/src/build/aur/kdevplatform-git/src/kdevplatform/shell/runcontroller.cpp:580
#7  0x00007f35c3534b8f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#8  0x00007f35c73e6272 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#9  0x00007f35c73e62b0 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#10 0x00007f35c4f0cb2a in KDevelop::OutputExecuteJob::childProcessExited (this=0x2a24630, exitCode=<optimized out>, exitStatus=<optimized out>) at /home/bjanssens/src/build/aur/kdevplatform-git/src/kdevplatform/outputview/outputexecutejob.cpp:361
#11 0x00007f35c3534b8f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#12 0x00007f35c34b548f in QProcess::finished(int, QProcess::ExitStatus) () from /usr/lib/libQtCore.so.4
#13 0x00007f35c34b9597 in ?? () from /usr/lib/libQtCore.so.4
#14 0x00007f35c34b961e in ?? () from /usr/lib/libQtCore.so.4
#15 0x00007f35c3534b8f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#16 0x00007f35c357f79e in QSocketNotifier::activated(int) () from /usr/lib/libQtCore.so.4
#17 0x00007f35c353c5eb in QSocketNotifier::event(QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007f35c26b218c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f35c26b660a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f35c3d3f8c6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007f35c351f6ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#22 0x00007f35c354d368 in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007f35bbc89845 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007f35bbc89b78 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007f35bbc89c34 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007f35c354db66 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0x00007f35c275269e in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007f35c351e3ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#29 0x00007f35c351e688 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0x00007f35c3523328 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#31 0x000000000040d82b in main (argc=<optimized out>, argv=<optimized out>) at /home/bjanssens/src/build/aur/kdevelop-git/src/kdevelop/app/main.cpp:522

This bug may be a duplicate of or related to bug 302413.

Possible duplicates by query: bug 315785, bug 315420, bug 314944, bug 313934, bug 313253.

Reported using DrKonqi
Comment 1 Kevin Funk 2013-03-15 22:36:00 UTC

*** This bug has been marked as a duplicate of bug 302413 ***