Bug 231796

Summary: KDevelop 3.9.99 (4 Beta 9) Crashes when changing project name in kdev4 project file
Product: [Applications] kdevelop Reporter: Phil Woodland <phil.woodland>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Phil Woodland 2010-03-22 16:53:39 UTC
Application: kdevelop (3.9.99 (using KDevPlatform 0.9.99))
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-16-generic x86_64
Distribution: Ubuntu lucid (development branch)

-- Information about the crash:
First off, This may seem like an odd thing to do but it's sometimes easier to just copy a project and rename it instead of using a template.

Steps to reproduce:
1) Copy and/or rename an existing project directory
2) Open the .kdev4 project file and CMakeLists.txt and rename the project
3) Save the files (CTRL-S)
4) KDevelop Seg Faults

The crash can be reproduced every time.

 -- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[KCrash Handler]
#6  0x00007ffca38db010 in KDevelop::ProjectPrivate::itemsForUrl (this=<value optimized out>, url=...) at ../../shell/project.cpp:224
#7  KDevelop::Project::inProject (this=<value optimized out>, url=...) at ../../shell/project.cpp:553
#8  0x00007ffca38d10b9 in KDevelop::ProjectController::findProjectForUrl (this=<value optimized out>, url=...) at ../../shell/projectcontroller.cpp:750
#9  0x00007ffc8f07b3d7 in ?? () from /usr/lib/kde4/kdevcmakemanager.so
#10 0x00007ffc8f07c61d in ?? () from /usr/lib/kde4/kdevcmakemanager.so
#11 0x00007ffca2cc2dcf in QMetaObject::activate (sender=0x9aa40f0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xaa390) at kernel/qobject.cpp:3293
#12 0x00007ffc9f67c2b2 in KDirWatch::dirty (this=0x7fffd791cbe0, _t1=<value optimized out>) at ./kdirwatch.moc:99
#13 0x00007ffc9f67cb91 in KDirWatch::qt_metacall (this=0x9aa40f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x5050150) at ./kdirwatch.moc:86
#14 0x00007ffca2cbfcd9 in QObject::event (this=0x9aa40f0, e=0x64d5420) at kernel/qobject.cpp:1248
#15 0x00007ffca206922c in QApplicationPrivate::notify_helper (this=0x1a40870, receiver=0x9aa40f0, e=0x64d5420) at kernel/qapplication.cpp:4300
#16 0x00007ffca206f6fb in QApplication::notify (this=0x7fffd791f7c0, receiver=0x9aa40f0, e=0x64d5420) at kernel/qapplication.cpp:4183
#17 0x00007ffca31f7506 in KApplication::notify (this=0x7fffd791f7c0, receiver=0x9aa40f0, event=0x64d5420) at ../../kdeui/kernel/kapplication.cpp:302
#18 0x00007ffca2cafffc in QCoreApplication::notifyInternal (this=0x7fffd791f7c0, receiver=0x9aa40f0, event=0x64d5420) at kernel/qcoreapplication.cpp:704
#19 0x00007ffca2cb2777 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1a11870) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1a11870) at kernel/qcoreapplication.cpp:1345
#21 0x00007ffca2cd9963 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#22 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#23 0x00007ffc9bdd0432 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#24 0x00007ffc9bdd42b8 in ?? () from /lib/libglib-2.0.so.0
#25 0x00007ffc9bdd446c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#26 0x00007ffca2cd94a3 in QEventDispatcherGlib::processEvents (this=0x1a10fd0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#27 0x00007ffca211930e in QGuiEventDispatcherGlib::processEvents (this=0x7fffd791cbe0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#28 0x00007ffca2cae922 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#29 0x00007ffca2caecfc in QEventLoop::exec (this=0x7fffd791dd10, flags=) at kernel/qeventloop.cpp:201
#30 0x00007ffca253300e in QDialog::exec (this=0x7fffd791dda0) at dialogs/qdialog.cpp:546
#31 0x00007ffc8f301cda in CMake::checkForNeedingConfigure(KDevelop::ProjectBaseItem*) () from /usr/lib/libkdev4cmakecommon.so.3.9.99
#32 0x00007ffc8f080612 in ?? () from /usr/lib/kde4/kdevcmakemanager.so
#33 0x00007ffca38da370 in KDevelop::ProjectPrivate::importTopItem (this=0x9b76fb0) at ../../shell/project.cpp:411
#34 KDevelop::Project::reloadModel (this=0x9b76fb0) at ../../shell/project.cpp:486
#35 0x00007ffc8f078f64 in ?? () from /usr/lib/kde4/kdevcmakemanager.so
#36 0x00007ffc8f07b68e in ?? () from /usr/lib/kde4/kdevcmakemanager.so
#37 0x00007ffc8f07c61d in ?? () from /usr/lib/kde4/kdevcmakemanager.so
#38 0x00007ffca2cc2dcf in QMetaObject::activate (sender=0x9aa40f0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xaa390) at kernel/qobject.cpp:3293
#39 0x00007ffc9f67c2b2 in KDirWatch::dirty (this=0x7fffd791cbe0, _t1=<value optimized out>) at ./kdirwatch.moc:99
#40 0x00007ffc9f67cb91 in KDirWatch::qt_metacall (this=0x9aa40f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x9590b00) at ./kdirwatch.moc:86
#41 0x00007ffca2cbfcd9 in QObject::event (this=0x9aa40f0, e=0x2474210) at kernel/qobject.cpp:1248
#42 0x00007ffca206922c in QApplicationPrivate::notify_helper (this=0x1a40870, receiver=0x9aa40f0, e=0x2474210) at kernel/qapplication.cpp:4300
#43 0x00007ffca206f6fb in QApplication::notify (this=0x7fffd791f7c0, receiver=0x9aa40f0, e=0x2474210) at kernel/qapplication.cpp:4183
#44 0x00007ffca31f7506 in KApplication::notify (this=0x7fffd791f7c0, receiver=0x9aa40f0, event=0x2474210) at ../../kdeui/kernel/kapplication.cpp:302
#45 0x00007ffca2cafffc in QCoreApplication::notifyInternal (this=0x7fffd791f7c0, receiver=0x9aa40f0, event=0x2474210) at kernel/qcoreapplication.cpp:704
#46 0x00007ffca2cb2777 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x1a11870) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#47 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x1a11870) at kernel/qcoreapplication.cpp:1345
#48 0x00007ffca2cd9963 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#49 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#50 0x00007ffc9bdd0432 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#51 0x00007ffc9bdd42b8 in ?? () from /lib/libglib-2.0.so.0
#52 0x00007ffc9bdd446c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#53 0x00007ffca2cd94a3 in QEventDispatcherGlib::processEvents (this=0x1a10fd0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#54 0x00007ffca211930e in QGuiEventDispatcherGlib::processEvents (this=0x7fffd791cbe0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#55 0x00007ffca2cae922 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#56 0x00007ffca2caecfc in QEventLoop::exec (this=0x7fffd791f610, flags=) at kernel/qeventloop.cpp:201
#57 0x00007ffca2cb2a3b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#58 0x000000000040865f in _start ()

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-03-22 17:48:00 UTC
so you have kdevelop running while doing the copy or rename? Or are you starting kdevelop, pointing it to the new directory and it crashes then?
Comment 2 Phil Woodland 2010-03-22 19:04:20 UTC
(In reply to comment #1)
> so you have kdevelop running while doing the copy or rename? Or are you
> starting kdevelop, pointing it to the new directory and it crashes then?

Sorry, I suppose that wasn't quite clear.

The copy and/or rename process is done while KDevelop is not running.
Then starting KDevelop, pointing it to the new directory, changing the .kdev4 and CMakesList.txt files within KDevelop to reflect the newly desired project name (and executable etc.), and upon saving KDevelop Seg Faults (as above).
Comment 3 Andreas Pakulat 2010-03-22 20:59:46 UTC

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