[CMake] cmLocalGenerator.cxx is bugy
Richard Wirth
richard at califax.de
Sun Jun 22 08:57:59 EDT 2014
Hallo everyone,
I think my last mail has gotten lost.
I think I've found something like a bug. When trying to cmake codelight
on a Linux 64 bit system. Both cmake and cmake-gui crashes with the same
error:
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
The error message comes from the STL (libstdc++.so.6).
In line 1865 of the above mentioned file there is a conversion from
const char* to string& . When char* is NULL it crashes. The NULL comes
as return from GetDefinition().
Then I searched all the files of the project for a occurrence of
GetDefinition(). And I've found other codings of this possible error.
For instance in cmComputeLinkInformation.cxx line 880 and many others.
That's all for today. And excuse my bad English, I'm a ... German.
And thanks for the great work!!!
Richard Wirth
More information about the CMake
mailing list