Bug 250534 - crash when entering code
Summary: crash when entering code
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: PHP (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 4.1.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 251540 267301 282141 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-08 10:38 UTC by Cyrill Helg
Modified: 2012-02-16 22:11 UTC (History)
5 users (show)

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 Cyrill Helg 2010-09-08 10:38:21 UTC
Application: kdevelop (4.0.2 (using KDevPlatform 1.0.2))
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-ARCH i686
Distribution (Platform): Archlinux Packages

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

typing a text in a function: ec[cho] -> crash

This happens all the time, kdevelop-php is compiled by sources (arch linux AUR pkgbuild)

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb457d930 (LWP 17025))]

Thread 7 (Thread 0xb096db70 (LWP 17026)):
#0  0xb78d4424 in __kernel_vsyscall ()
#1  0xb62917a4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb637df24 in pthread_cond_timedwait () from /lib/libc.so.6
#3  0xb6f8394f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb54b2dc5 in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#5  0xb6f8332e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb628ce60 in start_thread () from /lib/libpthread.so.0
#7  0xb637020e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xaf997b70 (LWP 17031)):
#0  0xb78d4424 in __kernel_vsyscall ()
#1  0xb62913fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb637decd in pthread_cond_wait () from /lib/libc.so.6
#3  0xb6f839cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb490e8a2 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb491116c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb490e48b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb491125a in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb490e3b3 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb490fdde in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb490fe9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#11 0xb6f8332e in ?? () from /usr/lib/libQtCore.so.4
#12 0xb628ce60 in start_thread () from /lib/libpthread.so.0
#13 0xb637020e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xacf9ab70 (LWP 17032)):
#0  0xb5132d46 in clock_gettime () from /lib/librt.so.1
#1  0xb709cb8b in ?? () from /usr/lib/libQtCore.so.4
#2  0xb70a0c72 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb709f6c2 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb709f75d in ?? () from /usr/lib/libQtCore.so.4
#5  0xb50a1496 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0xb50a2333 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#7  0xb50a2a04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0xb709feb7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0xb7074119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb707438a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb6f8088d in QThread::exec() () from /usr/lib/libQtCore.so.4
#12 0xb55bd018 in ?? () from /usr/lib/libkdevplatformlanguage.so.1
#13 0xb6f8332e in ?? () from /usr/lib/libQtCore.so.4
#14 0xb628ce60 in start_thread () from /lib/libpthread.so.0
#15 0xb637020e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xaba7ab70 (LWP 17043)):
#0  0xb78d4424 in __kernel_vsyscall ()
#1  0xb62913fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb637decd in pthread_cond_wait () from /lib/libc.so.6
#3  0xb6f839cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb490e8a2 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb491116c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb490e48b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb491125a in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb490e3b3 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb490fdde in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb490fe9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#11 0xb6f8332e in ?? () from /usr/lib/libQtCore.so.4
#12 0xb628ce60 in start_thread () from /lib/libpthread.so.0
#13 0xb637020e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xac27bb70 (LWP 17044)):
#0  0xb78d4424 in __kernel_vsyscall ()
#1  0xb62913fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb637decd in pthread_cond_wait () from /lib/libc.so.6
#3  0xb6f839cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb490e8a2 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb491116c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb490e48b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb491125a in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb490e3b3 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb4911279 in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb490e3b3 in ?? () from /usr/lib/libthreadweaver.so.4
#11 0xb4911279 in ?? () from /usr/lib/libthreadweaver.so.4
#12 0xb490e3b3 in ?? () from /usr/lib/libthreadweaver.so.4
#13 0xb490fdde in ?? () from /usr/lib/libthreadweaver.so.4
#14 0xb490fe9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#15 0xb6f8332e in ?? () from /usr/lib/libQtCore.so.4
#16 0xb628ce60 in start_thread () from /lib/libpthread.so.0
#17 0xb637020e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa9ea1b70 (LWP 17058)):
#0  0xb78d4424 in __kernel_vsyscall ()
#1  0xb62913fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb637decd in pthread_cond_wait () from /lib/libc.so.6
#3  0xb6f839cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb490e8a2 in ?? () from /usr/lib/libthreadweaver.so.4
#5  0xb491116c in ?? () from /usr/lib/libthreadweaver.so.4
#6  0xb490e48b in ?? () from /usr/lib/libthreadweaver.so.4
#7  0xb491125a in ?? () from /usr/lib/libthreadweaver.so.4
#8  0xb490e3b3 in ?? () from /usr/lib/libthreadweaver.so.4
#9  0xb490fdde in ?? () from /usr/lib/libthreadweaver.so.4
#10 0xb490fe9b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#11 0xb6f8332e in ?? () from /usr/lib/libQtCore.so.4
#12 0xb628ce60 in start_thread () from /lib/libpthread.so.0
#13 0xb637020e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb457d930 (LWP 17025)):
[KCrash Handler]
#7  0xb649a350 in __dynamic_cast () from /usr/lib/libstdc++.so.6
#8  0xad1cdbb1 in Php::CodeCompletionContext::isValidCompletionItem(KDevelop::Declaration*) () from /usr/lib/libkdev4phpcompletion.so
#9  0xad1ca552 in Php::CodeCompletionContext::completionItems(bool&, bool) () from /usr/lib/libkdev4phpcompletion.so
#10 0xb55b8ca7 in KDevelop::CodeCompletionWorker::computeCompletions(KDevelop::DUChainPointer<KDevelop::DUContext>, KTextEditor::Cursor const&, KTextEditor::View*, KTextEditor::Range const&, QString const&) () from /usr/lib/libkdevplatformlanguage.so.1
#11 0xb55b8576 in KDevelop::CodeCompletionWorker::computeCompletions(KDevelop::DUChainPointer<KDevelop::DUContext>, KTextEditor::Cursor const&, KTextEditor::View*) ()
   from /usr/lib/libkdevplatformlanguage.so.1
#12 0xb55b8a45 in KDevelop::CodeCompletionWorker::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdevplatformlanguage.so.1
#13 0xad1ba1e2 in Php::CodeCompletionWorker::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdev4phpcompletion.so
#14 0xb707aeba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#15 0xb7084846 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#16 0xb70877fe in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#17 0xb65fef14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb66030fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0xb735685a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0xb7074ecb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0xb70789c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#22 0xb7078bad in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#23 0xb709f98f in ?? () from /usr/lib/libQtCore.so.4
#24 0xb50a1f72 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0xb50a2750 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#26 0xb50a2a04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#27 0xb709fe7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0xb66ab1b5 in ?? () from /usr/lib/libQtGui.so.4
#29 0xb7074119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0xb707438a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#31 0xb7078c6f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#32 0xb65fc637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#33 0x0804ff71 in _start ()

Possible duplicates by query: bug 230451, bug 224479.

Reported using DrKonqi
Comment 1 Milian Wolff 2010-09-17 19:16:40 UTC
*** Bug 251540 has been marked as a duplicate of this bug. ***
Comment 2 Milian Wolff 2010-09-17 19:18:32 UTC
better backtrace from duplicated bug. Anyone an idea what could happen here?

@ reporters: Please try to run kdevelop through valgrind and reproduce the issue, maybe that gives me a hint:

kdevelop --sessions => find the {HASH} for your session, then:

KDEV_SESSION={HASH} valgrind --track-origins=yes kdevelop.bin

reproduce => send log from command line

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0xb73566d0 (LWP 12931))]

Thread 6 (Thread 0xb360bb90 (LWP 12936)):
#0  0xb781f424 in __kernel_vsyscall ()
#1  0x0048fef2 in pthread_cond_timedwait@@GLIBC_2.3.2 () from
/lib/libpthread.so.0
#2  0x4bf3d514 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/qt4/lib/libQtCore.so.4
#3  0xb74bf135 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x82a1228)
at /usr/src/redhat/BUILD/kdevplatform-1.0.2/language/duchain/duchain.cpp:286
#4  0x4bf3ca0e in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#5  0x0048b832 in start_thread () from /lib/libpthread.so.0
#6  0x003cbe0e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xb1aa1b90 (LWP 12938)):
#0  0x007dae34 in clock_gettime () from /lib/librt.so.1
#1  0x4c06e246 in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#2  0x4c0730cb in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#3  0x4c073efa in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#4  0x4c071439 in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#5  0x4c0714b5 in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#6  0x463c66d3 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#7  0x463c6e16 in ?? () from /lib/libglib-2.0.so.0
#8  0x463c75e5 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#9  0x4c071944 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/qt4/lib/libQtCore.so.4
#10 0x4c0431ed in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/qt4/lib/libQtCore.so.4
#11 0x4c04357d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/qt4/lib/libQtCore.so.4
#12 0x4bf3982f in QThread::exec() () from /usr/lib/qt4/lib/libQtCore.so.4
#13 0xb75d3b18 in KDevelop::CompletionWorkerThread::run (this=0x8343f18) at
/usr/src/redhat/BUILD/kdevplatform-1.0.2/language/codecompletion/codecompletionmodel.cpp:81
#14 0x4bf3ca0e in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#15 0x0048b832 in start_thread () from /lib/libpthread.so.0
#16 0x003cbe0e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb0482b90 (LWP 12968)):
#0  0xb781f424 in __kernel_vsyscall ()
#1  0x0048fbc5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x4bf3d536 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/qt4/lib/libQtCore.so.4
#3  0x4f28bb8d in
ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=<value
optimized out>, th=<value optimized out>)
    at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x4f28e9cc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=)
at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x4f28a46b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x4f28eb32 in ThreadWeaver::WorkingHardState::applyForWork (this=<value
optimized out>, th=<value optimized out>)
    at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x4f28b1c3 in ThreadWeaver::WeaverImpl::applyForWork (this=<value optimized
out>, th=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x4f28eb51 in ThreadWeaver::WorkingHardState::applyForWork (this=<value
optimized out>, th=<value optimized out>)
    at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WorkingHardState.cpp:74
#9  0x4f28b1c3 in ThreadWeaver::WeaverImpl::applyForWork (this=<value optimized
out>, th=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x4f28c88e in ThreadWeaver::ThreadRunHelper::run (this=<value optimized
out>, parent=<value optimized out>, th=<value optimized out>)
    at /usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/Thread.cpp:87
#11 0x4f28cf5b in ThreadWeaver::Thread::run (this=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/Thread.cpp:142
#12 0x4bf3ca0e in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#13 0x0048b832 in start_thread () from /lib/libpthread.so.0
#14 0x003cbe0e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xaf8b2b90 (LWP 12978)):
#0  0xb781f424 in __kernel_vsyscall ()
#1  0x0048fbc5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x4bf3d536 in QWaitCondition::wait(QMutex*, unsigned long) () from
/usr/lib/qt4/lib/libQtCore.so.4
#3  0x4f28bb8d in
ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=<value
optimized out>, th=<value optimized out>)
    at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x4f28e9cc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=)
at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0x4f28a46b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0x4f28eb32 in ThreadWeaver::WorkingHardState::applyForWork (this=<value
optimized out>, th=<value optimized out>)
    at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0x4f28b1c3 in ThreadWeaver::WeaverImpl::applyForWork (this=<value optimized
out>, th=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0x4f28c88e in ThreadWeaver::ThreadRunHelper::run (this=<value optimized
out>, parent=<value optimized out>, th=<value optimized out>)
    at /usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/Thread.cpp:87
#9  0x4f28cf5b in ThreadWeaver::Thread::run (this=) at
/usr/src/redhat/BUILD/kdelibs-4.4.5/threadweaver/Weaver/Thread.cpp:142
#10 0x4bf3ca0e in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#11 0x0048b832 in start_thread () from /lib/libpthread.so.0
#12 0x003cbe0e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xae0a8b90 (LWP 13002)):
#0  0xb781f424 in __kernel_vsyscall ()
#1  0x0048fbc5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x4e564fd5 in QDateTime::QDateTime(QDate const&) () from
/usr/lib/qt4/lib/libQtScript.so.4
#3  0x4e565021 in QDateTime::QDateTime(QDate const&) () from
/usr/lib/qt4/lib/libQtScript.so.4
#4  0x0048b832 in start_thread () from /lib/libpthread.so.0
#5  0x003cbe0e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb73566d0 (LWP 12931)):
[KCrash Handler]
#6  0x00579680 in __dynamic_cast () from /usr/lib/libstdc++.so.6
#7  0xb1d55ebb in Php::CodeCompletionContext::isValidCompletionItem
(this=0xafb19140, dec=0xe753800) at
/usr/src/redhat/BUILD/kdevelop-php-1.0.2/completion/context.cpp:1577
#8  0xb1d4ec10 in Php::CodeCompletionContext::completionItems (this=0xafb19140,
abort=@0x8343f40, fullCompletion=false) at
/usr/src/redhat/BUILD/kdevelop-php-1.0.2/completion/context.cpp:1384
#9  0xb75cd9ad in KDevelop::CodeCompletionWorker::computeCompletions
(this=0x8343f30, context=..., position=..., view=0xf167ec8, contextRange=...,
contextText=...)
    at
/usr/src/redhat/BUILD/kdevplatform-1.0.2/language/codecompletion/codecompletionworker.cpp:159
#10 0xb75ce4be in KDevelop::CodeCompletionWorker::computeCompletions
(this=0x8343f30, context=..., position=..., view=0xf167ec8)
    at
/usr/src/redhat/BUILD/kdevplatform-1.0.2/language/codecompletion/codecompletionworker.cpp:119
#11 0xb75ceaa1 in KDevelop::CodeCompletionWorker::qt_metacall (this=0x8343f30,
_c=InvokeMetaMethod, _id=1, _a=0xafb3ad08)
    at
/usr/src/redhat/BUILD/kdevplatform-1.0.2-build/language/codecompletionworker.moc:84
#12 0xb1d393e2 in Php::CodeCompletionWorker::qt_metacall (this=0x8343f30,
_c=InvokeMetaMethod, _id=5, _a=0xafb3ad08) at
/usr/src/redhat/BUILD/kdevelop-php-1.0.2-build/completion/worker.moc:66
#13 0x4c04a75b in QMetaObject::metacall(QObject*, QMetaObject::Call, int,
void**) () from /usr/lib/qt4/lib/libQtCore.so.4
#14 0x4c0547e6 in QMetaCallEvent::placeMetaCall(QObject*) () from
/usr/lib/qt4/lib/libQtCore.so.4
#15 0x4c056448 in QObject::event(QEvent*) () from
/usr/lib/qt4/lib/libQtCore.so.4
#16 0x4cdae45f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from
/usr/lib/qt4/lib/libQtGui.so.4
#17 0x4cdb1b0e in QApplication::notify(QObject*, QEvent*) () from
/usr/lib/qt4/lib/libQtGui.so.4
#18 0x4d8f88fa in KApplication::notify (this=<value optimized out>,
receiver=<value optimized out>, event=<value optimized out>)
    at /usr/src/redhat/BUILD/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#19 0x4c04421b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from
/usr/lib/qt4/lib/libQtCore.so.4
#20 0x4c045051 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int,
QThreadData*) () from /usr/lib/qt4/lib/libQtCore.so.4
#21 0x4c04531d in QCoreApplication::sendPostedEvents(QObject*, int) () from
/usr/lib/qt4/lib/libQtCore.so.4
#22 0x4c07160f in ?? () from /usr/lib/qt4/lib/libQtCore.so.4
#23 0x463c3d33 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#24 0x463c716f in ?? () from /lib/libglib-2.0.so.0
#25 0x463c75e5 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x4c071928 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/qt4/lib/libQtCore.so.4
#27 0x4ce67215 in ?? () from /usr/lib/qt4/lib/libQtGui.so.4
#28 0x4c0431ed in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from
/usr/lib/qt4/lib/libQtCore.so.4
#29 0x4c04357d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/qt4/lib/libQtCore.so.4
#30 0x4c0453e1 in QCoreApplication::exec() () from
/usr/lib/qt4/lib/libQtCore.so.4
#31 0x4cdadbe7 in QApplication::exec() () from /usr/lib/qt4/lib/libQtGui.so.4
#32 0x0804ff06 in main ()
Comment 3 Milian Wolff 2010-09-24 16:53:07 UTC
I cannot do anything against this without a way to reproduce it. If either of you are able to do so, please run it through valgrind and report me the log it produces. Please use KDevelop 4.1 (one of it's beta releases is fine). The valgrind command would be this:

valgrind --track-origins=yes kdevelop

then reproduce the issue please.
Comment 4 Nicolas L. 2011-09-19 00:48:22 UTC
From bug 282141:

- What I was doing when the application crashed:

just typing code, didn't see if autocompletion was trying to show something.
don't know if it is related, but I just created a branch in git before editing
this file.
Comment 5 Nicolas L. 2011-09-19 00:48:33 UTC
*** Bug 282141 has been marked as a duplicate of this bug. ***
Comment 6 Christian 2012-01-18 08:52:52 UTC
I tried to reproduce the problem  with "valgrind --track-origins=yes kdevelop" but I didn't get any crash, only stack traces in the console. I paste them here.
Maybe it could be useful.

==26657== Thread 2:
==26657== Syscall param write(buf) points to uninitialised byte(s)
==26657==    at 0x7850DBD: ??? (in /lib64/libc-2.12.1.so)
==26657==    by 0x647634E: QFSFileEnginePrivate::writeFdFh(char const*, long long) (qcore_unix_p.h:262)
==26657==    by 0x643756B: QFile::flush() (qfile.cpp:1347)
==26657==    by 0x6437CBF: QFile::size() const (qfile.cpp:144)
==26657==    by 0xA08D97F: KDevelop::TopDUContextDynamicData::store() (topducontextdynamicdata.cpp:572)
==26657==    by 0xA0644AE: KDevelop::DUChainPrivate::doMoreCleanup(int, bool) (duchain.cpp:751)
==26657==    by 0xA06577C: KDevelop::DUChainPrivate::CleanupThread::run() (duchain.cpp:295)
==26657==    by 0x63B91E4: QThreadPrivate::start(void*) (qthread_unix.cpp:331)
==26657==    by 0x7AFFD24: start_thread (in /lib64/libpthread-2.12.1.so)
==26657==    by 0x785FD6C: clone (in /lib64/libc-2.12.1.so)
==26657==  Address 0x321e43d4 is 340 bytes inside a block of size 32,768 alloc'd
==26657==    at 0x4C256DD: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==26657==    by 0x63BB2C7: QByteArray::realloc(int) (qbytearray.cpp:1428)
==26657==    by 0x63BB3E8: QByteArray::resize(int) (qbytearray.cpp:1396)
==26657==    by 0x6439C1B: QFile::writeData(char const*, long long) (qringbuffer_p.h:158)
==26657==    by 0x643DFB6: QIODevice::write(char const*, long long) (qiodevice.cpp:1362)
==26657==    by 0xA08D77C: KDevelop::TopDUContextDynamicData::store() (topducontextdynamicdata.cpp:555)
==26657==    by 0xA0644AE: KDevelop::DUChainPrivate::doMoreCleanup(int, bool) (duchain.cpp:751)
==26657==    by 0xA06577C: KDevelop::DUChainPrivate::CleanupThread::run() (duchain.cpp:295)
==26657==    by 0x63B91E4: QThreadPrivate::start(void*) (qthread_unix.cpp:331)
==26657==    by 0x7AFFD24: start_thread (in /lib64/libpthread-2.12.1.so)
==26657==    by 0x785FD6C: clone (in /lib64/libc-2.12.1.so)
==26657==  Uninitialised value was created by a stack allocation
==26657==    at 0x30EF2F60: ??? (in /usr/lib64/libkdev4phpduchain.so)
==26657== 
==26657== Syscall param write(buf) points to uninitialised byte(s)
==26657==    at 0x7850DBD: ??? (in /lib64/libc-2.12.1.so)
==26657==    by 0x647634E: QFSFileEnginePrivate::writeFdFh(char const*, long long) (qcore_unix_p.h:262)
==26657==    by 0x6439B76: QFile::writeData(char const*, long long) (qfile.cpp:1635)
==26657==    by 0x643DFB6: QIODevice::write(char const*, long long) (qiodevice.cpp:1362)
==26657==    by 0xA0DF774: KDevelop::ItemRepository<KDevelop::UsesItem, KDevelop::UsesRequestItem, true, true, 0u, 1048576u>::store() (itemrepository.h:416)
==26657==    by 0xA1318E3: KDevelop::ItemRepositoryRegistry::store() (itemrepository.cpp:346)
==26657==    by 0xA064D9A: KDevelop::DUChainPrivate::doMoreCleanup(int, bool) (duchain.cpp:855)
==26657==    by 0xA06577C: KDevelop::DUChainPrivate::CleanupThread::run() (duchain.cpp:295)
==26657==    by 0x63B91E4: QThreadPrivate::start(void*) (qthread_unix.cpp:331)
==26657==    by 0x7AFFD24: start_thread (in /lib64/libpthread-2.12.1.so)
==26657==    by 0x785FD6C: clone (in /lib64/libc-2.12.1.so)
==26657==  Address 0x2bca41b4 is 244 bytes inside a block of size 65,536 alloc'd
==26657==    at 0x4C24C39: operator new[](unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==26657==    by 0xA0E19B1: KDevelop::ItemRepository<KDevelop::UsesItem, KDevelop::UsesRequestItem, true, true, 0u, 1048576u>::deleteItem(unsigned int) (itemrepository.h:1056)
==26657==    by 0xA0DBEC9: KDevelop::Uses::removeUse(KDevelop::DeclarationId const&, KDevelop::IndexedTopDUContext const&) (uses.cpp:164)
==26657==    by 0xA08171A: KDevelop::TopDUContext::clearUsedDeclarationIndices() (topducontext.cpp:1310)
==26657==    by 0x30C9595B: Php::ParseJob::run() (abstractusebuilder.h:67)
==26657==    by 0xF355E40: ??? (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0xF355F7D: ThreadWeaver::Job::execute(ThreadWeaver::Thread*) (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0xF35572E: ??? (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0xF3557E7: ThreadWeaver::Thread::run() (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0x63B91E4: QThreadPrivate::start(void*) (qthread_unix.cpp:331)
==26657==    by 0x7AFFD24: start_thread (in /lib64/libpthread-2.12.1.so)
==26657==    by 0x785FD6C: clone (in /lib64/libc-2.12.1.so)
==26657==  Uninitialised value was created by a stack allocation
==26657==    at 0x30EF2F60: ??? (in /usr/lib64/libkdev4phpduchain.so)
==26657== 


==26657== Thread 1:
==26657== Conditional jump or move depends on uninitialised value(s)
==26657==    at 0x2C71353A: Cpp::AdaptDefinitionSignatureAssistant::parseJobFinished(KDevelop::ParseJob*) (signatureassistant.cpp:388)
==26657==    by 0x2C713EBF: Cpp::AdaptDefinitionSignatureAssistant::qt_metacall(QMetaObject::Call, int, void**) (signatureassistant.moc:75)
==26657==    by 0x64B7DBE: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3278)
==26657==    by 0xA03036E: KDevelop::BackgroundParser::parseJobFinished(KDevelop::ParseJob*) (backgroundparser.moc:215)
==26657==    by 0xA030B12: KDevelop::BackgroundParser::parseComplete(ThreadWeaver::Job*) (backgroundparser.cpp:513)
==26657==    by 0xA033F23: KDevelop::BackgroundParser::qt_metacall(QMetaObject::Call, int, void**) (backgroundparser.moc:191)
==26657==    by 0x64B7DBE: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (qobject.cpp:3278)
==26657==    by 0xF355B61: ThreadWeaver::Job::done(ThreadWeaver::Job*) (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0xF355C4B: ThreadWeaver::Job::qt_metacall(QMetaObject::Call, int, void**) (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0xF35789F: ThreadWeaver::JobCollection::qt_metacall(QMetaObject::Call, int, void**) (in /usr/lib64/libthreadweaver.so.4.6.0)
==26657==    by 0xA039F49: KDevelop::ParseJob::qt_metacall(QMetaObject::Call, int, void**) (parsejob.moc:100)
==26657==    by 0x64B78B9: QObject::event(QEvent*) (qobject.cpp:1217)
==26657==  Uninitialised value was created by a heap allocation
==26657==    at 0x4C251D7: operator new(unsigned long) (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==26657==    by 0x2C7100A9: Cpp::StaticCodeAssistant::eventuallyStartAssistant() (codeassistant.cpp:97)
==26657==    by 0x2C710C9B: Cpp::StaticCodeAssistant::qt_metacall(QMetaObject::Call, int, void**) (codeassistant.moc:98)
==26657==    by 0x64B78B9: QObject::event(QEvent*) (qobject.cpp:1217)
==26657==    by 0x6992793: QApplicationPrivate::notify_helper(QObject*, QEvent*) (qapplication.cpp:4481)
==26657==    by 0x6997369: QApplication::notify(QObject*, QEvent*) (qapplication.cpp:4360)
==26657==    by 0x5CA9E05: KApplication::notify(QObject*, QEvent*) (in /usr/lib64/libkdeui.so.5.6.0)
==26657==    by 0x404CB8: KDevelopApplication::notify(QObject*, QEvent*) (main.cpp:90)
==26657==    by 0x64A331B: QCoreApplication::notifyInternal(QObject*, QEvent*) (qcoreapplication.cpp:787)
==26657==    by 0x64A6B24: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (qcoreapplication.h:215)
==26657==    by 0x64CE792: postEventSourceDispatch(_GSource*, int (*)(void*), void*) (qcoreapplication.h:220)
==26657==    by 0xCC31DC2: g_main_context_dispatch (in /lib64/libglib-2.0.so.0.2800.6)
==26657==
Comment 7 Milian Wolff 2012-01-18 12:48:32 UTC
I think this bug should not occur anymore in recent KDevelop (4.2+) versions. Christian, your valgrind log also only shows unrelated issues.

Please everyone - update to KDevelop 4.2 (or even the upcoming 4.3) and try to reproduce. If this is still an issue, please notify me by re-opening this bug or at least commenting on it.

Thanks
Comment 8 Christian 2012-01-18 12:58:03 UTC
I'm currently with kdevelop 4.2.2 on Mageia.
4.2.3 is not available in the repositories at the moment.

I did try to compile kdevelop 4.2.3 by myself, but I could not find informations on how to include kdevelop-php in the compilation on http://techbase.kde.org/KDevelop4/HowToCompile

Is it possible to explain this particular point ?
thank you
Comment 9 Milian Wolff 2012-02-16 22:04:57 UTC
Similar/same steps as if you'd build KDevelop. I've extended the techbase page a bit. Make sure you have kdevelop-pg-qt around (or compile it yourself).
Comment 10 Milian Wolff 2012-02-16 22:11:23 UTC
*** Bug 267301 has been marked as a duplicate of this bug. ***