View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000268VTK(No Category)public2003-10-10 13:112003-11-13 15:59
ReporterMathieu Malaterre 
Assigned ToBrad King 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000268: CMake crashes with seg fault on cygwin
DescriptionDoing 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
0000009 0x00401085 in main (ac=2, av=0xa0422a8)
    at /home/mathieu/Kitware/CMake/Source/cmakemain.cxx:102
(gdb)
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0000263)
Brad King (developer)
2003-11-12 14:36

This is not a bug in CMake, but rather a bug in the VTK_WRAP_PYTHON2 loaded command in VTK. This bug has been fixed in VTK CVS:

CMake/cmVTKWrapPython2Command.c 1.10->1.12
CMake/cmVTKWrapTcl2Command.c 1.17->1.19
CMake/cmVTKWrapJava2Command.c 1.5->1.7

The fix should be moved to the 4.2 release branch.
(0000272)
Brad King (developer)
2003-11-13 15:59

Fix has been merged to 4.2 branch.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team