Created attachment 62848 [details] backtrace from crash Version: 4.2.3 (using KDE 4.7.0) OS: Linux Probably the shortest CMakeLists.txt which crashes KDevelop: :) while(1 The crash seems to be infinite recursion ending in stack overflow. Part of backtrace is attached. The crash is not in the text editor but in the CMake project manager; you need to restart KDevelop or let it reload the CMakeLists.txt to make it crash. Reproducible: Always Steps to Reproduce: Use the following CMakeLists.txt file: while(1 Actual Results: Segmentation fault. Expected Results: No segmentation faule.
Can confirm the bug. KDevelop 4.2.3 on openSUSE 11.4 running KDE 4.6.4.
can confirm - Aleix, can you take a shot at fixing this please?
Git commit 4edc197c25f288a329e96dae093412020a0451fb by Aleix Pol. Committed on 01/09/2011 at 06:22. Pushed by apol into branch '4.2'. If a while expression is unfinished, don't execute it at all. BUG: 280136 M +13 -11 projectmanagers/cmake/parser/cmakeprojectvisitor.cpp M +11 -1 projectmanagers/cmake/tests/cmake_cmakeprojectvisitor_test.cpp http://commits.kde.org/kdevelop/4edc197c25f288a329e96dae093412020a0451fb
Git commit c02d272da560cc68f18bad129fda5a2356b6231a by Aleix Pol. Committed on 01/09/2011 at 06:22. Pushed by apol into branch 'master'. If a while expression is unfinished, don't execute it at all. BUG: 280136 M +13 -11 projectmanagers/cmake/parser/cmakeprojectvisitor.cpp M +11 -1 projectmanagers/cmake/tests/cmake_cmakeprojectvisitor_test.cpp http://commits.kde.org/kdevelop/c02d272da560cc68f18bad129fda5a2356b6231a