Summary: | KDevelop crash on cmake project import | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Patrick Zimmermann <beasley> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | aleixpol |
Priority: | NOR | ||
Version: | 4.5.0 | ||
Target Milestone: | 4.3.0 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Patrick Zimmermann
2013-05-23 16:48:11 UTC
*** This bug has been marked as a duplicate of bug 289522 *** How can this bug be a duplicate of 289552? That other bug has been resolved in 2011 and version 4.2 was affected. The fix went into version 4.4beta1. I hit this bug with version 4.5. The backtrace of the breaking thread look similar though. So should I reopen that other bug? Hm. I guess noone reads comments to closed bugs. So I'll reopen it. Bug 289522 was resolved in 2011 and version 4.2 was affected. The fix went into version 4.4beta1. This bug happens with version 4.5. The backtraces look similar though. So it is possible that Kdevelop broke again in the meantime. In either case a new bug is appropriate. If I am in some way wrong about this, please clarify what it should do instead. Thank you! Hi Patrick, do you have a project I can use to test it with? Or some way to reproduce? It looks very similar to the bug 319464. So if you can't share the project, maybe you can try the 4.5 branch instead (or wait until 4.5.1, which will be out in few days, hopefully). Hey, I compiled kdevplatform and kdevelop from the git 4.5 branch according to http://techbase.kde.org/Projects/KDevelop4/HowToCompile and the crash still happens. Here are the steps to reproduce: mkdir testing && cd testing git clone git://gitorious.org/bibletime/bibletime.git kdevelop -> Import Project -> testing/CMakeLists.txt -> ... I can't compile this project and I couldn't get the crash, I can't find the Sword finder, so maybe you can tell me where to get it? The sword finder resides in cmake/FindSword.cmake in the projects folder. On Ubuntu the package libsword-dev suffices. mkdir build && cd build cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX="install/" .. Works here. That you don't get the crash puzzles me. Do you have any hints what else I could try to narrow the crash down? I'm using archlinux here, and I don't have libsword available for some reason. Maybe you can try to create a project with without the dependencies that still crashes? please...? Sorry for the late reply. I've been pretty busy with real live. Will give it a try hopefully tomorrow. I trimmed the cmakelist.txt file down to: IF(NOT (DEFINED LST)) SET(LST "ASDF") ENDIF(NOT (DEFINED LST)) SET(WORD "ASDF") LIST(FIND WORD ${LST} X) Which still crashes KDevelop for me. Strangely the stacktrace looks different now: Application: KDevelop (kdevelop), signal: Segmentation fault Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". [Current thread is 1 (Thread 0xb1232740 (LWP 2480))] Thread 10 (Thread 0xad289b40 (LWP 2481)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb586ac33 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0xb5b8ddd4 in pthread_cond_timedwait () from /lib/i386-linux-gnu/libc.so.6 #3 0xb686406d in wait (time=1000, this=0x8a4fc50) at thread/qwaitcondition_unix.cpp:84 #4 QWaitCondition::wait (this=this@entry=0x871a03c, mutex=mutex@entry=0x871a040, time=time@entry=1000) at thread/qwaitcondition_unix.cpp:158 #5 0xb51df8ea in KDevelop::DUChainPrivate::CleanupThread::run (this=0x871a030) at /home/patrick/Documents/kdevelop/src/kdevplatform/language/duchain/duchain.cpp:282 #6 0xb6863b18 in QThreadPrivate::start (arg=0x871a030) at thread/qthread_unix.cpp:338 #7 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #8 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 9 (Thread 0xaa336b40 (LWP 2484)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb5b70dcb in poll () from /lib/i386-linux-gnu/libc.so.6 #2 0xb46592db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0 #3 0xb464a6d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #4 0xb464a831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #5 0xb69a8c3f in QEventDispatcherGlib::processEvents (this=0xa9a00468, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #6 0xb69753ec in QEventLoop::processEvents (this=this@entry=0xaa336228, flags=...) at kernel/qeventloop.cpp:149 #7 0xb69756e1 in QEventLoop::exec (this=this@entry=0xaa336228, flags=...) at kernel/qeventloop.cpp:204 #8 0xb6860fec in QThread::exec (this=this@entry=0x8d2d270) at thread/qthread.cpp:542 #9 0xb6954f2d in QInotifyFileSystemWatcherEngine::run (this=0x8d2d270) at io/qfilesystemwatcher_inotify.cpp:256 #10 0xb6863b18 in QThreadPrivate::start (arg=0x8d2d270) at thread/qthread_unix.cpp:338 #11 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #12 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 8 (Thread 0xa97acb40 (LWP 2496)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb5b6ec9b in read () from /lib/i386-linux-gnu/libc.so.6 #2 0xb468cd4e in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #3 0xb464a1e3 in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0 #4 0xb464a662 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #5 0xb464a831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #6 0xb69a8c3f in QEventDispatcherGlib::processEvents (this=0x8f5ac78, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #7 0xb69753ec in QEventLoop::processEvents (this=this@entry=0xa97ac228, flags=...) at kernel/qeventloop.cpp:149 #8 0xb69756e1 in QEventLoop::exec (this=this@entry=0xa97ac228, flags=...) at kernel/qeventloop.cpp:204 #9 0xb6860fec in QThread::exec (this=this@entry=0x8f3cb38) at thread/qthread.cpp:542 #10 0xb6954f2d in QInotifyFileSystemWatcherEngine::run (this=0x8f3cb38) at io/qfilesystemwatcher_inotify.cpp:256 #11 0xb6863b18 in QThreadPrivate::start (arg=0x8f3cb38) at thread/qthread_unix.cpp:338 #12 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #13 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 7 (Thread 0xa8fabb40 (LWP 2546)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb586a84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0xb5b8dd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0xb4f6e0ed in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4 #4 0xb4f6e11f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4 #5 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #6 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 6 (Thread 0xa79e8b40 (LWP 2560)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb586a84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0xb5b8dd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0xb37e7ae5 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4 #4 0xb37e7b1f in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4 #5 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #6 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 5 (Thread 0xa81e9b40 (LWP 2561)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb586a84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0xb5b8dd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0xb3818f63 in WTF::ThreadCondition::wait(WTF::Mutex&) () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4 #4 0xb34f7b1b in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4 #5 0xb37fd982 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4 #6 0xb3818b12 in ?? () from /usr/lib/i386-linux-gnu/libQtWebKit.so.4 #7 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #8 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 4 (Thread 0xa0f19b40 (LWP 2562)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb5b938e2 in clock_gettime () from /lib/i386-linux-gnu/libc.so.6 #2 0xb68c20d5 in do_gettime (frac=0xa0f18fe0, sec=0xa0f18fd8) at tools/qelapsedtimer_unix.cpp:123 #3 qt_gettime () at tools/qelapsedtimer_unix.cpp:140 #4 0xb69a980e in QTimerInfoList::updateCurrentTime (this=this@entry=0xa9a15c34) at kernel/qeventdispatcher_unix.cpp:354 #5 0xb69a8695 in timerSourceCheckHelper (src=0xa9a15c00) at kernel/qeventdispatcher_glib.cpp:150 #6 timerSourceCheckHelper (src=0xa9a15c00) at kernel/qeventdispatcher_glib.cpp:144 #7 0xb464a117 in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0 #8 0xb464a662 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #9 0xb464a831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #10 0xb69a8c3f in QEventDispatcherGlib::processEvents (this=0xa9a21fc8, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #11 0xb69753ec in QEventLoop::processEvents (this=this@entry=0xa0f19258, flags=...) at kernel/qeventloop.cpp:149 #12 0xb69756e1 in QEventLoop::exec (this=this@entry=0xa0f19258, flags=...) at kernel/qeventloop.cpp:204 #13 0xb6860fec in QThread::exec (this=this@entry=0x889d030) at thread/qthread.cpp:542 #14 0xb686114b in QThread::run (this=0x889d030) at thread/qthread.cpp:609 #15 0xb6863b18 in QThreadPrivate::start (arg=0x889d030) at thread/qthread_unix.cpp:338 #16 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #17 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 3 (Thread 0xa0612b40 (LWP 2750)): #0 0xb5b8e170 in ?? () from /lib/i386-linux-gnu/libc.so.6 #1 0xb5b70dd4 in poll () from /lib/i386-linux-gnu/libc.so.6 #2 0xb46592db in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0 #3 0xb464a6d0 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #4 0xb464a831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #5 0xb69a8c3f in QEventDispatcherGlib::processEvents (this=0xac9020e8, flags=...) at kernel/qeventdispatcher_glib.cpp:426 #6 0xb69753ec in QEventLoop::processEvents (this=this@entry=0xa0612228, flags=...) at kernel/qeventloop.cpp:149 #7 0xb69756e1 in QEventLoop::exec (this=this@entry=0xa0612228, flags=...) at kernel/qeventloop.cpp:204 #8 0xb6860fec in QThread::exec (this=this@entry=0x974e720) at thread/qthread.cpp:542 #9 0xb6954f2d in QInotifyFileSystemWatcherEngine::run (this=0x974e720) at io/qfilesystemwatcher_inotify.cpp:256 #10 0xb6863b18 in QThreadPrivate::start (arg=0x974e720) at thread/qthread_unix.cpp:338 #11 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #12 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 2 (Thread 0x9fe11b40 (LWP 2751)): [KCrash Handler] #7 0xb68af59f in QString::operator== (this=0x98aa57c, other=...) at tools/qstring.cpp:2192 #8 0xaa8c5e7c in QList<QString>::indexOf (this=this@entry=0x9fe10b34, t=..., from=<optimized out>, from@entry=0) at /usr/include/qt4/QtCore/qlist.h:855 #9 0xaa8af563 in CMakeProjectVisitor::visit (this=0x9fe10e14, list=0x9764970) at ../../../projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1701 #10 0xaa8a19c7 in ListAst::accept (this=0x9764970, visitor=0x9fe10e14) at ../../../projectmanagers/cmake/parser/cmakeast.h:517 #11 0xaa8b96ce in CMakeProjectVisitor::walk (this=0x9fe10e14, this@entry=0x4, fc=..., line=4, isClean=true) at ../../../projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2288 #12 0xaa8ba2e9 in CMakeProjectVisitor::walk (this=0x4, this@entry=0x9fe10e14, fc=..., line=line@entry=0, isClean=isClean@entry=true) at ../../../projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2311 #13 0xaa8d3d7f in CMakeParserUtils::includeScript (file=..., parent=..., data=data@entry=0x901e794, sourcedir=..., env=...) at ../../../projectmanagers/cmake/parser/cmakeparserutils.cpp:177 #14 0xa063c06e in CMakeManager::includeScript (this=this@entry=0x95e8df8, file=..., project=0x961ef30, dir=..., parent=...) at ../../../projectmanagers/cmake/cmakemanager.cpp:704 #15 0xa064224b in CMakeManager::parse (this=0x95e8df8, item=0x9915558) at ../../../projectmanagers/cmake/cmakemanager.cpp:785 #16 0xb53f59cb in KDevelop::ImportProjectJobPrivate::import (this=0x9b67fb8, folder=0x9915558) at /home/patrick/Documents/kdevelop/src/kdevplatform/project/importprojectjob.cpp:53 #17 0xb53f5668 in QtConcurrent::VoidStoredMemberFunctionPointerCall1<void, KDevelop::ImportProjectJobPrivate, KDevelop::ProjectFolderItem*, KDevelop::ProjectFolderItem*>::runFunctor (this=0x97c6010) at /usr/include/qt4/QtCore/qtconcurrentstoredfunctioncall.h:412 #18 0xb53f571e in run (this=0x97c6010) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:134 #19 QtConcurrent::RunFunctionTask<void>::run (this=0x97c6010) at /usr/include/qt4/QtCore/qtconcurrentrunbase.h:125 #20 0xb6856504 in QThreadPoolThread::run (this=0x9c1d630) at concurrent/qthreadpool.cpp:107 #21 0xb6863b18 in QThreadPrivate::start (arg=0x9c1d630) at thread/qthread_unix.cpp:338 #22 0xb5866d78 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #23 0xb5b803de in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 1 (Thread 0xb1232740 (LWP 2480)): #0 0xb7765424 in __kernel_vsyscall () #1 0xb586a84b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0xb5b8dd7c in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0xb68640f0 in wait (time=4294967295, this=0x98d6690) at thread/qwaitcondition_unix.cpp:86 #4 QWaitCondition::wait (this=this@entry=0x99167e8, mutex=0x99167d4, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158 #5 0xb6855d33 in QThreadPoolPrivate::waitForDone (this=0x9916788, msecs=msecs@entry=-1) at concurrent/qthreadpool.cpp:298 #6 0xb68577cc in QThreadPool::~QThreadPool (this=0x98cab60, __in_chrg=<optimized out>) at concurrent/qthreadpool.cpp:440 #7 0xb6857832 in QThreadPool::~QThreadPool (this=0x98cab60, __in_chrg=<optimized out>) at concurrent/qthreadpool.cpp:442 #8 0xb6857868 in QGlobalStaticDeleter<QThreadPool>::~QGlobalStaticDeleter (this=0xb6ae2ac0 <theInstance()::cleanup>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1950 #9 0xb5ac27c1 in ?? () from /lib/i386-linux-gnu/libc.so.6 #10 0xb5ac284d in exit () from /lib/i386-linux-gnu/libc.so.6 #11 0xb5edb408 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:782 #12 0xb6cc2559 in KApplication::xioErrhandler (this=0xbfb45374, dpy=dpy@entry=0x8733990) at ../../kdeui/kernel/kapplication.cpp:419 #13 0xb6cc2594 in kde_xio_errhandler (dpy=0x8733990) at ../../kdeui/kernel/kapplication.cpp:126 #14 0xb4897b44 in _XIOError () from /usr/lib/i386-linux-gnu/libX11.so.6 #15 0xb489539f in _XEventsQueued () from /usr/lib/i386-linux-gnu/libX11.so.6 #16 0xb4886030 in XEventsQueued () from /usr/lib/i386-linux-gnu/libX11.so.6 #17 0xb5f1c3aa in x11EventSourceCheck (s=0x87178e8) at kernel/qguieventdispatcher_glib.cpp:85 #18 0xb464a117 in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0 #19 0xb464a662 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #20 0xb464a831 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #21 0xb69a8c21 in QEventDispatcherGlib::processEvents (this=this@entry=0x8686d68, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #22 0xb5f1ca5a in QGuiEventDispatcherGlib::processEvents (this=0x8686d68, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #23 0xb69753ec in QEventLoop::processEvents (this=this@entry=0xbfb451d8, flags=...) at kernel/qeventloop.cpp:149 #24 0xb69756e1 in QEventLoop::exec (this=this@entry=0xbfb451d8, flags=...) at kernel/qeventloop.cpp:204 #25 0xb697b3fa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218 #26 0xb5e63fc4 in QApplication::exec () at kernel/qapplication.cpp:3828 #27 0x08054caf in main (argc=<optimized out>, argv=0xbfb45574) at /home/patrick/Documents/kdevelop/src/kdevelop/app/main.cpp:522 It's fixed in KDevelop 4.5.1 *** This bug has been marked as a duplicate of bug 319464 *** Just in case somebody still reads this: It actually works in 4.5.1. This is awesome. Thanks a lot! \o/ I did and I'm happy that you're happy! |