Bug 323999 - Crashes on exit, glibc assertion
Summary: Crashes on exit, glibc assertion
Status: RESOLVED DUPLICATE of bug 289056
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 4.5.1
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 4.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-08-25 09:26 UTC by Josh Lehan
Modified: 2013-08-28 07:11 UTC (History)
0 users

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 Josh Lehan 2013-08-25 09:26:20 UTC
Application: kdevelop (4.5.1)
KDE Platform Version: 4.10.5 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.13-gentoo x86_64
Distribution: "Gentoo Base System release 2.2"

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

After working on a project for some time, I saved all files, then closed the project.
All appeared well.
Then, I closed the KDevelop application.
That is when this crash appeared.
It looks like it was caused by a glibc assertion about a bad pointer used somewhere within the lifetime of KDevelop, but I did not notice anything unusual/wrong/bad when working on my project earlier.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe951d4c780 (LWP 24842))]

Thread 8 (Thread 0x7fe93714b700 (LWP 24845)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007fe94fa0968f in wait (time=1000, this=0x2817550) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x27a4560, time=1000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fe94ba98c5b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x27a4540) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/duchain.cpp:282
#4  0x00007fe94fa091bc in QThreadPrivate::start (arg=0x27a4540) at thread/qthread_unix.cpp:338
#5  0x00007fe94e40bd96 in start_thread (arg=0x7fe93714b700) at pthread_create.c:305
#6  0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fe91f43c700 (LWP 24853)):
#0  0x00007fff2d5ff868 in clock_gettime ()
#1  0x00007fe94cea184d in *__GI_clock_gettime (clock_id=1, tp=0x7fe91f43bb40) at ../sysdeps/unix/clock_gettime.c:100
#2  0x00007fe94fa5fa14 in do_gettime (frac=0x7fe91f43bb58, sec=0x7fe91f43bb50) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007fe94fb397dd in QTimerInfoList::updateCurrentTime (this=0x7fe918002860) at kernel/qeventdispatcher_unix.cpp:354
#5  0x00007fe94fb39b13 in QTimerInfoList::timerWait (this=0x7fe918002860, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0x00007fe94fb384ec in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fe91f43bc3c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007fe94fb38595 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007fe9489c1e69 in g_main_context_prepare (context=0x7fe9180009a0, priority=0x7fe91f43bc9c) at gmain.c:2836
#9  0x00007fe9489c2593 in g_main_context_iterate (context=0x7fe9180009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3126
#10 0x00007fe9489c2784 in g_main_context_iteration (context=0x7fe9180009a0, may_block=1) at gmain.c:3207
#11 0x00007fe94fb38f96 in QEventDispatcherGlib::processEvents (this=0x7fe9180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007fe94fb08942 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007fe94fb08b97 in QEventLoop::exec (this=0x7fe91f43bdb0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007fe94fa06157 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#15 0x00007fe94fae841f in QInotifyFileSystemWatcherEngine::run (this=0x443bd70) at io/qfilesystemwatcher_inotify.cpp:256
#16 0x00007fe94fa091bc in QThreadPrivate::start (arg=0x443bd70) at thread/qthread_unix.cpp:338
#17 0x00007fe94e40bd96 in start_thread (arg=0x7fe91f43c700) at pthread_create.c:305
#18 0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fe91e8a2700 (LWP 24854)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe94adea154 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7fe94b102160 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007fe94adea189 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fe94b110234 <QTWTF::pageheap_memory+57556>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007fe94e40bd96 in start_thread (arg=0x7fe91e8a2700) at pthread_create.c:305
#4  0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fe892f86700 (LWP 24878)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe944e2182c in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fe9457d8200 <WTF::pageheap_memory>) at wtf/FastMalloc.cpp:2495
#2  0x00007fe944e21959 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1618
#3  0x00007fe94e40bd96 in start_thread (arg=0x7fe892f86700) at pthread_create.c:305
#4  0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fe892785700 (LWP 24885)):
#0  0x00007fe94e703763 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe9489c2666 in g_main_context_poll (n_fds=1, fds=0x7fe88c0027c0, timeout=-1, context=0x7fe88c0009a0, priority=<optimized out>) at gmain.c:3440
#2  g_main_context_iterate (context=0x7fe88c0009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3141
#3  0x00007fe9489c2784 in g_main_context_iteration (context=0x7fe88c0009a0, may_block=1) at gmain.c:3207
#4  0x00007fe94fb38f96 in QEventDispatcherGlib::processEvents (this=0x7fe88c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00007fe94fb08942 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fe94fb08b97 in QEventLoop::exec (this=0x7fe892784de0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007fe94fa06157 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#8  0x00007fe94fa091bc in QThreadPrivate::start (arg=0x4b17600) at thread/qthread_unix.cpp:338
#9  0x00007fe94e40bd96 in start_thread (arg=0x7fe892785700) at pthread_create.c:305
#10 0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fe84393e700 (LWP 25025)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe94fa0972b in wait (time=18446744073709551615, this=0x284b7a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2883960, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fe945a69aab in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x288da00, th=0x448a170) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fe945a6c39b in ThreadWeaver::WorkingHardState::applyForWork (this=0x288db90, th=0x448a170) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fe945a6c3b4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x288db90, th=0x448a170) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fe945a6c3b4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x288db90, th=0x448a170) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007fe945a6b20f in ThreadWeaver::ThreadRunHelper::run (this=0x7fe84393de00, parent=0x288da00, th=0x448a170) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:87
#8  0x00007fe945a6b29b in ThreadWeaver::Thread::run (this=0x448a170) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:142
#9  0x00007fe94fa091bc in QThreadPrivate::start (arg=0x448a170) at thread/qthread_unix.cpp:338
#10 0x00007fe94e40bd96 in start_thread (arg=0x7fe84393e700) at pthread_create.c:305
#11 0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fe84313d700 (LWP 25026)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fe94fa0972b in wait (time=18446744073709551615, this=0x284b7a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2883960, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fe945a69aab in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x288da00, th=0x7fe83c002e50) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fe945a6c39b in ThreadWeaver::WorkingHardState::applyForWork (this=0x288db90, th=0x7fe83c002e50) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fe945a6b20f in ThreadWeaver::ThreadRunHelper::run (this=0x7fe84313ce00, parent=0x288da00, th=0x7fe83c002e50) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fe945a6b29b in ThreadWeaver::Thread::run (this=0x7fe83c002e50) at /var/tmp/portage/kde-base/kdelibs-4.10.5-r1/work/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fe94fa091bc in QThreadPrivate::start (arg=0x7fe83c002e50) at thread/qthread_unix.cpp:338
#8  0x00007fe94e40bd96 in start_thread (arg=0x7fe84313d700) at pthread_create.c:305
#9  0x00007fe94e70c54d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fe951d4c780 (LWP 24842)):
[KCrash Handler]
#6  0x00007fe94e656ac5 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fe94e657dc5 in *__GI_abort () at abort.c:91
#8  0x00007fe94e696923 in __libc_message (do_abort=2, fmt=0x7fe94e78d750 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:198
#9  0x00007fe94e69be35 in malloc_printerr (action=3, str=0x7fe94e78d868 "munmap_chunk(): invalid pointer", ptr=<optimized out>) at malloc.c:5007
#10 0x00007fe94bb479f9 in KDevelop::ReferenceType::~ReferenceType (this=0x7fe83ef85280, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/types/referencetype.cpp:67
#11 0x00007fe8913b72e7 in ~TypePtr (this=0x7fe83ef85790, __in_chrg=<optimized out>) at /usr/include/kdevplatform/language/duchain/types/typepointer.h:81
#12 ~Parameter (this=0x7fe83ef85790, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.5.1/work/kdevelop-4.5.1/languages/cpp/cppduchain/overloadresolution.h:48
#13 node_destruct (to=0x7fe83ef85878, from=0x7fe83ef85878, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:431
#14 free (data=0x7fe83ef85860, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:757
#15 QList<Cpp::OverloadResolver::Parameter>::~QList (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:732
#16 0x00007fe8913b737b in ~MissingDeclarationType (this=0x7fe83ef85430, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.5.1/work/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationtype.h:33
#17 Cpp::MissingDeclarationType::~MissingDeclarationType (this=0x7fe83ef85430, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.5.1/work/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationtype.h:33
#18 0x00007fe8913b7595 in ~TypePtr (this=0x7fe83ef848e8, __in_chrg=<optimized out>) at /usr/include/kdevplatform/language/duchain/types/typepointer.h:81
#19 ~MissingDeclarationProblem (this=0x7fe83ef848c0, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.5.1/work/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationproblem.h:29
#20 Cpp::MissingDeclarationProblem::~MissingDeclarationProblem (this=<optimized out>, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.5.1/work/kdevelop-4.5.1/languages/cpp/cppduchain/missingdeclarationproblem.h:29
#21 0x00007fe94bab15b7 in ~KSharedPtr (this=0x7fe83ef591c0, __in_chrg=<optimized out>) at /usr/include/ksharedptr.h:90
#22 ~KSharedPtr (this=0x7fe83ef591c0, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:755
#23 node_destruct (to=0x7fe83ef594b8, from=0x7fe83ef59368, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:431
#24 QList<KSharedPtr<KDevelop::Problem> >::free (data=0x7fe83ef59350, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:757
#25 0x00007fe94bab540d in KDevelop::TopDUContextLocalPrivate::~TopDUContextLocalPrivate (this=0x7fe835383f00, __in_chrg=<optimized out>) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/topducontext.cpp:129
#26 0x00007fe94bab2aeb in KDevelop::TopDUContext::deleteSelf (this=<optimized out>) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/topducontext.cpp:726
#27 0x00007fe94ba98f73 in removeDocumentChainFromMemory (context=0x7fe835383b20, this=0x27e2c40) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/duchain.cpp:410
#28 KDevelop::DUChainPrivate::clear (this=0x27e2c40) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/duchain.cpp:373
#29 0x00007fe94ba877de in KDevelop::DUChain::aboutToQuit (this=<optimized out>) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1/language/duchain/duchain.cpp:1619
#30 0x00007fe94ba888a0 in qt_static_metacall (_a=0x7fff2d5c7d30, _id=<optimized out>, _o=0x283fe80, _c=<optimized out>) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1_build/language/duchain.moc:146
#31 KDevelop::DUChain::qt_static_metacall (_o=0x283fe80, _c=<optimized out>, _id=<optimized out>, _a=0x7fff2d5c7d30) at /var/tmp/portage/dev-util/kdevplatform-1.5.1/work/kdevplatform-1.5.1_build/language/duchain.moc:133
#32 0x00007fe94fb1dc71 in QMetaObject::activate (sender=0x7fff2d5c8120, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#33 0x00007fe94fb0da05 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1223
#34 0x000000000040f970 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.5.1/work/kdevelop-4.5.1/app/main.cpp:522

This bug may be a duplicate of or related to bug 289056.

Possible duplicates by query: bug 323329, bug 319778, bug 311192.

Reported using DrKonqi
Comment 1 Kevin Funk 2013-08-28 07:11:25 UTC

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