CMake crashes with seg fault on cygwin
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Doing a 'cmake' with some option on a project causes cmake to crash.
Steps to reproduce: Go to: http://www.creatis.insa-lyon.fr/Public/Gdcm/cvs.html Follow instruction to download source. Start cygwin $ cd gdcm $ mkdir cbin $ cd cbin $ ccmake .. Choose GDCM_VTK = ON and GDCM_WRAP_PYTHON = ON (in oder to do so, the FindPythonLibs should be patched in order to find python libs)
press 'c', when at 98% it crashed : here is the gdb backtrace dump:
mathieu@Toshiba-PC ~/Creatis/gdcm/cybin $ gdb /home/mathieu/Kitware/CMakeBin/bin/cmake GNU gdb 2003-09-20-cvs (cygwin-special) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) r .. Starting program: /home/mathieu/Kitware/CMakeBin/bin/cmake.exe .. -- Check for working C compiler: gcc -- works -- Check for working CXX compiler: c++ -- works -- Loading VTK CMake commands -- Loading VTK CMake commands - done
Program received signal SIGSEGV, Segmentation fault. 0x01781fdf in FinalPass () from /usr/lib/vtk/CMake/libcmVTK_WRAP_PYTHON2.dll (gdb) bt #0 0x01781fdf in FinalPass () from /usr/lib/vtk/CMake/libcmVTK_WRAP_PYTHON2.dll #1 0x00469c15 in cmLoadedCommand::FinalPass() (this=0xa0dbb98) at /home/mathieu/Kitware/CMake/Source/cmLoadCommandCommand.cxx:152 #2 0x00422922 in cmMakefile::FinalPass() (this=0xa0d0e18) at /home/mathieu/Kitware/CMake/Source/cmMakefile.cxx:440 #3 0x0042297a in cmMakefile::ConfigureFinalPass() (this=0xa0d0e18) at /home/mathieu/Kitware/CMake/Source/cmMakefile.cxx:448 #4 0x0047ca30 in cmLocalGenerator::ConfigureFinalPass() (this=0xa0d0dd0) at /home/mathieu/Kitware/CMake/Source/cmLocalGenerator.cxx:61 #5 0x0047b0fe in cmGlobalGenerator::Configure() (this=0xa049430) at /home/mathieu/Kitware/CMake/Source/cmGlobalGenerator.cxx:317 #6 0x0040fd8b in cmake::Configure() (this=0x22fc80) at /home/mathieu/Kitware/CMake/Source/cmake.cxx:942 #7 0x00410390 in cmake::Run(std::vector<std::string, std::allocator<std::string > > const&, bool) (this=0x22fc80, args=@0x22fc50, noconfigure=false) at /home/mathieu/Kitware/CMake/Source/cmake.cxx:1037 #8 0x00401982 in do_cmake(int, char**) (ac=2, av=0xa0422a8) at /home/mathieu/Kitware/CMake/Source/cmakemain.cxx:203 #9 (closed) 0x00401085 in main (ac=2, av=0xa0422a8) at /home/mathieu/Kitware/CMake/Source/cmakemain.cxx:102 (gdb)