Bug 290905 - KDevelop crashes when opening latest kdelibs [parseFunctionInfo, StringAst::parseFunctionInfo]
Summary: KDevelop crashes when opening latest kdelibs [parseFunctionInfo, StringAst::p...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 4.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 302670 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-07 21:12 UTC by Lasse Liehu
Modified: 2012-12-23 01:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lasse Liehu 2012-01-07 21:12:05 UTC
Application: kdevelop (4.3.60)
KDE Platform Version: 4.7.97 (4.8 RC2 (4.7.97) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 3.1.7-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Steps to reproduce:
1. git clone kde:kdelibs
2. Open the main CMakeLists.txt as a project

Then KDevelop crashes while opening it. Crashes on both KDE/4.8 and master branches.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fdea1e837c0 (LWP 12953))]

Thread 10 (Thread 0x7fde83572700 (LWP 12954)):
#0  0x00007fde9de97f3e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde9e1251df in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fde9a38aa2b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x345bda0) at /w1/devel/kde-branch/src/kdevplatform/language/duchain/duchain.cpp:282
#3  0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#5  0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#6  0x00007fde9c25cbad in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7fde6c364700 (LWP 12959)):
#0  0x00007fde9c2548b3 in poll () from /lib/libc.so.6
#1  0x00007fde95b8bd58 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fde95b8c219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fde9e251166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fde9e220e92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fde9e2210e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fde9e121d47 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fde9e200cdf in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#10 0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#11 0x00007fde9c25cbad in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fde6b0cf700 (LWP 12962)):
#0  0x00007fde9e251c12 in ?? () from /usr/lib/libQtCore.so.4
#1  0x00007fde9e25063c in ?? () from /usr/lib/libQtCore.so.4
#2  0x00007fde9e2506e5 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fde95b8ade2 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#4  0x00007fde95b8bbed in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007fde95b8c219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#6  0x00007fde9e251166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fde9e220e92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007fde9e2210e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0x00007fde9e121d47 in QThread::exec() () from /usr/lib/libQtCore.so.4
#10 0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#12 0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#13 0x00007fde9c25cbad in clone () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fde6a8ce700 (LWP 12963)):
#0  0x00007fde9c2548b3 in poll () from /lib/libc.so.6
#1  0x00007fde95b8bd58 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fde95b8c219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fde9e251166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fde9e220e92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fde9e2210e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fde9e121d47 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#9  0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#10 0x00007fde9c25cbad in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fde68e65700 (LWP 12986)):
#0  0x00007fde9de97bc4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde947fecfc in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007fde947fee29 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#4  0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#5  0x00007fde9c25cbad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fde69666700 (LWP 12987)):
#0  0x00007fde9de96e9f in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x00007fde95b8add4 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007fde95b8bbed in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007fde95b8c219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007fde9e251166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fde9e220e92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fde9e2210e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fde9e121d47 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#10 0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#11 0x00007fde9c25cbad in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fde13409700 (LWP 13092)):
#0  0x00007fde9de97bc4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde9e12527b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fdea02cb31b in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x50742b0, th=0x44982b0) at /w1/devel/kde-branch/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007fdea02cdc0b in ThreadWeaver::WorkingHardState::applyForWork (this=0x4f74250, th=0x44982b0) at /w1/devel/kde-branch/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#4  0x00007fdea02cca7f in ThreadWeaver::ThreadRunHelper::run (this=0x7fde13408d20, parent=0x50742b0, th=0x44982b0) at /w1/devel/kde-branch/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#5  0x00007fdea02ccb0b in ThreadWeaver::Thread::run (this=0x44982b0) at /w1/devel/kde-branch/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#6  0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#8  0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#9  0x00007fde9c25cbad in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fde12c08700 (LWP 13093)):
[KCrash Handler]
#6  0x00007fde9e16f4a4 in QString::operator=(QString const&) () from /usr/lib/libQtCore.so.4
#7  0x00007fde6f962356 in parseFunctionInfo (func=..., this=0x7fde0cc134b0) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeast.cpp:2951
#8  StringAst::parseFunctionInfo (this=0x7fde0cc134b0, func=...) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeast.cpp:2913
#9  0x00007fde6f982927 in CMakeProjectVisitor::walk (this=0x7fde12c06f70, fc=..., line=79, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2190
#10 0x00007fde6f984878 in CMakeProjectVisitor::visit (this=0x7fde12c06f70, ifast=0x7fde0cb1cbc0) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:1302
#11 0x00007fde6f9827ee in CMakeProjectVisitor::walk (this=0x7fde12c06f70, fc=..., line=56, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2213
#12 0x00007fde6f986817 in CMakeProjectVisitor::visit (this=0x7fde12c06f70, inc=0x7fde0cbf5ed0) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:563
#13 0x00007fde6f9827ee in CMakeProjectVisitor::walk (this=0x7fde12c06f70, fc=..., line=19, isClean=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeprojectvisitor.cpp:2213
#14 0x00007fde6f9959d6 in CMakeParserUtils::includeScript (file=<optimized out>, parent=..., data=0x7fde0c002588, sourcedir=..., env=...) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/parser/cmakeparserutils.cpp:175
#15 0x00007fde69a96873 in CMakeManager::includeScript (this=0x4ee80f0, file=..., project=0x4ecd6c0, dir=..., parent=...) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:646
#16 0x00007fde69a98858 in CMakeManager::parse (this=0x4ee80f0, item=0x7fde0c6f1e20) at /w1/devel/kde-branch/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:701
#17 0x00007fde9a97dfb2 in import (folder=<optimized out>, this=0x56fae20) at /w1/devel/kde-branch/src/kdevplatform/project/importprojectjob.cpp:53
#18 KDevelop::ImportProjectJobPrivate::import (this=0x56fae20, folder=<optimized out>) at /w1/devel/kde-branch/src/kdevplatform/project/importprojectjob.cpp:57
#19 0x00007fde9a97dbf6 in run (this=0x5105310) at /usr/include/QtCore/qtconcurrentrunbase.h:134
#20 QtConcurrent::RunFunctionTask<void>::run (this=0x5105310) at /usr/include/QtCore/qtconcurrentrunbase.h:125
#21 0x00007fde9e118532 in ?? () from /usr/lib/libQtCore.so.4
#22 0x00007fde9e124d6b in ?? () from /usr/lib/libQtCore.so.4
#23 0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#24 0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#25 0x00007fde9c25cbad in clone () from /lib/libc.so.6
#26 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fde12407700 (LWP 13168)):
#0  0x00007fde9de97bc4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde9afccbd2 in ?? () from /usr/lib/libQtScript.so.4
#2  0x00007fde9afccc09 in ?? () from /usr/lib/libQtScript.so.4
#3  0x00007fde8f7902da in ?? () from /usr/lib/libGL.so.1
#4  0x00007fde9de93e7a in start_thread () from /lib/libpthread.so.0
#5  0x00007fde9c25cbad in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fdea1e837c0 (LWP 12953)):
#0  0x00007fde9de97bc4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fde9e12527b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fde9e117cbe in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fde9e1196e4 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#4  0x00007fde9e119729 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#5  0x00007fde9e119755 in ?? () from /usr/lib/libQtCore.so.4
#6  0x00007fde9c1b1481 in __run_exit_handlers () from /lib/libc.so.6
#7  0x00007fde9c1b1505 in exit () from /lib/libc.so.6
#8  0x00007fde9d3fc2f8 in ?? () from /usr/lib/libQtGui.so.4
#9  0x00007fde9ea5b8c8 in KApplication::xioErrhandler (this=0x7fff9c8f5bf0, dpy=0x1c603e0) at /w1/devel/kde-branch/src/kdelibs/kdeui/kernel/kapplication.cpp:419
#10 0x00007fde9976312e in _XIOError () from /usr/lib/libX11.so.6
#11 0x00007fde997609ad in _XEventsQueued () from /usr/lib/libX11.so.6
#12 0x00007fde9975132f in XEventsQueued () from /usr/lib/libX11.so.6
#13 0x00007fde9d433d5c in ?? () from /usr/lib/libQtGui.so.4
#14 0x00007fde95b8b524 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#15 0x00007fde95b8bd72 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0x00007fde95b8c219 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0x00007fde9e2510ff in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#18 0x00007fde9d433f1e in ?? () from /usr/lib/libQtGui.so.4
#19 0x00007fde9e220e92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00007fde9e2210e7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0x00007fde9e225c45 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#22 0x000000000040a839 in main (argc=<optimized out>, argv=<optimized out>) at /w1/devel/kde-branch/src/kdevelop/app/main.cpp:479

Reported using DrKonqi
Comment 1 Aleix Pol 2012-01-18 02:16:10 UTC
I fixed that today, somewhere else. I think.

Can you please try again?
Comment 2 Lasse Liehu 2012-01-20 13:06:34 UTC
Works now, thanks.
Comment 3 Kevin Funk 2012-12-23 01:21:22 UTC
*** Bug 302670 has been marked as a duplicate of this bug. ***