[vtk-developers] CMake Segfaults while configuring VTK

Kevin H. Hobbs hobbsk at ohio.edu
Thu Aug 13 16:42:21 EDT 2015


GDB gives me a different backtrace this time:

Detaching after fork from child process 30288.
-- Configuring done

Program received signal SIGSEGV, Segmentation fault.
std::string::c_str (this=0x170)
    at
/usr/src/debug/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:1801
1801          { return _M_data(); }
(gdb) bt
#0  std::string::c_str (this=0x170)
    at
/usr/src/debug/gcc-4.8.3-20140911/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/basic_string.h:1801
#1  0x00000000009555b5 in cmStrictTargetComparison::operator()
(this=0xf0ec48, t1=0x65064a0, t2=0x0)
    at /home/kevin/kitware/CMake/Source/cmGeneratorTarget.cxx:2429
#2  0x000000000071ca9d in std::_Rb_tree<cmTarget const*,
std::pair<cmTarget const* const, cmGeneratorTarget*>,
std::_Select1st<std::pair<cmTarget const* const, cmGeneratorTarget*> >,
cmStrictTargetComparison, std::allocator<std::pair<cmTarget const*
const, cmGeneratorTarget*> > >::_M_lower_bound (this=0xf0ec48,
    __x=0x6effca0, __y=0xf0ec50, __k=@0x7fffffffb9d0: 0x0) at
/usr/include/c++/4.8.3/bits/stl_tree.h:1157
#3  0x0000000000715335 in std::_Rb_tree<cmTarget const*,
std::pair<cmTarget const* const, cmGeneratorTarget*>,
std::_Select1st<std::pair<cmTarget const* const, cmGeneratorTarget*> >,
cmStrictTargetComparison, std::allocator<std::pair<cmTarget const*
const, cmGeneratorTarget*> > >::find (this=0xf0ec48,
    __k=@0x7fffffffb9d0: 0x0) at /usr/include/c++/4.8.3/bits/stl_tree.h:1805
#4  0x000000000070e1ad in std::map<cmTarget const*, cmGeneratorTarget*,
cmStrictTargetComparison, std::allocator<std::pair<cmTarget const*
const, cmGeneratorTarget*> > >::find (this=0xf0ec48,
    __x=@0x7fffffffb9d0: 0x0) at /usr/include/c++/4.8.3/bits/stl_map.h:837
#5  0x0000000000700b7a in cmGlobalGenerator::GetGeneratorTarget
(this=0xf0e870, t=0x0)
    at /home/kevin/kitware/CMake/Source/cmGlobalGenerator.cxx:1624
#6  0x00000000008e0fb2 in cmComputeLinkInformation::AddSharedDepItem
(this=0x781e920,
    item="/usr/lib64/libGL.so", tgt=0x0)
    at /home/kevin/kitware/CMake/Source/cmComputeLinkInformation.cxx:764
#7  0x00000000008dffde in cmComputeLinkInformation::Compute (this=0x781e920)
    at /home/kevin/kitware/CMake/Source/cmComputeLinkInformation.cxx:513
#8  0x0000000000958118 in cmGeneratorTarget::GetLinkInformation
(this=0x6f88ac0, config="")
    at /home/kevin/kitware/CMake/Source/cmGeneratorTarget.cxx:3268
Python Exception <type 'exceptions.IndexError'> list index out of range:
#9  0x00000000009086e3 in getCompatibleInterfaceProperties
(target=0x6f88ac0,
    ifaceProperties=std::set with 0 elements, config="")
    at /home/kevin/kitware/CMake/Source/cmExportFileGenerator.cxx:532
#10 0x0000000000908e8c in
cmExportFileGenerator::PopulateCompatibleInterfaceProperties
(this=0x64a5af0,
Python Exception <type 'exceptions.IndexError'> list index out of range:
    gtarget=0x6f88ac0, properties=std::map with 1 elements)
    at /home/kevin/kitware/CMake/Source/cmExportFileGenerator.cxx:595
#11 0x00000000009e8b3d in cmExportInstallFileGenerator::GenerateMainFile
(this=0x64a5af0, os=...)
    at /home/kevin/kitware/CMake/Source/cmExportInstallFileGenerator.cxx:200
#12 0x00000000009063ab in cmExportFileGenerator::GenerateImportFile
(this=0x64a5af0)
    at /home/kevin/kitware/CMake/Source/cmExportFileGenerator.cxx:126
#13 0x000000000097b80e in cmInstallExportGenerator::GenerateScript
(this=0x64a3800, os=...)
    at /home/kevin/kitware/CMake/Source/cmInstallExportGenerator.cxx:164
#14 0x000000000079416f in cmScriptGenerator::Generate (this=0x64a3800,
os=..., config="Debug",
    configurationTypes=std::vector of length 0, capacity 0)
    at /home/kevin/kitware/CMake/Source/cmScriptGenerator.cxx:42
#15 0x00000000007335ae in cmLocalGenerator::GenerateInstallRules
(this=0xf10870)
    at /home/kevin/kitware/CMake/Source/cmLocalGenerator.cxx:411
#16 0x00000000006ff32c in cmGlobalGenerator::Generate (this=0xf0e870)
    at /home/kevin/kitware/CMake/Source/cmGlobalGenerator.cxx:1358
---Type <return> to continue, or q <return> to quit---
#17 0x000000000096cf10 in cmGlobalUnixMakefileGenerator3::Generate
(this=0xf0e870)
    at
/home/kevin/kitware/CMake/Source/cmGlobalUnixMakefileGenerator3.cxx:140
#18 0x00000000007f5b81 in cmake::Generate (this=0x7fffffffd7c0)
    at /home/kevin/kitware/CMake/Source/cmake.cxx:1773
#19 0x00000000007f59c8 in cmake::Run (this=0x7fffffffd7c0,
    args=std::vector of length 2, capacity 2 = {...}, noconfigure=false)
    at /home/kevin/kitware/CMake/Source/cmake.cxx:1756
#20 0x00000000006cfd0b in do_cmake (ac=2, av=0xf010b0)
    at /home/kevin/kitware/CMake/Source/cmakemain.cxx:330
#21 0x00000000006cf2d0 in main (ac=2, av=0xf010b0) at
/home/kevin/kitware/CMake/Source/cmakemain.cxx:190

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150813/190c13a3/attachment-0001.sig>


More information about the vtk-developers mailing list