Bug 326359

Summary: kdevelop crashes on exit after a minute
Product: [Applications] kdevelop Reporter: glad08
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 4.5.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description glad08 2013-10-21 08:25:08 UTC
Application: kdevelop (4.5.1)
KDE Platform Version: 4.11.2
Qt Version: 4.8.5
Operating System: Linux 3.11.4-201.fc19.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Close my kdevelop with project.
After dozens of seconds (may be a couple minutes even) kdevelop crashes

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f006ef9d8c0 (LWP 7570))]

Thread 9 (Thread 0x7f00613ab700 (LWP 7742)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x0000003697c7b1c4 in wait (time=1000, this=0x31e08e0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=this@entry=0x31e4228, mutex=mutex@entry=0x31e4230, time=time@entry=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00000036a46b21fb in KDevelop::DUChainPrivate::CleanupThread::run (this=0x31e4210) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/duchain.cpp:282
#4  0x0000003697c7ad0f in QThreadPrivate::start (arg=0x31e4210) at thread/qthread_unix.cpp:338
#5  0x0000003ddea07c53 in start_thread (arg=0x7f00613ab700) at pthread_create.c:308
#6  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7f0047fff700 (LWP 7817)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x000000369e1860bb in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x369e483f00 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x000000369e1860f9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003ddea07c53 in start_thread (arg=0x7f0047fff700) at pthread_create.c:308
#4  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7f00467b2700 (LWP 7988)):
#0  0x0000003ddfe86f9a in g_mutex_get_impl (mutex=0x7effbc0009a0) at gthread-posix.c:121
#1  0x0000003ddfe87279 in g_mutex_unlock (mutex=mutex@entry=0x7effbc0009a0) at gthread-posix.c:229
#2  0x0000003ddfe47790 in g_main_context_prepare (context=context@entry=0x7effbc0009a0, priority=priority@entry=0x7f00467b1ba8) at gmain.c:3326
#3  0x0000003ddfe48013 in g_main_context_iterate (context=context@entry=0x7effbc0009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3681
#4  0x0000003ddfe481fc in g_main_context_iteration (context=0x7effbc0009a0, may_block=1) at gmain.c:3762
#5  0x0000003697da7166 in QEventDispatcherGlib::processEvents (this=0x7effbc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x0000003697d78ecf in QEventLoop::processEvents (this=this@entry=0x7f00467b1ce0, flags=...) at kernel/qeventloop.cpp:149
#7  0x0000003697d791c5 in QEventLoop::exec (this=this@entry=0x7f00467b1ce0, flags=...) at kernel/qeventloop.cpp:204
#8  0x0000003697c7866f in QThread::exec (this=this@entry=0x67a3df0) at thread/qthread.cpp:536
#9  0x0000003697d5a733 in QInotifyFileSystemWatcherEngine::run (this=0x67a3df0) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x0000003697c7ad0f in QThreadPrivate::start (arg=0x67a3df0) at thread/qthread_unix.cpp:338
#11 0x0000003ddea07c53 in start_thread (arg=0x7f00467b2700) at pthread_create.c:308
#12 0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7effbac82700 (LWP 8073)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000036a36cd34d in WTF::TCMalloc_PageHeap::scavengerThread (this=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:2571
#2  0x00000036a36cd389 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/FastMalloc.cpp:1767
#3  0x0000003ddea07c53 in start_thread (arg=0x7effbac82700) at pthread_create.c:308
#4  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7effba178700 (LWP 8210)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000036a340dadd in JSC::BlockAllocator::blockFreeingThreadMain (this=0x7effba3e9398) at /usr/src/debug/webkit-qtwebkit-23/Source/JavaScriptCore/heap/BlockAllocator.cpp:128
#2  0x00000036a36fcba6 in WTF::wtfThreadEntryPoint (param=0x65b57d0) at /usr/src/debug/webkit-qtwebkit-23/Source/WTF/wtf/ThreadingPthreads.cpp:196
#3  0x0000003ddea07c53 in start_thread (arg=0x7effba178700) at pthread_create.c:308
#4  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7effb9577700 (LWP 8216)):
#0  0x0000003ddfe86f9a in g_mutex_get_impl (mutex=0x7eff640009a0) at gthread-posix.c:121
#1  0x0000003ddfe87279 in g_mutex_unlock (mutex=mutex@entry=0x7eff640009a0) at gthread-posix.c:229
#2  0x0000003ddfe48206 in g_main_context_iteration (context=0x7eff640009a0, may_block=<optimized out>) at gmain.c:3763
#3  0x0000003697da7166 in QEventDispatcherGlib::processEvents (this=0x7eff640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#4  0x0000003697d78ecf in QEventLoop::processEvents (this=this@entry=0x7effb9576d20, flags=...) at kernel/qeventloop.cpp:149
#5  0x0000003697d791c5 in QEventLoop::exec (this=this@entry=0x7effb9576d20, flags=...) at kernel/qeventloop.cpp:204
#6  0x0000003697c7866f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#7  0x0000003697c7ad0f in QThreadPrivate::start (arg=0x5e19180) at thread/qthread_unix.cpp:338
#8  0x0000003ddea07c53 in start_thread (arg=0x7effb9577700) at pthread_create.c:308
#9  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7eff6bffd700 (LWP 8430)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003697c7b1e6 in wait (time=18446744073709551615, this=0x233e4d0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x233dbd8, mutex=0x233dfd0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000036a080a85c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x233dbb0, th=0x785a230) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00000036a080d2f3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x233dd10, th=0x785a230, previous=0xe02c8a0) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00000036a080c00f in ThreadWeaver::Thread::run (this=0x785a230) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/Thread.cpp:98
#6  0x0000003697c7ad0f in QThreadPrivate::start (arg=0x785a230) at thread/qthread_unix.cpp:338
#7  0x0000003ddea07c53 in start_thread (arg=0x7eff6bffd700) at pthread_create.c:308
#8  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7eff6b7fc700 (LWP 8431)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003697c7b1e6 in wait (time=18446744073709551615, this=0x233e4d0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x233dbd8, mutex=0x233dfd0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000036a080a85c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x233dbb0, th=0x7eff5c002c00) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00000036a080d2f3 in ThreadWeaver::WorkingHardState::applyForWork (this=0x233dd10, th=0x7eff5c002c00, previous=0x0) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00000036a080d30c in ThreadWeaver::WorkingHardState::applyForWork (this=0x233dd10, th=0x7eff5c002c00, previous=0xed6d900) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00000036a080c00f in ThreadWeaver::Thread::run (this=0x7eff5c002c00) at /usr/src/debug/kdelibs-4.11.2/threadweaver/Weaver/Thread.cpp:98
#7  0x0000003697c7ad0f in QThreadPrivate::start (arg=0x7eff5c002c00) at thread/qthread_unix.cpp:338
#8  0x0000003ddea07c53 in start_thread (arg=0x7eff6b7fc700) at pthread_create.c:308
#9  0x0000003dde2f5e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f006ef9d8c0 (LWP 7570)):
[KCrash Handler]
#6  0x0000003dde235a19 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x0000003dde237128 in __GI_abort () at abort.c:90
#8  0x0000003dde275d47 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x3dde37e628 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#9  0x0000003dde27d0e8 in malloc_printerr (ptr=<optimized out>, str=0x3dde37bd35 "free(): invalid pointer", action=3) at malloc.c:4937
#10 _int_free (av=0x3dde5ba780 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3789
#11 0x00000036a4758419 in KDevelop::ReferenceType::~ReferenceType (this=0x7eff60166110, __in_chrg=<optimized out>) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/types/referencetype.cpp:67
#12 0x00007f004e72e287 in ~TypePtr (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/kde4/kdevplatform/language/duchain/types/typepointer.h:81
#13 ~Parameter (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kdevelop-4.5.1/languages/cpp/cppduchain/overloadresolution.h:48
#14 node_destruct (this=<optimized out>, to=<optimized out>, from=<optimized out>) at /usr/include/QtCore/qlist.h:431
#15 free (this=<optimized out>, data=<optimized out>) at /usr/include/QtCore/qlist.h:757
#16 QList<Cpp::OverloadResolver::Parameter>::~QList (this=0x1d92, __in_chrg=<optimized out>) at /usr/include/QtCore/qlist.h:732
#17 0x00007f004e72e30c in ~MissingDeclarationType (this=0x7eff60f793e0, __in_chrg=<optimized out>) at /usr/src/debug/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationtype.h:33
#18 Cpp::MissingDeclarationType::~MissingDeclarationType (this=0x7eff60f793e0, __in_chrg=<optimized out>) at /usr/src/debug/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationtype.h:33
#19 0x00007f004e72e535 in ~TypePtr (this=0x7eff60f7b358, __in_chrg=<optimized out>) at /usr/include/kde4/kdevplatform/language/duchain/types/typepointer.h:81
#20 ~MissingDeclarationProblem (this=0x7eff60f7b330, __in_chrg=<optimized out>) at /usr/src/debug/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationproblem.h:29
#21 Cpp::MissingDeclarationProblem::~MissingDeclarationProblem (this=0x7eff60f7b330, __in_chrg=<optimized out>) at /usr/src/debug/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationproblem.h:29
#22 0x00000036a46c5997 in ~KSharedPtr (this=0x7eff607b4b30, __in_chrg=<optimized out>) at /usr/include/kde4/ksharedptr.h:90
#23 node_destruct (this=<optimized out>, to=0x7eff6117cf60, from=0x7eff6117cf18) at /usr/include/QtCore/qlist.h:431
#24 QList<KSharedPtr<KDevelop::Problem> >::free (data=0x7eff6117cf00, this=<optimized out>) at /usr/include/QtCore/qlist.h:757
#25 0x00000036a46cb687 in KDevelop::TopDUContextLocalPrivate::~TopDUContextLocalPrivate (this=0x7eff60193a30, __in_chrg=<optimized out>) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/topducontext.cpp:129
#26 0x00000036a46c7612 in KDevelop::TopDUContext::deleteSelf (this=<optimized out>) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/topducontext.cpp:726
#27 0x00000036a46b0baf in KDevelop::DUChainPrivate::removeDocumentChainFromMemory (this=this@entry=0x3212360, context=0x7eff60192910) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/duchain.cpp:410
#28 0x00000036a469e47b in clear (this=0x3212360) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/duchain.cpp:373
#29 KDevelop::DUChain::aboutToQuit (this=<optimized out>) at /usr/src/debug/kdevplatform-1.5.1/language/duchain/duchain.cpp:1619
#30 0x00000036a469f735 in KDevelop::DUChain::qt_static_metacall (_o=0x31e2b60, _id=7570, _a=0x7fffd4531be0, _c=<optimized out>) at /usr/src/debug/kdevplatform-1.5.1/x86_64-redhat-linux-gnu/language/duchain.moc:145
#31 0x0000003697d8df78 in QMetaObject::activate (sender=0x7fffd4531e00, m=m@entry=0x36980dd840 <QCoreApplication::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3547
#32 0x0000003697dd8750 in QCoreApplication::aboutToQuit (this=<optimized out>) at .moc/release-shared/moc_qcoreapplication.cpp:144
#33 0x0000003697d7e4b5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1226
#34 0x00000036983c6c9c in QApplication::exec () at kernel/qapplication.cpp:3823
#35 0x000000000040e859 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdevelop-4.5.1/app/main.cpp:522

Possible duplicates by query: bug 325997, bug 325179, bug 324764, bug 323999, bug 323329.

Reported using DrKonqi
Comment 1 Kevin Funk 2013-10-21 09:20:05 UTC

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