Bug 258405

Summary: Crash When Editing CMakeLists.txt
Product: [Applications] kdevelop Reporter: Steven Sroka <Sroka.Steven>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.1.0   
Target Milestone: 4.2.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Steven Sroka 2010-11-30 17:50:45 UTC
Application: kdevelop (4.1.0)
KDE Platform Version: 4.5.3 (KDE 4.5.3) "release 1"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.5-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

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

I was removing a line from CMakeLists.txt and KDevelop4 crashed

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

Thread 9 (Thread 0x7f78b98bd710 (LWP 4136)):
#0  0x00007f78ccbbf709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f78ce123222 in wait (this=<value optimized out>, mutex=0xa9b530, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xa9b530, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f78ca7df45e in KDevelop::DUChainPrivate::CleanupThread::run (this=0xa9b510) at /usr/src/debug/kdevplatform-1.1.0/language/duchain/duchain.cpp:286
#4  0x00007f78ce122bf5 in QThreadPrivate::start (arg=0xa9b510) at thread/qthread_unix.cpp:248
#5  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f78ccea182d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f78b7b9b710 (LWP 4142)):
#0  0x00007f78ccbbf709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f78ce123222 in wait (this=<value optimized out>, mutex=0x12f6f50, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x12f6f50, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f78ce1190d0 in QThreadPoolThread::run (this=0x1377af0) at concurrent/qthreadpool.cpp:140
#4  0x00007f78ce122bf5 in QThreadPrivate::start (arg=0x1377af0) at thread/qthread_unix.cpp:248
#5  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f78ccea182d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f78aa2d9710 (LWP 4243)):
#0  IA__g_main_context_prepare (context=0x2ee1790, priority=0x7f78aa2d8cfc) at gmain.c:2211
#1  0x00007f78c7d24e69 in g_main_context_iterate (context=0x2ee1790, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2571
#2  0x00007f78c7d25510 in IA__g_main_context_iteration (context=0x2ee1790, may_block=1) at gmain.c:2654
#3  0x00007f78ce2326d6 in QEventDispatcherGlib::processEvents (this=0x2ee14e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#4  0x00007f78ce209292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f78ce209495 in QEventLoop::exec (this=0x7f78aa2d8e20, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f78ce1202cf in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f78ce122bf5 in QThreadPrivate::start (arg=0x7f78b000dcb0) at thread/qthread_unix.cpp:248
#8  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#9  0x00007f78ccea182d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f78aaada710 (LWP 4244)):
#0  0x00007f78cce986b3 in poll () from /lib64/libc.so.6
#1  0x00007f78c7d24fd4 in g_main_context_poll (context=0x2ed8be0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2904
#2  g_main_context_iterate (context=0x2ed8be0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2586
#3  0x00007f78c7d25510 in IA__g_main_context_iteration (context=0x2ed8be0, may_block=1) at gmain.c:2654
#4  0x00007f78ce2326d6 in QEventDispatcherGlib::processEvents (this=0x2ed2350, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#5  0x00007f78ce209292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f78ce209495 in QEventLoop::exec (this=0x7f78aaad9e20, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f78ce1202cf in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x00007f78ce122bf5 in QThreadPrivate::start (arg=0x7f78b00118e0) at thread/qthread_unix.cpp:248
#9  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#10 0x00007f78ccea182d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f78a740f710 (LWP 4247)):
#0  0x00007f78ccbbf709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f78ce1229b5 in thread_sleep (ti=0x7f78a740ede0) at thread/qthread_unix.cpp:398
#2  0x00007f78ce122b20 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007f78a7dca721 in UIBlockTester::UIBlockTesterThread::run (this=0x7f78b001d0d0) at /usr/src/debug/kdevelop-4.1.0/languages/cpp/cpplanguagesupport.cpp:678
#4  0x00007f78ce122bf5 in QThreadPrivate::start (arg=0x7f78b001d0d0) at thread/qthread_unix.cpp:248
#5  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007f78ccea182d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f78a6c0e710 (LWP 4251)):
#0  0x00007f78ccbbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f78b9a3ae30 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f78b9d20220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f78b9a3ae69 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f78b9d2e2ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f78ccea182d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f78a624a710 (LWP 4255)):
#0  0x00007f78ccbbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f78ce1232bb in wait (this=<value optimized out>, mutex=0x977940, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x977940, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f78c50d73f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9cf420, th=0x30bb800) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f78c50d9e45 in waitForAvailableJob (this=0x951b50, th=0x30bb800) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0x951b50, th=0x30bb800) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f78c50d77ef in ThreadWeaver::ThreadRunHelper::run (this=0x7f78a6249e30, parent=0x9cf420, th=0x30bb800) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:87
#7  0x00007f78c50d7878 in ThreadWeaver::Thread::run (this=0x30bb800) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:142
#8  0x00007f78ce122bf5 in QThreadPrivate::start (arg=0x30bb800) at thread/qthread_unix.cpp:248
#9  0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#10 0x00007f78ccea182d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f78a5a49710 (LWP 4256)):
#0  0x00007f78ccbbf39c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f78ce1232bb in wait (this=<value optimized out>, mutex=0x977940, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x977940, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f78c50d73f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9cf420, th=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f78c50d9e45 in waitForAvailableJob (this=0x951b50, th=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WeaverImpl.cpp:356
#5  ThreadWeaver::WorkingHardState::applyForWork (this=0x951b50, th=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f78c50d9e5e in ThreadWeaver::WorkingHardState::applyForWork (this=0x951b50, th=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f78c50d9e5e in ThreadWeaver::WorkingHardState::applyForWork (this=0x951b50, th=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007f78c50d77ef in ThreadWeaver::ThreadRunHelper::run (this=0x7f78a5a48e30, parent=0x9cf420, th=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:87
#9  0x00007f78c50d7878 in ThreadWeaver::Thread::run (this=0x3676970) at /usr/src/debug/kdelibs-4.5.4/threadweaver/Weaver/Thread.cpp:142
#10 0x00007f78ce122bf5 in QThreadPrivate::start (arg=0x3676970) at thread/qthread_unix.cpp:248
#11 0x00007f78ccbbaa4f in start_thread () from /lib64/libpthread.so.0
#12 0x00007f78ccea182d in clone () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f78cf8f0760 (LWP 4132)):
[KCrash Handler]
#6  KTextEditor::Range::start (this=0x90) at /usr/src/debug/kdelibs-4.5.4/interfaces/ktexteditor/range.cpp:302
#7  0x00007f78ca7ec963 in SimpleRange (this=0x88c8a0) at /usr/src/debug/kdevplatform-1.1.0/language/editor/simplerange.h:42
#8  KDevelop::DUContext::synchronizeUsesFromSmart (this=0x88c8a0) at /usr/src/debug/kdevplatform-1.1.0/language/duchain/ducontext.cpp:236
#9  0x00007f78ca7ecb2a in KDevelop::DUContext::uses (this=0x88c8a0) at /usr/src/debug/kdevplatform-1.1.0/language/duchain/ducontext.cpp:1461
#10 0x00007f78ca7ef376 in KDevelop::allSmartUses (context=0x88c8a0, declarationIndex=2) at /usr/src/debug/kdevplatform-1.1.0/language/duchain/ducontext.cpp:1718
#11 0x00007f78ca80253e in KDevelop::allSmartUses (context=0x88c8a0, declaration=<value optimized out>) at /usr/src/debug/kdevplatform-1.1.0/language/duchain/topducontext.cpp:1382
#12 0x00007f78ca8179ac in KDevelop::Declaration::smartUses (this=0x7f78b0b5b850) at /usr/src/debug/kdevplatform-1.1.0/language/duchain/declaration.cpp:743
#13 0x00007f78a85b81d9 in ContextBrowserPlugin::changeHighlight (this=0x1857860, view=<value optimized out>, decl=0x7f78b0b5b850, highlight=false, mouseHighlight=false)
    at /usr/src/debug/kdevplatform-1.1.0/plugins/contextbrowser/contextbrowser.cpp:502
#14 0x00007f78a85b8719 in ContextBrowserPlugin::unHighlightAll (this=0x1857860, selectView=0x0) at /usr/src/debug/kdevplatform-1.1.0/plugins/contextbrowser/contextbrowser.cpp:648
#15 0x00007f78a85b8f2a in ContextBrowserPlugin::updateBrowserWidgetFor (this=0x1857860, view=0x383a800) at /usr/src/debug/kdevplatform-1.1.0/plugins/contextbrowser/contextbrowser.cpp:684
#16 0x00007f78a85b938c in ContextBrowserPlugin::updateViews (this=0x1857860) at /usr/src/debug/kdevplatform-1.1.0/plugins/contextbrowser/contextbrowser.cpp:736
#17 0x00007f78a85bacf4 in ContextBrowserPlugin::qt_metacall (this=0x1857860, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffcf6a8fb0)
    at /usr/src/debug/kdevplatform-1.1.0/build/plugins/contextbrowser/contextbrowser.moc:122
#18 0x00007f78ce21da1f in QMetaObject::activate (sender=0x18719e0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3295
#19 0x00007f78ce21b22e in QObject::event (this=0x18719e0, e=0x7fffcf6a9750) at kernel/qobject.cpp:1212
#20 0x00007f78cd5fb4d4 in QApplicationPrivate::notify_helper (this=0x63ee80, receiver=0x18719e0, e=0x7fffcf6a9750) at kernel/qapplication.cpp:4302
#21 0x00007f78cd603aca in QApplication::notify (this=<value optimized out>, receiver=0x18719e0, e=0x7fffcf6a9750) at kernel/qapplication.cpp:4185
#22 0x00007f78ce69f7d6 in KApplication::notify (this=0x7fffcf6a9d90, receiver=0x18719e0, event=0x7fffcf6a9750) at /usr/src/debug/kdelibs-4.5.4/kdeui/kernel/kapplication.cpp:310
#23 0x00007f78ce209e4c in QCoreApplication::notifyInternal (this=0x7fffcf6a9d90, receiver=0x18719e0, event=0x7fffcf6a9750) at kernel/qcoreapplication.cpp:726
#24 0x00007f78ce2350c9 in sendEvent (this=0x642be0) at kernel/qcoreapplication.h:215
#25 QTimerInfoList::activateTimers (this=0x642be0) at kernel/qeventdispatcher_unix.cpp:618
#26 0x00007f78ce231ff8 in timerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:184
#27 idleTimerSourceDispatch (source=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:231
#28 0x00007f78c7d24a93 in g_main_dispatch (context=0x641920) at gmain.c:1960
#29 IA__g_main_context_dispatch (context=0x641920) at gmain.c:2513
#30 0x00007f78c7d25270 in g_main_context_iterate (context=0x641920, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#31 0x00007f78c7d25510 in IA__g_main_context_iteration (context=0x641920, may_block=1) at gmain.c:2654
#32 0x00007f78ce23267f in QEventDispatcherGlib::processEvents (this=0x61e010, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#33 0x00007f78cd69c14e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x00007f78ce209292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#35 0x00007f78ce209495 in QEventLoop::exec (this=0x7fffcf6a9ae0, flags=...) at kernel/qeventloop.cpp:201
#36 0x00007f78ce20d88b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#37 0x000000000040933c in main (argc=<value optimized out>, argv=0x7fffcf6ab818) at /usr/src/debug/kdevelop-4.1.0/app/main.cpp:380

Possible duplicates by query: bug 258127, bug 235168.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-11-30 18:13:07 UTC
if you can reproduce this, please run kdevelop through valgrind and show us the
log:

valgrind --track-origins=yes --num-callers=25 kdevelop

Otherwise this is "fixed" for KDevelop 4.2 as we don't use SmartRanges there
anymore.

Bye

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