[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-bugs
Subject: [Bug 271518] New: Invalid CMake script causes crash
From: Safety0ff <zgzlzhui () guerrillamailblock ! com>
Date: 2011-04-22 20:30:34
Message-ID: bug-271518-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=271518
Summary: Invalid CMake script causes crash
Product: kdevelop
Version: 4.2.1
Platform: Gentoo Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: Build tools: CMake
AssignedTo: kdevelop-bugs@kdevelop.org
ReportedBy: zgzlzhui@guerrillamailblock.com
Created an attachment (id=59222)
--> (http://bugs.kde.org/attachment.cgi?id=59222)
Example1
Version: 4.2.1 (using KDE 4.6.2)
OS: Linux
If you're have an invalid cmake script and kdevelop tries to parse it can
crash.
So far I've found two cases where this happens, but my attempts to reduce it to
minimal examples have failed (so my apologies that the test files are large).
The first example has a unterminated if statement (see line 90 in attached
CMakeListsCrash.txt)
I actually encountered this when I minimized KDevelop to look at the CMake
docs.
The second example is a unterminated string (see line 90 in attached
CMakeListsCrash2.txt)
I've attached the backtrace for the first example (the second one give an
identical bt).
Note: I used KDevelop 4.2.2 despite putting 4.2.1 in the version field. Also it
was compiled from portage.
Reproducible: Always
Steps to Reproduce:
Rename the attached files to CMakeLists.txt (so that kdevelop tries to parse
it)
and open them in KDevelop.
Actual Results:
Crashes, also, it will try to parse the file when it re-opens the session, so
you have to go in and fix the CMakeLists.txt with another editor.
Expected Results:
Not crash, maybe hint at a syntax error?
64 bit linux 2.6.39-rc4
CPU: Core i7-2630qm
GCC 4.5.2
C/CXXFLAGS: -march=native -mtune=generic -mfpmath=sse -O1 -pipe -ggdb
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic