Bug 216253 - Segmentation fault on parsing
Summary: Segmentation fault on parsing
Status: RESOLVED DUPLICATE of bug 206775
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-26 14:05 UTC by Attila Balint
Modified: 2009-11-26 15:17 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 Attila Balint 2009-11-26 14:05:04 UTC
Application that crashed: kdevelop
Version of the application: 3.9.96 (using KDevPlatform 0.9.96)
KDE Version: 4.3.3 (KDE 4.3.3)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-15-generic-pae i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
When I changed the signature of a member function in the header file of a class, KDevelop crashed. I could reproduce this very often.

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

Thread 7 (Thread 0xb10e7b70 (LWP 21400)):
#0  0xb77ea430 in __kernel_vsyscall ()
#1  0xb4f0b142 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb63957e4 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6ee0def in QWaitConditionPrivate::wait (this=0x96e1cb4, mutex=0x96e1cb8, time=200000) at thread/qwaitcondition_unix.cpp:85
#4  QWaitCondition::wait (this=0x96e1cb4, mutex=0x96e1cb8, time=200000) at thread/qwaitcondition_unix.cpp:159
#5  0xb560d2c5 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x96e1ca8) at ../../language/duchain/duchain.cpp:280
#6  0xb6edfe32 in QThreadPrivate::start (arg=0x96e1ca8) at thread/qthread_unix.cpp:188
#7  0xb4f0680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb63887ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 6 (Thread 0xad47fb70 (LWP 21404)):
#0  0xb4fd3e06 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0xb6ffcbf3 in QTimerInfoList::getTime (this=0x9c06244, t=...) at kernel/qeventdispatcher_unix.cpp:339
#2  0xb6ffcde1 in QTimerInfoList::updateCurrentTime (this=0x9c06244) at kernel/qeventdispatcher_unix.cpp:297
#3  0xb6ffd88c in QTimerInfoList::timerWait (this=0x9c06244, tm=...) at kernel/qeventdispatcher_unix.cpp:420
#4  0xb6ffb210 in timerSourcePrepare (source=0x9c06210, timeout=0xad47f10c) at kernel/qeventdispatcher_glib.cpp:141
#5  0xb4f55f80 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#6  0xb4f56341 in ?? () from /lib/libglib-2.0.so.0
#7  0xb4f56853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0xb6ffb067 in QEventDispatcherGlib::processEvents (this=0x9c00060, flags=...) at kernel/qeventdispatcher_glib.cpp:329
#9  0xb6fcec79 in QEventLoop::processEvents (this=0xad47f2d4, flags=) at kernel/qeventloop.cpp:149
#10 0xb6fcf0ca in QEventLoop::exec (this=0xad47f2d4, flags=...) at kernel/qeventloop.cpp:201
#11 0xb6edcb73 in QThread::exec (this=0x9c06408) at thread/qthread.cpp:487
#12 0xb5713fb0 in KDevelop::CompletionWorkerThread::run (this=0x9c06408) at ../../language/codecompletion/codecompletionmodel.cpp:82
#13 0xb6edfe32 in QThreadPrivate::start (arg=0x9c06408) at thread/qthread_unix.cpp:188
#14 0xb4f0680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb63887ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 5 (Thread 0xacc7eb70 (LWP 21405)):
#0  0xb4fd3e06 in clock_gettime () from /lib/tls/i686/cmov/librt.so.1
#1  0xb6ffcbf3 in QTimerInfoList::getTime (this=0xb0714fe4, t=...) at kernel/qeventdispatcher_unix.cpp:339
#2  0xb6ffcde1 in QTimerInfoList::updateCurrentTime (this=0xb0714fe4) at kernel/qeventdispatcher_unix.cpp:297
#3  0xb6ffd88c in QTimerInfoList::timerWait (this=0xb0714fe4, tm=...) at kernel/qeventdispatcher_unix.cpp:420
#4  0xb6ffb210 in timerSourcePrepare (source=0xb0714fb0, timeout=0xacc7e10c) at kernel/qeventdispatcher_glib.cpp:141
#5  0xb4f55f80 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#6  0xb4f56341 in ?? () from /lib/libglib-2.0.so.0
#7  0xb4f56853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0xb6ffb067 in QEventDispatcherGlib::processEvents (this=0x9c06a50, flags=...) at kernel/qeventdispatcher_glib.cpp:329
#9  0xb6fcec79 in QEventLoop::processEvents (this=0xacc7e2d4, flags=) at kernel/qeventloop.cpp:149
#10 0xb6fcf0ca in QEventLoop::exec (this=0xacc7e2d4, flags=...) at kernel/qeventloop.cpp:201
#11 0xb6edcb73 in QThread::exec (this=0xb07008e0) at thread/qthread.cpp:487
#12 0xb5713fb0 in KDevelop::CompletionWorkerThread::run (this=0xb07008e0) at ../../language/codecompletion/codecompletionmodel.cpp:82
#13 0xb6edfe32 in QThreadPrivate::start (arg=0xb07008e0) at thread/qthread_unix.cpp:188
#14 0xb4f0680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb63887ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xac47db70 (LWP 21406)):
#0  0xb77ea430 in __kernel_vsyscall ()
#1  0xb4f0b142 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb63957e4 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6edf81e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:297
#4  0xb6edf973 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:323
#5  0xade28d6b in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#6  0xb6edfe32 in QThreadPrivate::start (arg=0x9c04980) at thread/qthread_unix.cpp:188
#7  0xb4f0680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0xb63887ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xab67fb70 (LWP 21412)):
#0  0xb77ea430 in __kernel_vsyscall ()
#1  0xb4f0ae15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb639578d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6ee0e67 in QWaitConditionPrivate::wait (this=0x9688560, mutex=0x9688920, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9688560, mutex=0x9688920, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb4b50b30 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9688548, th=0x974b038) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4b5319c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9687fe0, th=0x974b038) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4b4f1fb in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9688548, th=0x974b038) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4b53292 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9687fe0, th=0x974b038) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4b50db3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9688548, th=0x974b038, previous=0x9b48498) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4b513be in ThreadWeaver::ThreadRunHelper::run (this=0xab67f304, parent=0x9688548, th=0x974b038) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0xb4b519db in ThreadWeaver::Thread::run (this=0x974b038) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0xb6edfe32 in QThreadPrivate::start (arg=0x974b038) at thread/qthread_unix.cpp:188
#13 0xb4f0680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0xb63887ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xaae7eb70 (LWP 21413)):
#0  0xb77ea430 in __kernel_vsyscall ()
#1  0xb4f0ae15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0xb639578d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0xb6ee0e67 in QWaitConditionPrivate::wait (this=0x9688560, mutex=0x9688920, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x9688560, mutex=0x9688920, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0xb4b50b30 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9688548, th=0x97409e8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0xb4b5319c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9687fe0, th=0x97409e8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0xb4b4f1fb in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9688548, th=0x97409e8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0xb4b53292 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9687fe0, th=0x97409e8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0xb4b50db3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9688548, th=0x97409e8, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0xb4b532b1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9687fe0, th=0x97409e8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0xb4b50db3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9688548, th=0x97409e8, previous=0xa18f508) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0xb4b513be in ThreadWeaver::ThreadRunHelper::run (this=0xaae7e304, parent=0x9688548, th=0x97409e8) at ../../../threadweaver/Weaver/Thread.cpp:87
#13 0xb4b519db in ThreadWeaver::Thread::run (this=0x97409e8) at ../../../threadweaver/Weaver/Thread.cpp:142
#14 0xb6edfe32 in QThreadPrivate::start (arg=0x97409e8) at thread/qthread_unix.cpp:188
#15 0xb4f0680e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0xb63887ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb48c5700 (LWP 21399)):
[KCrash Handler]
#6  0xb6331006 in memcpy () from /lib/tls/i686/cmov/libc.so.6
#7  0x09b15efc in ?? ()
#8  0xadea4634 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#9  0xadea8d15 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#10 0xb74cb1df in AssistantPopup::widgetForAction (this=0x9ee8648, action=...) at ../../shell/assistantpopup.cpp:94
#11 0xb74cb99b in AssistantPopup::updateActions (this=0x9ee8648) at ../../shell/assistantpopup.cpp:53
#12 0xb74cbe35 in AssistantPopup (this=0x9ee8648, parent=0xb07521e0, assistant=...) at ../../shell/assistantpopup.cpp:77
#13 0xb74e33b9 in KDevelop::UiController::popUpAssistant (this=0x94839b0, assistant=...) at ../../shell/uicontroller.cpp:636
#14 0xb74e217b in KDevelop::UiController::assistantActionsChanged (this=0x94839b0) at ../../shell/uicontroller.cpp:676
#15 0xb74e2593 in KDevelop::UiController::qt_metacall (this=0x94839b0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbffe759c) at ./uicontroller.moc:88
#16 0xb6fe6263 in QMetaObject::activate (sender=0xa5be5c0, from_signal_index=5, to_signal_index=5, argv=0x0) at kernel/qobject.cpp:3113
#17 0xb6fe6ec2 in QMetaObject::activate (sender=0xa5be5c0, m=0xb7587de0, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3187
#18 0xb7578fb7 in KDevelop::IAssistant::actionsChanged (this=0xa5be5c0) at ./iassistant.moc:147
#19 0xadea8318 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#20 0xadea87ad in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#21 0xb6fe6263 in QMetaObject::activate (sender=0x96880d0, from_signal_index=4, to_signal_index=4, argv=0xbffe79b8) at kernel/qobject.cpp:3113
#22 0xb6fe6ec2 in QMetaObject::activate (sender=0x96880d0, m=0xb576bb44, local_signal_index=0, argv=0xbffe79b8) at kernel/qobject.cpp:3187
#23 0xb55d7583 in KDevelop::BackgroundParser::parseJobFinished (this=0x96880d0, _t1=0xa54d320) at ./backgroundparser.moc:199
#24 0xb55d8295 in KDevelop::BackgroundParser::parseComplete (this=0x96880d0, job=0xa54d320) at ../../language/backgroundparser/backgroundparser.cpp:508
#25 0xb55dbaa8 in KDevelop::BackgroundParser::qt_metacall (this=0x96880d0, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0xbffe7c28) at ./backgroundparser.moc:174
#26 0xb6fe6263 in QMetaObject::activate (sender=0xa54d320, from_signal_index=5, to_signal_index=5, argv=0xbffe7c28) at kernel/qobject.cpp:3113
#27 0xb6fe6ec2 in QMetaObject::activate (sender=0xa54d320, m=0xb4b59914, local_signal_index=1, argv=0xbffe7c28) at kernel/qobject.cpp:3187
#28 0xb4b51fd3 in ThreadWeaver::Job::done (this=0xa54d320, _t1=0xa54d320) at ./Job.moc:91
#29 0xb4b54a44 in ThreadWeaver::JobCollection::jobRunnerDone (this=0xa54d320) at ../../../threadweaver/Weaver/JobCollection.cpp:297
#30 0xb4b54b40 in ThreadWeaver::JobCollection::qt_metacall (this=0xa54d320, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbffe7e38) at ./JobCollection.moc:69
#31 0xb4b54e42 in ThreadWeaver::JobSequence::qt_metacall (this=0xa54d320, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbffe7e38) at ./JobSequence.moc:58
#32 0xb55e198a in KDevelop::ParseJob::qt_metacall (this=0xa54d320, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbffe7e38) at ./parsejob.moc:103
#33 0xade37102 in ?? () from /usr/lib/kde4/kdevcpplanguagesupport.so
#34 0xb6fe6263 in QMetaObject::activate (sender=0x9b48498, from_signal_index=5, to_signal_index=5, argv=0xbffe7e38) at kernel/qobject.cpp:3113
#35 0xb6fe6ec2 in QMetaObject::activate (sender=0x9b48498, m=0xb4b59914, local_signal_index=1, argv=0xbffe7e38) at kernel/qobject.cpp:3187
#36 0xb4b51fd3 in ThreadWeaver::Job::done (this=0x9b48498, _t1=0x9b48498) at ./Job.moc:91
#37 0xb4b521a7 in ThreadWeaver::Job::qt_metacall (this=0x9b48498, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xa6b9508) at ./Job.moc:71
#38 0xb4b53e72 in ThreadWeaver::JobCollectionJobRunner::qt_metacall (this=0x9b48498, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xa6b9508) at ./JobCollection_p.moc:58
#39 0xb6fdef0b in QMetaCallEvent::placeMetaCall (this=0xa4538a8, object=0x9b48498) at kernel/qobject.cpp:477
#40 0xb6fe05fe in QObject::event (this=0x9b48498, e=0xa4538a8) at kernel/qobject.cpp:1111
#41 0xb6613f54 in QApplicationPrivate::notify_helper (this=0x9428d40, receiver=0x9b48498, e=0xa4538a8) at kernel/qapplication.cpp:4056
#42 0xb661b67c in QApplication::notify (this=0xbffe86a4, receiver=0x9b48498, e=0xa4538a8) at kernel/qapplication.cpp:3603
#43 0xb729714a in KApplication::notify (this=0xbffe86a4, receiver=0x9b48498, event=0xa4538a8) at ../../kdeui/kernel/kapplication.cpp:302
#44 0xb6fd06cb in QCoreApplication::notifyInternal (this=0xbffe86a4, receiver=0x9b48498, event=0xa4538a8) at kernel/qcoreapplication.cpp:610
#45 0xb6fd12b2 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x9359ef8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9359ef8) at kernel/qcoreapplication.cpp:1247
#47 0xb6fd147d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#48 0xb6ffb3ff in QCoreApplication::sendPostedEvents (s=0x942bab0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#49 postEventSourceDispatch (s=0x942bab0) at kernel/qeventdispatcher_glib.cpp:210
#50 0xb4f52e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#51 0xb4f56720 in ?? () from /lib/libglib-2.0.so.0
#52 0xb4f56853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#53 0xb6ffb02c in QEventDispatcherGlib::processEvents (this=0x935a0d0, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#54 0xb66b4be5 in QGuiEventDispatcherGlib::processEvents (this=0x935a0d0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#55 0xb6fcec79 in QEventLoop::processEvents (this=0xbffe85b4, flags=) at kernel/qeventloop.cpp:149
#56 0xb6fcf0ca in QEventLoop::exec (this=0xbffe85b4, flags=...) at kernel/qeventloop.cpp:201
#57 0xb6fd153f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#58 0xb6613dd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#59 0x0804d8eb in _start ()

Reported using DrKonqi
Comment 1 Andreas Pakulat 2009-11-26 14:25:43 UTC
Which libc version are you using?
Comment 2 Attila Balint 2009-11-26 14:34:17 UTC
I'm using glibc 2.10.1
Comment 3 Andreas Pakulat 2009-11-26 15:17:19 UTC
Ok, most likely you're bitten by this then: http://sourceware.org/bugzilla/show_bug.cgi?id=10282

Please re-open this report if you can reproduce the crash after setting MALLOC_CHECK_=0

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