Bug 257095

Summary: Crash when opening a project
Product: [Applications] kdevelop Reporter: David <daviddoria>
Component: generalAssignee: kdevelop-bugs-null
Status: CLOSED NOT A BUG    
Severity: crash    
Priority: NOR    
Version: 4.1.60   
Target Milestone: 4.1.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David 2010-11-16 22:12:13 UTC
Application: kdevelop (4.1.60)
KDE Platform Version: 4.5.2 (KDE 4.5.2) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-56.fc13.i686.PAE i686
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
When I open a project, KDevelop crashes. It wouldn't let me submit this without more text, so here it is.

The crash can be reproduced some of the time.

 -- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
__kernel_vsyscall () at arch/x86/vdso/vdso32/sysenter.S:49
49		pop %ebp
[Current thread is 1 (Thread 0xb6669780 (LWP 2518))]

Thread 3 (Thread 0xb308fb70 (LWP 2553)):
#0  __kernel_vsyscall () at arch/x86/vdso/vdso32/sysenter.S:49
#1  0x001a95d4 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:236
#2  0x02bdd630 in wait (this=0x89ab9f4, mutex=0x89ab9f8, time=1000) at thread/qwaitcondition_unix.cpp:85
#3  QWaitCondition::wait (this=0x89ab9f4, mutex=0x89ab9f8, time=1000) at thread/qwaitcondition_unix.cpp:159
#4  0x056dcf02 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x89ab9e8) at /home/doriad/src/kdevplatform/language/duchain/duchain.cpp:283
#5  0x02bdc74f in QThreadPrivate::start (arg=0x89ab9e8) at thread/qthread_unix.cpp:248
#6  0x001a5919 in start_thread (arg=0xb308fb70) at pthread_create.c:301
#7  0x03ecacce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xb1afeb70 (LWP 2594)):
[KCrash Handler]
#7  KDevelop::DUChainBase::makeDynamic (this=0x90071b0) at /home/doriad/src/kdevplatform/language/duchain/duchainbase.cpp:137
#8  0x05dc0063 in d_func_dynamic (this=0x90071b0, url=..., range=..., file=0x8fa4c58) at /usr/src/debug/kdevplatform-1.0.1/language/duchain/topducontext.h:397
#9  KDevelop::TopDUContext::TopDUContext (this=0x90071b0, url=..., range=..., file=0x8fa4c58) at /usr/src/debug/kdevplatform-1.0.1/language/duchain/topducontext.cpp:748
#10 0x02a35083 in CMakeProjectVisitor::createContext (path=..., aux=..., endl=15, endc=35, isClean=true) at /usr/src/debug/kdevelop-4.0.1/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:684
#11 0x02a408f2 in CMakeProjectVisitor::walk (this=0xb1afd934, fc=..., line=0, isClean=true) at /usr/src/debug/kdevelop-4.0.1/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2049
#12 0x02a62b5c in CMakeParserUtils::includeScript (file=..., parent=..., variables=0x8f55924, macros=0x8f8a064, sourcedir=..., cache=0x8fa3a34, modulesDir=...)
    at /usr/src/debug/kdevelop-4.0.1/projectmanagers/cmake/parser/cmakeparserutils.cpp:164
#13 0x029c6e42 in CMakeManager::includeScript (this=0x8f58c78, file=..., project=0x8d21d90, parent=...) at /home/doriad/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:318
#14 0x029c89b7 in CMakeManager::initializeProject (this=0x8f58c78, project=0x8d21d90, baseUrl=...) at /home/doriad/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:234
#15 0x029cff59 in CMakeManager::parse (this=0x8f58c78, item=0x8fa4530) at /home/doriad/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:354
#16 0x00a03070 in KDevelop::ImportProjectJobPrivate::import (this=0x8fb24f8, folder=0x8fa4530) at /home/doriad/src/kdevplatform/project/importprojectjob.cpp:53
#17 0x00a02b64 in QtConcurrent::VoidStoredMemberFunctionPointerCall1<void, KDevelop::ImportProjectJobPrivate, KDevelop::ProjectFolderItem*, KDevelop::ProjectFolderItem*>::runFunctor (this=0x8fd1188)
    at /usr/include/QtCore/qtconcurrentstoredfunctioncall.h:426
#18 0x00a02c3e in QtConcurrent::RunFunctionTask<void>::run (this=0x8fd1188) at /usr/include/QtCore/qtconcurrentrunbase.h:120
#19 0x02bd2fb9 in QThreadPoolThread::run (this=0x8f9d808) at concurrent/qthreadpool.cpp:106
#20 0x02bdc74f in QThreadPrivate::start (arg=0x8f9d808) at thread/qthread_unix.cpp:248
#21 0x001a5919 in start_thread (arg=0xb1afeb70) at pthread_create.c:301
#22 0x03ecacce in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb6669780 (LWP 2518)):
#0  __kernel_vsyscall () at arch/x86/vdso/vdso32/sysenter.S:49
#1  0x001a922c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x02bdd6af in wait (this=0x8ff4dcc, mutex=0x8ff4db8, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#3  QWaitCondition::wait (this=0x8ff4dcc, mutex=0x8ff4db8, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#4  0x02bd313f in QThreadPoolPrivate::waitForDone (this=0x8ff4d68) at concurrent/qthreadpool.cpp:295
#5  0x02bd35b1 in QThreadPool::~QThreadPool (this=0x8f402d0, __in_chrg=<value optimized out>) at concurrent/qthreadpool.cpp:428
#6  0x02bd3613 in QThreadPool::~QThreadPool (this=0x8f402d0, __in_chrg=<value optimized out>) at concurrent/qthreadpool.cpp:430
#7  0x02bd3b8b in QGlobalStaticDeleter<QThreadPool>::~QGlobalStaticDeleter (this=0x2de4aa0, __in_chrg=<value optimized out>) at ../../src/corelib/global/qglobal.h:1796
#8  0x03e1b42f in __run_exit_handlers (status=1) at exit.c:78
#9  exit (status=1) at exit.c:100
#10 0x0168a811 in gdk_x_io_error (display=0x8627210) at gdkmain-x11.c:524
#11 0x0119940b in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#12 0x01199447 in ?? () from /usr/lib/libkdeui.so.5
#13 0x013f5a57 in _XIOError (dpy=0x8627210) at XlibInt.c:3138
#14 0x013fda43 in process_responses (dpy=<value optimized out>, wait_for_first_event=0, current_error=0x0, current_request=0) at xcb_io.c:247
#15 0x013fe3e7 in _XEventsQueued (dpy=0x8627210, mode=2) at xcb_io.c:263
#16 0x013e69fb in XEventsQueued (dpy=0x8627210, mode=2) at Pending.c:44
#17 0x034c3446 in x11EventSourceCheck (s=0x8616d40) at kernel/qguieventdispatcher_glib.cpp:87
#18 0x045cc739 in IA__g_main_context_check (context=0x8615e90, max_priority=2147483647, fds=0x8db3908, n_fds=16) at gmain.c:2469
#19 0x045cd066 in g_main_context_iterate (context=0x1a8490, block=1, dispatch=1, self=0x8613de0) at gmain.c:2588
#20 0x045cd449 in IA__g_main_context_iteration (context=0x8615e90, may_block=1) at gmain.c:2654
#21 0x02cf6446 in QEventDispatcherGlib::processEvents (this=0x85f7a48, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#22 0x034c3336 in QGuiEventDispatcherGlib::processEvents (this=0x85f7a48, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#23 0x02ccc80a in QEventLoop::processEvents (this=0xbfead124, flags=...) at kernel/qeventloop.cpp:149
#24 0x02cccb4a in QEventLoop::exec (this=0xbfead124, flags=...) at kernel/qeventloop.cpp:201
#25 0x02cd0807 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#26 0x03414828 in QApplication::exec () at kernel/qapplication.cpp:3585
#27 0x080526d5 in main (argc=<value optimized out>, argv=) at /home/doriad/src/kdevelop/app/main.cpp:468

Reported using DrKonqi
Comment 1 Milian Wolff 2010-11-17 13:49:47 UTC
you are mixing self-compiled 4.1 with system wide 4.0 which is not supported and leads to crashes. Compare e.g.:

Application: kdevelop (4.1.60)

and the paths in

#12 0x02a62b5c in CMakeParserUtils::includeScript (file=..., parent=...,
variables=0x8f55924, macros=0x8f8a064, sourcedir=..., cache=0x8fa3a34,
modulesDir=...)
    at
/usr/src/debug/kdevelop-4.0.1/projectmanagers/cmake/parser/cmakeparserutils.cpp:164
#13 0x029c6e42 in CMakeManager::includeScript (this=0x8f58c78, file=...,
project=0x8d21d90, parent=...) at
/home/doriad/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:318


Make sure you wipe your system installation.
Comment 2 David 2010-11-17 21:18:10 UTC
Excellent, I ran 

sudo yum remove kdevplatform 

and it works fine now.

Thank you for the quick response!