[cmake-developers] [CMake 0011991]: stack smash with (assumed) case-sensitive file names
Mantis Bug Tracker
mantis at public.kitware.com
Mon Mar 21 10:55:14 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=11991
======================================================================
Reported By: Daniel Franke
Assigned To:
======================================================================
Project: CMake
Issue ID: 11991
Category: CMake
Reproducibility: always
Severity: crash
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-03-21 10:55 EDT
Last Modified: 2011-03-21 10:55 EDT
======================================================================
Summary: stack smash with (assumed) case-sensitive file names
Description:
FindFLEX.cmake was not available in cmake-2.6 but was added in cmake.2.8.
In order to allow find_package() for either version, I created FindFlex.cmake
(note the lowercase part of FLEX) in my CMAKE_MODULE_PATH. This file contains:
if (${CMAKE_VERSION} VERSION_LESS 2.8)
set (FLEX_FOUND "false")
else ()
find_package (FLEX)
endif ()
This works for Linux, but on windows, cmake dies with ERRORLEVEL=-1073741819,
i.e. 0xC0000005 which indicates a crash. Taking into account that the file
system is not case sensitive, I assume that find_package(Flex) and
find_package(FLEX) are not distinguished and thus result in a infinite loop of
above script.
The problem was seen with cmake 2.8.2.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-03-21 10:55 Daniel Franke New Issue
======================================================================
More information about the cmake-developers
mailing list