Bug 211649 - Crash while background parsing [mem2chunk_check, free_check, QList<QPostEvent>::node_destruct]
Summary: Crash while background parsing [mem2chunk_check, free_check, QList<QPostEvent...
Status: RESOLVED DUPLICATE of bug 206775
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-24 15:12 UTC by Torgny Nyblom
Modified: 2009-10-24 22:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torgny Nyblom 2009-10-24 15:12:00 UTC
Application: kdevelop (3.9.96 (using KDevPlatform 0.9.96))
KDE Version: 4.3.72 (KDE 4.3.72 (KDE 4.4 >= 20091015))
Qt Version: 4.6.0
Operating System: Linux 2.6.31-gentoo-r3 x86_64

What I was doing when the application crashed:
export MALLOC_CHECK=1 && kdevelop
then crash while parsing in the background.

 -- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f14612fe750 (LWP 9143))]

Thread 9 (Thread 0x7f144c279910 (LWP 9144)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f145dce6761 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x127abe0, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x127abe0, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f145a397cce in KDevelop::DUChainPrivate::CleanupThread::run (this=0x127abc0) at /mnt/misc/code/kdesvn/src/kdevplatform/language/duchain/duchain.cpp:280
#4  0x00007f145dce5825 in QThreadPrivate::start (arg=0x127abc0) at thread/qthread_unix.cpp:244
#5  0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f144085e910 (LWP 9291)):
#0  *__GI_clock_gettime (clock_id=1, tp=0x7f144085dd90) at ../sysdeps/unix/clock_gettime.c:100
#1  0x00007f145ddfe0af in qt_gettime () at kernel/qcore_unix.cpp:109
#2  0x00007f145de02d7d in QTimerInfoList::updateCurrentTime (this=0x1) at kernel/qeventdispatcher_unix.cpp:340
#3  0x00007f145de02da5 in QTimerInfoList::timerWait (this=0x1, tm=...) at kernel/qeventdispatcher_unix.cpp:443
#4  0x00007f145de00e6d in timerSourcePrepareHelper (src=<value optimized out>, timeout=0x7f144085deac) at kernel/qeventdispatcher_glib.cpp:136
#5  0x00007f145de00f15 in timerSourcePrepare (source=0x1, timeout=0x7f144085dd90) at kernel/qeventdispatcher_glib.cpp:169
#6  0x00007f1455efaac1 in IA__g_main_context_prepare (context=0x3730000, priority=<value optimized out>) at gmain.c:2144
#7  0x00007f1455efaea1 in g_main_context_iterate (context=0x3730000, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2435
#8  0x00007f1455efb3d0 in IA__g_main_context_iteration (context=0x3730000, may_block=1) at gmain.c:2518
#9  0x00007f145de00c76 in QEventDispatcherGlib::processEvents (this=0x2cc3f10, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:409
#10 0x00007f145ddd6322 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#11 0x00007f145ddd66f4 in QEventLoop::exec (this=0x7f144085e040, flags=) at kernel/qeventloop.cpp:201
#12 0x00007f145dce2e19 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#13 0x00007f145dce5825 in QThreadPrivate::start (arg=0x372f7c0) at thread/qthread_unix.cpp:244
#14 0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#15 0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 7 (Thread 0x7f144105f910 (LWP 9292)):
#0  0x00007f145c26e8a3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f1455efb08c in g_main_context_poll (context=0x37311b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2768
#2  g_main_context_iterate (context=0x37311b0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2450
#3  0x00007f1455efb3d0 in IA__g_main_context_iteration (context=0x37311b0, may_block=1) at gmain.c:2518
#4  0x00007f145de00c76 in QEventDispatcherGlib::processEvents (this=0x3ad6010, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:409
#5  0x00007f145ddd6322 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f145ddd66f4 in QEventLoop::exec (this=0x7f144105f040, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f145dce2e19 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#8  0x00007f145dce5825 in QThreadPrivate::start (arg=0x3730df0) at thread/qthread_unix.cpp:244
#9  0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#10 0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 6 (Thread 0x7f144005d910 (LWP 9293)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f145dce5195 in thread_sleep (ti=0x7f144005d000) at thread/qthread_unix.cpp:394
#2  0x00007f145dce52f0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:420
#3  0x00007f143c141ca1 in UIBlockTester::UIBlockTesterThread::run (this=0x36c8ef0) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/cpplanguagesupport.cpp:647
#4  0x00007f145dce5825 in QThreadPrivate::start (arg=0x36c8ef0) at thread/qthread_unix.cpp:244
#5  0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f143ac68910 (LWP 9294)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f145b24fe66 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7f145b50c1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f145b24fe89 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f145b51a26c) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 4 (Thread 0x7f1437557910 (LWP 9340)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f145dce67eb in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x130d150, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x130d150, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f145f7a10b6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x130a9c0, th=0x604b800) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f145f7a376b in ThreadWeaver::WorkingHardState::applyForWork (this=0x130d1c0, th=0x604b800) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f145f7a1c1f in ThreadWeaver::ThreadRunHelper::run (this=0x7f1437557050, parent=0x130a9c0, th=0x604b800) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f145f7a2078 in ThreadWeaver::Thread::run (this=0x604b800) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f145dce5825 in QThreadPrivate::start (arg=0x604b800) at thread/qthread_unix.cpp:244
#8  0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f1436d56910 (LWP 9341)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f145dce4f63 in QMutexPrivate::wait (this=0x1053450, timeout=-1) at thread/qmutex_unix.cpp:84
#2  0x00007f145dce0b5d in QMutex::lock (this=0x1053420) at thread/qmutex.cpp:205
#3  0x00007f145ddd7632 in QCoreApplication::postEvent (receiver=0x1497bd0, event=0xaeef960, priority=0) at kernel/qcoreapplication.cpp:1113
#4  0x00007f145dde8306 in queued_activate (sender=0x1277470, signal=<value optimized out>, c=0x14969b0, argv=0x2, semaphore=0x0) at kernel/qobject.cpp:3273
#5  0x00007f145ddea80c in QMetaObject::activate (sender=0x1277470, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3371
#6  0x00007f145a3fbd02 in KDevelop::DUChainObserver::branchAdded (this=0x105349c, _t1=<value optimized out>) at /mnt/misc/code/kdesvn/build/kdevplatform/language/duchainobserver.moc:91
#7  0x00007f145a37c9b1 in KDevelop::DUChain::branchAdded (context=<value optimized out>) at /mnt/misc/code/kdesvn/src/kdevplatform/language/duchain/duchain.cpp:1339
#8  0x00007f145a37faa2 in KDevelop::DUChain::addDocumentChain (this=<value optimized out>, chain=0x14943f90) at /mnt/misc/code/kdesvn/src/kdevplatform/language/duchain/duchain.cpp:1141
#9  0x00007f143bc25beb in ContextBuilder::buildContexts (this=0x7f1436d50a40, file=) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/cppduchain/contextbuilder.cpp:429
#10 0x00007f143bc32715 in DeclarationBuilder::buildDeclarations (this=0x80, file=<value optimized out>, node=0xffffffffffffffff, includes=0x1053470, updateContext=..., removeOldImports=false)
    at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/cppduchain/declarationbuilder.cpp:105
#11 0x00007f143c15342f in CPPInternalParseJob::run (this=0x103a7050) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/cppparsejob.cpp:632
#12 0x00007f143c15c32e in PreprocessJob::sourceNeeded (this=0xc515c40, _fileName=<value optimized out>, type=<value optimized out>, sourceLine=<value optimized out>, 
    skipCurrentPath=<value optimized out>) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/preprocessjob.cpp:575
#13 0x00007f143bf04db1 in rpp::pp::handle_include (this=0x7f1436d52790, skip_current_path=<value optimized out>, input=..., output=<value optimized out>)
    at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:192
#14 0x00007f143bf055f5 in rpp::pp::handle_directive (this=0x7f1436d52790, directive=103690, input=..., output=...) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:130
#15 0x00007f143bf05b79 in rpp::pp::operator() (this=0x7f1436d52790, input=..., output=...) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:245
#16 0x00007f143bf05dcd in rpp::pp::processFileInternal (this=0x7f1436d52790, fileName=<value optimized out>, fileContents=<value optimized out>, result=...)
    at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:97
#17 0x00007f143bf05e55 in rpp::pp::processFile (this=0x105349c, fileName=..., data=...) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:84
#18 0x00007f143c15a605 in PreprocessJob::run (this=0xc515c40) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/preprocessjob.cpp:238
#19 0x00007f143c14d147 in CPPParseJob::parseForeground (this=0xb929ee0) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/cppparsejob.cpp:203
#20 0x00007f143c15c32e in PreprocessJob::sourceNeeded (this=0xf8b4e80, _fileName=<value optimized out>, type=<value optimized out>, sourceLine=<value optimized out>, 
    skipCurrentPath=<value optimized out>) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/preprocessjob.cpp:575
#21 0x00007f143bf04db1 in rpp::pp::handle_include (this=0x7f1436d54aa0, skip_current_path=<value optimized out>, input=..., output=<value optimized out>)
    at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:192
#22 0x00007f143bf055f5 in rpp::pp::handle_directive (this=0x7f1436d54aa0, directive=103690, input=..., output=...) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:130
#23 0x00007f143bf05b79 in rpp::pp::operator() (this=0x7f1436d54aa0, input=..., output=...) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:245
#24 0x00007f143bf05dcd in rpp::pp::processFileInternal (this=0x7f1436d54aa0, fileName=<value optimized out>, fileContents=<value optimized out>, result=...)
    at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:97
#25 0x00007f143bf05e55 in rpp::pp::processFile (this=0x105349c, fileName=..., data=...) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp:84
#26 0x00007f143c15a605 in PreprocessJob::run (this=0xf8b4e80) at /mnt/misc/code/kdesvn/src/kdevelop/languages/cpp/preprocessjob.cpp:238
#27 0x00007f145f7a299d in ThreadWeaver::JobRunHelper::runTheJob (this=0x7f1436d55fa0, th=0x7810830, job=0xf8b4e80) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Job.cpp:106
#28 0x00007f145f7a2c9e in ThreadWeaver::Job::execute (this=0xf8b4e80, th=0x7810830) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Job.cpp:135
#29 0x00007f145f7a40c3 in ThreadWeaver::JobCollectionJobRunner::execute (this=0x9e92600, t=0x7810830) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/JobCollection.cpp:82
#30 0x00007f145f7a1bef in ThreadWeaver::ThreadRunHelper::run (this=0x7f1436d56050, parent=0x130a9c0, th=0x7810830) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Thread.cpp:95
#31 0x00007f145f7a2078 in ThreadWeaver::Thread::run (this=0x7810830) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#32 0x00007f145dce5825 in QThreadPrivate::start (arg=0x7810830) at thread/qthread_unix.cpp:244
#33 0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#34 0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#35 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f144a2fa910 (LWP 15717)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f145dce67eb in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0xa805780, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xa805780, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f145f7a10b6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x72eed70, th=0xcc75500) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f145f7a376b in ThreadWeaver::WorkingHardState::applyForWork (this=0xb8a0300, th=0xcc75500) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f145f7a1c1f in ThreadWeaver::ThreadRunHelper::run (this=0x7f144a2fa050, parent=0x72eed70, th=0xcc75500) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f145f7a2078 in ThreadWeaver::Thread::run (this=0xcc75500) at /mnt/misc/code/kdesvn/src/kdelibs/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f145dce5825 in QThreadPrivate::start (arg=0xcc75500) at thread/qthread_unix.cpp:244
#8  0x00007f145da58624 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#9  0x00007f145c27756d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f14612fe750 (LWP 9143)):
[KCrash Handler]
#5  mem2chunk_check (mem=0x14ad8910, magic_p=0x0) at hooks.c:166
#6  0x00007f145c21da70 in free_check (mem=0x14ad8910, caller=<value optimized out>) at hooks.c:279
#7  0x00007f145dddb8cd in QList<QPostEvent>::node_destruct (this=0x1053408, afirst=) at src/corelib/tools/qlist.h:359
#8  QList<QPostEvent>::erase (this=0x1053408, afirst=) at src/corelib/tools/qlist.h:694
#9  0x00007f145ddda014 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x10533e0) at kernel/qcoreapplication.cpp:1377
#10 0x00007f145de010e3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at src/corelib/kernel/qcoreapplication.h:220
#11 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#12 0x00007f1455ef7afd in g_main_dispatch (context=0x108f520) at gmain.c:1824
#13 IA__g_main_context_dispatch (context=0x108f520) at gmain.c:2377
#14 0x00007f1455efb2a8 in g_main_context_iterate (context=0x108f520, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2455
#15 0x00007f1455efb3d0 in IA__g_main_context_iteration (context=0x108f520, may_block=1) at gmain.c:2518
#16 0x00007f145de00c23 in QEventDispatcherGlib::processEvents (this=0x108c7e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#17 0x00007f145cef7fce in QGuiEventDispatcherGlib::processEvents (this=0x14ad8910, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#18 0x00007f145ddd6322 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#19 0x00007f145ddd66f4 in QEventLoop::exec (this=0x7fff0b023e80, flags=) at kernel/qeventloop.cpp:201
#20 0x00007f145ddda3cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#21 0x0000000000407f77 in main (argc=<value optimized out>, argv=<value optimized out>) at /mnt/misc/code/kdesvn/src/kdevelop/app/main.cpp:182
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Andreas Pakulat 2009-10-24 22:58:38 UTC
Sigh, I wish someone would fix libc2.10. Sorry but that bug is not in kdevelop (its either in Qt or in libc2.10). See the original report for a workaround.

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