Bug 215576

Summary: crash when open main.cpp from kdevelop *in* kdevelop [mem2chunk_check, free_check, ~QMetaCallEvent]
Product: [Applications] kdevelop Reporter: christian <ch75>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description christian 2009-11-21 18:09:47 UTC
Application: kdevelop (3.9.96 (using KDevPlatform 0.9.96))
KDE Version: 4.3.77 (KDE 4.3.77 (KDE 4.4 >= 20091120)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31-14-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
it worked the first time, but when i closed main.cpp and reopened it in the project browser with double click, kdevelop crashed.

this is 4.4. build  from Sa 21. Nov 18:09:32 CET 2009


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

Thread 8 (Thread 0x7fc2dbabc910 (LWP 31767)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007fc2edae2e12 in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2869f20, time=200000) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2869f20, time=200000) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:159
#3  0x00007fc2ea0f4bae in KDevelop::DUChainPrivate::CleanupThread::run (this=0x2869f00) at /media/disk-1/kde/kdesvn/kdevplatform/language/duchain/duchain.cpp:280
#4  0x00007fc2edae1ec6 in QThreadPrivate::start (arg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:244
#5  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fc2caad5910 (LWP 31872)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc2eafbee26 in WTF::TCMalloc_PageHeap::scavengerThread (this=0x7fc2eb27c540) at /media/disk-1/kde/kdesvn/qt-copy/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007fc2eafbee49 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fc2eb28a60c) at /media/disk-1/kde/kdesvn/qt-copy/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 6 (Thread 0x7fc2c9076910 (LWP 31885)):
#0  0x00007fc2ebff1373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc2e62bb36c in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fc2e62bb6b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007fc2edbe6e96 in QEventDispatcherGlib::processEvents (this=0x50c5f70, flags=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:409
#4  0x00007fc2edbc0562 in QEventLoop::processEvents (this=<value optimized out>, flags=) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#5  0x00007fc2edbc0705 in QEventLoop::exec (this=0x7fc2c9075f20, flags=) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:197
#6  0x00007fc2edae002e in QThread::exec (this=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread.cpp:487
#7  0x00007fc2edae1ec6 in QThreadPrivate::start (arg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:244
#8  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fc2c8875910 (LWP 31886)):
#0  0x00007fc2ebff1373 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc2e62bb36c in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fc2e62bb6b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007fc2edbe6e96 in QEventDispatcherGlib::processEvents (this=0x50bb110, flags=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:409
#4  0x00007fc2edbc0562 in QEventLoop::processEvents (this=<value optimized out>, flags=) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#5  0x00007fc2edbc0705 in QEventLoop::exec (this=0x7fc2c8874f20, flags=) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:197
#6  0x00007fc2edae002e in QThread::exec (this=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread.cpp:487
#7  0x00007fc2edae1ec6 in QThreadPrivate::start (arg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:244
#8  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 4 (Thread 0x7fc2c8074910 (LWP 31887)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007fc2edae19e5 in thread_sleep (ti=0x7fc2c8073ee0) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:394
#2  0x00007fc2edae1b50 in QThread::msleep (msecs=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:420
#3  0x00007fc2ca042d41 in UIBlockTester::UIBlockTesterThread::run (this=0x514eb20) at /media/disk-1/kde/kdesvn/kdevelop/languages/cpp/cpplanguagesupport.cpp:647
#4  0x00007fc2edae1ec6 in QThreadPrivate::start (arg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:244
#5  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#6  0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc2c7873910 (LWP 31888)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc2edae2eab in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x27ae6c0, time=18446744073709551615)
    at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x27ae6c0, time=18446744073709551615) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:159
#3  0x00007fc2ef54b0f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x27ae840, th=0x507e2e0) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fc2ef54d7ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x27af620, th=0x507e2e0) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fc2ef54d7c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x27af620, th=0x507e2e0) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007fc2ef54bc5f in ThreadWeaver::ThreadRunHelper::run (this=0x7fc2c7872f30, parent=0x27ae840, th=0x507e2e0) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#7  0x00007fc2ef54c0b8 in ThreadWeaver::Thread::run (this=0x507e2e0) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#8  0x00007fc2edae1ec6 in QThreadPrivate::start (arg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:244
#9  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 2 (Thread 0x7fc2c7072910 (LWP 31889)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc2edae2eab in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x27ae6c0, time=18446744073709551615)
    at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x27ae6c0, time=18446744073709551615) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qwaitcondition_unix.cpp:159
#3  0x00007fc2ef54b0f6 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x27ae840, th=0x50dd210) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fc2ef54d7ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x27af620, th=0x50dd210) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fc2ef54bc5f in ThreadWeaver::ThreadRunHelper::run (this=0x7fc2c7071f30, parent=0x27ae840, th=0x50dd210) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fc2ef54c0b8 in ThreadWeaver::Thread::run (this=0x50dd210) at /media/disk-1/kde/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fc2edae1ec6 in QThreadPrivate::start (arg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/thread/qthread_unix.cpp:244
#8  0x00007fc2ed849a04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007fc2ebffd7bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc2f10c67f0 (LWP 31766)):
[KCrash Handler]
#5  mem2chunk_check (mem=0x66ef690, magic_p=0x0) at hooks.c:166
#6  0x00007fc2ebf95a20 in free_check (mem=0x66ef690, caller=<value optimized out>) at hooks.c:279
#7  0x00007fc2edbcf821 in ~QMetaCallEvent (this=0x980bcb0, __in_chrg=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:551
#8  0x00007fc2edbc2278 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x23dc3d0) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1361
#9  0x00007fc2edbe72f3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../../../qt-copy/src/corelib/kernel/qcoreapplication.h:220
#10 postEventSourceDispatch (s=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:276
#11 0x00007fc2e62b7bbe in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#12 0x00007fc2e62bb588 in ?? () from /lib/libglib-2.0.so.0
#13 0x00007fc2e62bb6b0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#14 0x00007fc2edbe6e43 in QEventDispatcherGlib::processEvents (this=0x23dba00, flags=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:407
#15 0x00007fc2eccc3ace in QGuiEventDispatcherGlib::processEvents (this=0x66ef690, flags=<value optimized out>) at /media/disk-1/kde/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:202
#16 0x00007fc2edbc0562 in QEventLoop::processEvents (this=<value optimized out>, flags=) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:149
#17 0x00007fc2edbc0705 in QEventLoop::exec (this=0x7fff93a2fd90, flags=) at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:197
#18 0x00007fc2edbc24db in QCoreApplication::exec () at /media/disk-1/kde/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:981
#19 0x0000000000405e77 in main (argc=<value optimized out>, argv=<value optimized out>) at /media/disk-1/kde/kdesvn/kdevelop/app/main.cpp:193
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Andreas Pakulat 2009-11-21 20:09:31 UTC
Please ask your distribution to include the libc2.10 fix mentioned in http://sourceware.org/bugzilla/show_bug.cgi?id=10282 in their libc packages.

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