View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0016015 | CMake | CMake | public | 2016-03-12 16:52 | 2016-06-10 14:21 | ||||
Reporter | Julian Schmidt | ||||||||
Assigned To | Brad King | ||||||||
Priority | low | Severity | trivial | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | x64 | OS | CentOS | OS Version | 6.7 | ||||
Product Version | CMake 3.5 | ||||||||
Target Version | CMake 3.6 | Fixed in Version | CMake 3.6 | ||||||
Summary | 0016015: 'cmake -U*' causes SIGABRT in cmGlobalGenerator::EnableLanguage() | ||||||||
Description | Doing 'cmake -U*' leads to a SIGABRT in cmGlobalGenerator::EnableLanguage() with the following message: "what(): basic_string::_S_construct NULL not valid". | ||||||||
Steps To Reproduce | At git tag "v3.5.0-rc3" do the following: $ touch CMakeLists.txt $ cmake . [...] $ cmake -U"*" [...] terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid Aborted (core dumped) | ||||||||
Additional Information | The reason for the SIGABRT is that in EnableLanguage() an std::string is constructed from a char null-pointer. This can be reproduced also at git tag "v2.6.0". Note that the general issue of construction of std::strings from null pointers in CMake has already been reported in 0014005. But the concrete example given (and fixed) there is different from the one here. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0040674) Brad King (manager) 2016-03-14 10:51 edited on: 2016-03-16 09:04 |
Thanks. This should fix it: Avoid depending on CMAKE_ROOT cache entry internally https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3144857e [^] |
(0041226) Kitware Robot (administrator) 2016-06-10 14:21 |
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2016-03-12 16:52 | Julian Schmidt | New Issue | |
2016-03-14 10:51 | Brad King | Note Added: 0040674 | |
2016-03-14 10:51 | Brad King | Assigned To | => Brad King |
2016-03-14 10:51 | Brad King | Status | new => resolved |
2016-03-14 10:51 | Brad King | Resolution | open => fixed |
2016-03-14 10:51 | Brad King | Fixed in Version | => CMake 3.6 |
2016-03-14 10:51 | Brad King | Target Version | => CMake 3.6 |
2016-03-16 09:04 | Brad King | Note Edited: 0040674 | |
2016-06-10 14:21 | Kitware Robot | Note Added: 0041226 | |
2016-06-10 14:21 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |