MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014005 | CMake | CMake | public | 2013-03-12 16:53 | 2013-10-07 10:03 |
Reporter | Alexander Polunin | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.10.2 | ||||
Target Version | CMake 2.8.11 | Fixed in Version | CMake 2.8.11 | ||
Summary | 0014005: terminate called after throwing an instance of 'std::logic_error' | ||||
Description | cmake source files contain places where you construct std::basic_string from NULL pointer of type const char*. And this leads to cmake termination after throwing std::logic_error exception. Maybe it's not the big problem if you sure that NULL pointers are impossible but at least in one case simple input to cmake leads to its termination in string "cmake-2.8.10.2/Source/kwsys/SystemTools.cxx:1803". kwsys_stl::string SystemTools::ConvertToUnixOutputPath(const char* path) { kwsys_stl::string ret = path; // maybe we need to more strict check here ................................... | ||||
Steps To Reproduce | 1) create CMakeLists.txt with content ################Begin################## include (CTest) project(ttt) ################End##################### 2) create build folder and go there 3) run cmake with default generator (I have checked it with gcc and MinGW toolchain) cmake .. 4) see terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-03-12 16:53 | Alexander Polunin | New Issue | |||
2013-03-12 18:34 | Brad King | Note Added: 0032596 | |||
2013-03-12 18:34 | Brad King | Assigned To | => Brad King | ||
2013-03-12 18:34 | Brad King | Status | new => resolved | ||
2013-03-12 18:34 | Brad King | Resolution | open => fixed | ||
2013-03-12 18:34 | Brad King | Fixed in Version | => CMake 2.8.11 | ||
2013-03-12 18:34 | Brad King | Target Version | => CMake 2.8.11 | ||
2013-10-07 10:03 | Robert Maynard | Note Added: 0033993 | |||
2013-10-07 10:03 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|