[cmake-developers] [CMake 0016015]: 'cmake -U*' causes SIGABRT in cmGlobalGenerator::EnableLanguage()

Mantis Bug Tracker mantis at public.kitware.com
Sat Mar 12 16:52:14 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=16015 
====================================================================== 
Reported By:                Julian Schmidt
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16015
Category:                   CMake
Reproducibility:            always
Severity:                   trivial
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2016-03-12 16:52 EST
Last Modified:              2016-03-12 16:52 EST
====================================================================== 
Summary:                    '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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-03-12 16:52 Julian Schmidt New Issue                                    
======================================================================



More information about the cmake-developers mailing list