Summary: | KDevelop crashes with segfault when CMakeLists.txt is changed [KDevelop::ImportProjectJob::ImportProjectJob, ..., CMakeManager::dirtyFile] | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Andrei Vinokurov <vinesworth> |
Component: | Build tools: CMake | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | aleixpol, amantia, daviddoria, ekononov, svanur |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | 4.2.0 | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
Sample project to trigger the crash with src/model/CMakeLists.txt New crash information added by DrKonqi |
Description
Andrei Vinokurov
2011-05-16 15:36:12 UTC
Created attachment 60363 [details]
New crash information added by DrKonqi
kdevelop (4.2.60) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2
- What I was doing when the application crashed:
I modified a CMakeLists.txt file in my project and KDevelop crashed. Note that not all CMakeLists.txt files in the project crash KDevelop when modified.
-- Backtrace (Reduced):
#7 0x08704503 in CMakeManager::dirtyFile (this=0x967aea8, dirty=...) at /home/doriad/src/kdevelop/projectmanagers/cmake/cmakemanager.cpp:783
#8 0x087057a5 in CMakeManager::qt_metacall (this=0x967aea8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf998db8) at /home/doriad/build/kdevelop/projectmanagers/cmake/cmakemanager.moc:96
[...]
#11 0x004f2cf3 in KDirWatch::dirty(QString const&) () from /usr/lib/libkdecore.so.5
#12 0x004f2d24 in KDirWatch::setDirty(QString const&) () from /usr/lib/libkdecore.so.5
#13 0x004f3045 in KDirWatch::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdecore.so.5
Aleix? Any knowledge on this one? @reporters: Can you upload/attach a simple project with which you can reliably trigger this crash? It's probably the same problem as yours... I'll try to refactor cmake's code to see if we can sort that one out during the sprint :) I'm not marking as duplicate as a hope there's some way this bug report can lead to a specific reproducible use case. @ reporter: please attach a sample project if this issue is still reproducible. Created attachment 68907 [details]
Sample project to trigger the crash with src/model/CMakeLists.txt
This sample project (which has got some errors and issues with the CMakeLists files) triggers the described crash on edit of the src/model/CMakeLists.txt file.
kdevelop --version
Qt: 4.8.0
KDE: 4.8.00 (4.8.0 "release 462"
KDevelop: 4.3.60
On openSUSE 11.4 64bit. KDE, Qt and KDevelop installed through official openSUSE repos.
aleix, can you look at it? Git commit 8d065ddcd7f0e817b0cde283d10ab66a7449cf27 by Aleix Pol. Committed on 24/02/2012 at 01:59. Pushed by apol into branch 'master'. add an assert to make sure what were re-importing makes sense. M +1 -0 projectmanagers/cmake/cmakemanager.cpp http://commits.kde.org/kdevelop/8d065ddcd7f0e817b0cde283d10ab66a7449cf27 I'm terribly sorry, but I can't reproduce it. Can you try it with master? Created attachment 72464 [details]
New crash information added by DrKonqi
kdevelop (4.3.1) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.2
Using external perforce client - checked out CMakeLists.txt (causing file touch)
-- Backtrace (Reduced):
#7 0xac697c99 in CMakeManager::dirtyFile (this=0x91e0768, dirty=...) at /usr/src/debug/kdevelop-4.3.1/projectmanagers/cmake/cmakemanager.cpp:1149
[...]
#9 0x44165616 in KDirWatch::dirty (this=this@entry=0x9077248, _t1=...) at /usr/src/debug/kdelibs-4.8.4/i686-redhat-linux-gnu/kdecore/kdirwatch.moc:112
#10 0x44165644 in KDirWatch::setDirty (this=this@entry=0x9077248, _file=...) at /usr/src/debug/kdelibs-4.8.4/kdecore/io/kdirwatch.cpp:1890
#11 0x44165964 in qt_static_metacall (_a=0xa7f3858, _id=4, _o=0x9077248, _c=<optimized out>) at /usr/src/debug/kdelibs-4.8.4/i686-redhat-linux-gnu/kdecore/kdirwatch.moc:62
#12 KDirWatch::qt_static_metacall (_o=0x9077248, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xa7f3858) at /usr/src/debug/kdelibs-4.8.4/i686-redhat-linux-gnu/kdecore/kdirwatch.moc:52
*** This bug has been marked as a duplicate of bug 293191 *** *** Bug 314452 has been marked as a duplicate of this bug. *** *** Bug 322376 has been marked as a duplicate of this bug. *** Hm, I run Kdevelop master, so this can't be fixed in 2012. :) It's not fixed, it's a duplicate of bug 293191 (which is a major issue, and not trivially fixable). AH, I didn't notice the duplicate (this) is also a duplicate (of 293191). :) |