[cmake-developers] [CMake 0013901]: cmake . -DCMAKE_CXX_COMPILER= results in segfault

Mantis Bug Tracker mantis at public.kitware.com
Fri Feb 8 11:26:30 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13901 
====================================================================== 
Reported By:                Orion Poplawski
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13901
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-02-08 11:26 EST
Last Modified:              2013-02-08 11:26 EST
====================================================================== 
Summary:                    cmake .  -DCMAKE_CXX_COMPILER= results in segfault
Description: 
$ touch CMakeLists.txt
$ cmake .  -DCMAKE_CXX_COMPILER=
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.  
Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
Segmentation fault (core dumped)


Additional Information: 
Program terminated with signal 11, Segmentation fault.
http://public.kitware.com/Bug/view.php?id=0  _M_grab (__alloc2=...,
__alloc1=..., this=0x4c49504d4f435f40)
    at
/usr/src/debug/gcc-4.7.2-20121109/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:226
226                       ? _M_refcopy() : _M_clone(__alloc1);
Missing separate debuginfos, use: debuginfo-install
bzip2-libs-1.0.6-7.fc18.x86_64 cyrus-sasl-lib-2.1.23-37.fc18.x86_64
libacl-2.2.51-7.fc18.x86_64 libattr-2.4.46-7.fc18.x86_64
libidn-1.26-1.fc18.x86_64 libssh2-1.4.3-1.fc18.x86_64
nss-softokn-freebl-3.14.2-3.fc18.x86_64 openssl-libs-1.0.1c-7.fc18.x86_64
xz-libs-5.1.2-2alpha.fc18.x86_64
(gdb) bt
http://public.kitware.com/Bug/view.php?id=0  _M_grab (__alloc2=...,
__alloc1=..., this=0x4c49504d4f435f40)
    at
/usr/src/debug/gcc-4.7.2-20121109/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:226
http://public.kitware.com/Bug/view.php?id=1  std::string::assign
(this=0x7ffffcc25358, __str=
    <error reading variable: Cannot access memory at address
0x4c49504d4f435f40>)
    at
/usr/src/debug/gcc-4.7.2-20121109/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.tcc:251
http://public.kitware.com/Bug/view.php?id=2  0x00000000004fc07a in operator=
(__str=
    <error reading variable: Cannot access memory at address
0x4c49504d4f435f40>, 
    this=0x7ffffcc25358) at /usr/include/c++/4.7.2/bits/basic_string.h:544
http://public.kitware.com/Bug/view.php?id=3  cmake::HandleDeleteCacheVariables
(this=0x7ffffcc258c0, var=<optimized out>)
    at /usr/src/debug/cmake-2.8.10.2/Source/cmake.cxx:2070
http://public.kitware.com/Bug/view.php?id=4  0x00000000004fca46 in cmake::Run
(this=0x7ffffcc258c0, 
    args=std::vector of length 3, capacity 4 = {...}, noconfigure=false)
    at /usr/src/debug/cmake-2.8.10.2/Source/cmake.cxx:2478
http://public.kitware.com/Bug/view.php?id=5  0x000000000048eee1 in do_cmake
(ac=3, av=0x7ffffcc25c38)
    at /usr/src/debug/cmake-2.8.10.2/Source/cmakemain.cxx:529
http://public.kitware.com/Bug/view.php?id=6  0x000000000048c369 in main (ac=3,
av=0x7ffffcc25c38)
    at /usr/src/debug/cmake-2.8.10.2/Source/cmakemain.cxx:338
(gdb) up 3
http://public.kitware.com/Bug/view.php?id=3  cmake::HandleDeleteCacheVariables
(this=0x7ffffcc258c0, var=<optimized out>)
    at /usr/src/debug/cmake-2.8.10.2/Source/cmake.cxx:2070
2070        save.value = *i;
(gdb) print i
$1 = <error reading variable: Cannot access memory at address
0x4c49504d4f435f40>
(gdb) print argsSplit
$3 = std::vector of length 1, capacity 1 = {"CMAKE_CXX_COMPILER"}

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-02-08 11:26 Orion PoplawskiNew Issue                                    
======================================================================




More information about the cmake-developers mailing list