View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016015CMakeCMakepublic2016-03-12 16:522016-06-10 14:21
ReporterJulian Schmidt 
Assigned ToBrad King 
PrioritylowSeveritytrivialReproducibilityalways
StatusclosedResolutionfixed 
Platformx64OSCentOSOS Version6.7
Product VersionCMake 3.5 
Target VersionCMake 3.6Fixed in VersionCMake 3.6 
Summary0016015: 'cmake -U*' causes SIGABRT in cmGlobalGenerator::EnableLanguage()
DescriptionDoing 'cmake -U*' leads to a SIGABRT in cmGlobalGenerator::EnableLanguage() with the following message: "what(): basic_string::_S_construct NULL not valid".
Steps To ReproduceAt 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 InformationThe 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.
TagsNo tags attached.
Attached Files

 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.

 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


Copyright © 2000 - 2018 MantisBT Team