Bug 223607

Summary: KDevelop4 crashed when I manually created a file in project directory
Product: [Developer tools] kdevplatform Reporter: Alexander <ashaduri>
Component: projectAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, cfeck, kdevelop-bugs-null, mail, niko.sams
Priority: NOR Keywords: investigated, triaged
Version First Reported In: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander 2010-01-20 19:04:33 UTC
Version:           SVN (using KDE 4.3.3)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    openSUSE RPMs

Not sure if this is related to PHP.
I had just created a PHP project from a template. Then I typed ">>test_base.php" in a project directory (in a terminal emulator) to create an empty file.
At that point KDevelop crashed. I could not reproduce the crash on subsequent attempts.

Here's the backtrace:

Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f91b9eef760 (LWP 29981))]

Thread 9 (Thread 0x7f91a67d5950 (LWP 29989)):
#0  0x00007f91b691ffdd in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e47 in QWaitConditionPrivate::wait (this=0x10d7c78, mutex=0x10d7c80, time=200000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=0x10d7c78, mutex=0x10d7c80, time=200000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b36fcb0e in KDevelop::DUChainPrivate::CleanupThread::run (this=0x10d7c60) at /0S/0tmp/DL-CVS/kdevelop4/kdevplatform.p/language/duchain/duchain.cpp:286
#4  0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x10d7c60) at thread/qthread_unix.cpp:188
#5  0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f91b510611d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f91a17db950 (LWP 29994)):
#0  0x00007f91b691fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e69 in QWaitConditionPrivate::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b83b1644 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f91b83b3da3 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f91b83b236f in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f91b83b27c9 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x1acd610) at thread/qthread_unix.cpp:188
#8  0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f91b510611d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9198170950 (LWP 30006)):
#0  0x00007f91b50fd396 in poll () from /lib64/libc.so.6
#1  0x00007f91aef9d7c9 in g_main_context_iterate () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f91aef9dabc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f91b6ca2586 in QEventDispatcherGlib::processEvents (this=0x1bce810, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:409
#4  0x00007f91b6c779e2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f91b6c77db4 in QEventLoop::exec (this=0x7f9198170070, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f91b6b8cf28 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#7  0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x1ce3100) at thread/qthread_unix.cpp:188
#8  0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f91b510611d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f9198971950 (LWP 30079)):
#0  0x00007f91b691fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e69 in QWaitConditionPrivate::wait (this=0x1170ae8, mutex=0x1110be0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x1170ae8, mutex=0x1110be0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b83b1644 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f91b83b3da3 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f91b83b236f in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f91b83b27c9 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x3890450) at thread/qthread_unix.cpp:188
#8  0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f91b510611d in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f918ffff950 (LWP 30080)):
#0  0x00007f91b691fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e69 in QWaitConditionPrivate::wait (this=0x1170ae8, mutex=0x1110be0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x1170ae8, mutex=0x1110be0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b83b1644 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f91b83b3da3 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#8  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#9  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#10 0x00007f91b83b236f in ?? () from /usr/lib64/libthreadweaver.so.4
#11 0x00007f91b83b27c9 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#12 0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x39986d0) at thread/qthread_unix.cpp:188
#13 0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#14 0x00007f91b510611d in clone () from /lib64/libc.so.6
#15 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f918f7fe950 (LWP 31103)):
#0  0x00007f91b691fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e69 in QWaitConditionPrivate::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b83b1644 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f91b83b3da3 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f91b83b236f in ?? () from /usr/lib64/libthreadweaver.so.4
#8  0x00007f91b83b27c9 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#9  0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x4a2cba0) at thread/qthread_unix.cpp:188
#10 0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f91b510611d in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f918effd950 (LWP 31104)):
#0  0x00007f91b691fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e69 in QWaitConditionPrivate::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b83b1644 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f91b83b3da3 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#8  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#9  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#10 0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#11 0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#12 0x00007f91b83b236f in ?? () from /usr/lib64/libthreadweaver.so.4
#13 0x00007f91b83b27c9 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#14 0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x4a133a0) at thread/qthread_unix.cpp:188
#15 0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#16 0x00007f91b510611d in clone () from /lib64/libc.so.6
#17 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f918e7fc950 (LWP 31256)):
#0  0x00007f91b691fd59 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f91b6b90e69 in QWaitConditionPrivate::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=0x1ac0558, mutex=0x1ac5ca0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f91b83b1644 in ?? () from /usr/lib64/libthreadweaver.so.4
#4  0x00007f91b83b3da3 in ?? () from /usr/lib64/libthreadweaver.so.4
#5  0x00007f91b83b3dbc in ?? () from /usr/lib64/libthreadweaver.so.4
#6  0x00007f91b83b236f in ?? () from /usr/lib64/libthreadweaver.so.4
#7  0x00007f91b83b27c9 in ThreadWeaver::Thread::run() () from /usr/lib64/libthreadweaver.so.4
#8  0x00007f91b6b8feb5 in QThreadPrivate::start (arg=0x49d45e0) at thread/qthread_unix.cpp:188
#9  0x00007f91b691c070 in start_thread () from /lib64/libpthread.so.0
#10 0x00007f91b510611d in clone () from /lib64/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f91b9eef760 (LWP 29981)):
[KCrash Handler]
#5  0x0000000001d44c50 in ?? ()
#6  0x00007f91a529956f in getIncludeRules (project=0x1a404d0) at /0S/0tmp/DL-CVS/kdevelop4/kdevplatform.p/plugins/genericprojectmanager/genericmanager.cpp:61
#7  0x00007f91a529e58b in GenericProjectManager::created (this=0x1ab9d40, path=<value optimized out>) at /0S/0tmp/DL-CVS/kdevelop4/kdevplatform.p/plugins/genericprojectmanager/genericmanager.cpp:284
#8  0x00007f91a529e854 in GenericProjectManager::qt_metacall (this=0x1ab9d40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff292eab20)
    at /0S/0tmp/DL-CVS/kdevelop4/kdevplatform.p/0build1/plugins/genericprojectmanager/genericmanager.moc:114
#9  0x00007f91b6c8dee2 in QMetaObject::activate (sender=0x5fed0c0, from_signal_index=<value optimized out>, to_signal_index=5, argv=0x1) at kernel/qobject.cpp:3113
#10 0x00007f91b8fcb675 in KDirWatch::created(QString const&) () from /usr/lib64/libkio.so.5
#11 0x00007f91b8fcc530 in KDirWatch::setCreated(QString const&) () from /usr/lib64/libkio.so.5
#12 0x00007f91b8fcd2db in ?? () from /usr/lib64/libkio.so.5
#13 0x00007f91b8fd56d4 in ?? () from /usr/lib64/libkio.so.5
#14 0x00007f91b8fd5868 in ?? () from /usr/lib64/libkio.so.5
#15 0x00007f91b6c8dee2 in QMetaObject::activate (sender=0x1a952f0, from_signal_index=<value optimized out>, to_signal_index=4, argv=0x1) at kernel/qobject.cpp:3113
#16 0x00007f91b6cc62ce in QSocketNotifier::activated (this=0x7fff292ea890, _t1=14) at .moc/release-shared/moc_qsocketnotifier.cpp:83
#17 0x00007f91b6c93543 in QSocketNotifier::event (this=0x1a952f0, e=0x7fff292ec6b0) at kernel/qsocketnotifier.cpp:316
#18 0x00007f91b5ca5a4d in QApplicationPrivate::notify_helper (this=0xeb3d50, receiver=0x1a952f0, e=0x7fff292ec6b0) at kernel/qapplication.cpp:4065
#19 0x00007f91b5cadcda in QApplication::notify (this=0x7fff292eca30, receiver=0x1a952f0, e=0x7fff292ec6b0) at kernel/qapplication.cpp:4030
#20 0x00007f91b73e909b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#21 0x00007f91b6c7915c in QCoreApplication::notifyInternal (this=0x7fff292eca30, receiver=0x1a952f0, event=0x7fff292ec6b0) at kernel/qcoreapplication.cpp:610
#22 0x00007f91b6ca28b9 in QCoreApplication::sendEvent (source=0xeb6990) at kernel/qcoreapplication.h:213
#23 socketNotifierSourceDispatch (source=0xeb6990) at kernel/qeventdispatcher_glib.cpp:110
#24 0x00007f91aef99f6a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#25 0x00007f91aef9d8f8 in g_main_context_iterate () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f91aef9dabc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f91b6ca256c in QEventDispatcherGlib::processEvents (this=0xeb3f10, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:407
#28 0x00007f91b5d3cfdf in QGuiEventDispatcherGlib::processEvents (this=0x7fff292ea890, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#29 0x00007f91b6c779e2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007f91b6c77db4 in QEventLoop::exec (this=0x7fff292ec910, flags=...) at kernel/qeventloop.cpp:201
#31 0x00007f91b6c7a0a4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#32 0x000000000040626d in main (argc=1, argv=0x7fff292edcf8) at /0S/0tmp/DL-CVS/kdevelop4/kdevelop/app/main.cpp:209
Comment 1 Dario Andres 2010-01-20 21:32:52 UTC
- Is this really kdelibs related ? Regards
Comment 2 Christoph Feck 2010-01-20 22:12:55 UTC
This does not look like a kdelibs bug, but any explanation welcomed.
Comment 3 Andreas Pakulat 2010-01-20 22:57:43 UTC
Oops, sorry, seems I missed the first few frames of thread one and only saw the KDirWatch ones. Moving back.
Comment 4 Niko Sams 2010-01-22 12:32:05 UTC
I just got the exact same crash
Comment 5 Milian Wolff 2010-09-08 22:33:07 UTC
can someone reproduce this? Please send me an updated backtrace that shows /where/ in getIncludeRules it's crashing. I don't see anything in there.
Comment 6 Alexander 2010-09-12 19:34:04 UTC
I couldn't reproduce it with current 4.1 branch after several tries (with gcc 4.5.0 / KDE 4.5.1). Then again, it was quite rare, so this doesn't really mean anything.
Comment 7 Andrew Crouthamel 2018-09-20 22:12:40 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-10-21 04:43:52 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!