The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15029 ====================================================================== Reported By: darlingm Assigned To: ====================================================================== Project: CMake Issue ID: 15029 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2014-07-18 15:17 EDT Last Modified: 2014-07-18 15:17 EDT ====================================================================== Summary: Segmentation fault handling packages (infinite loop, ?perhaps fills up memory?) Description: Loading gdb for cmake and the associated dropped core file gives:
Program terminated with signal SIGSEGV, Segmentation fault. http://www.cmake.org/Bug/view.php?id=0 0x0000003646e576b0 in _IO_vfscanf_internal () from /lib64/libc.so.6 (gdb) bt http://www.cmake.org/Bug/view.php?id=0 0x0000003646e576b0 in _IO_vfscanf_internal () from /lib64/libc.so.6 http://www.cmake.org/Bug/view.php?id=1 0x0000003646e62eb5 in vsscanf () from /lib64/libc.so.6 http://www.cmake.org/Bug/view.php?id=2 0x0000003646e5dfe8 in sscanf () from /lib64/libc.so.6 http://www.cmake.org/Bug/view.php?id=3 0x00000000007b89d1 in cmFindPackageCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=4 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=5 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=6 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () http://www.cmake.org/Bug/view.php?id=7 0x00000000007bce56 in cmFindPackageCommand::ReadListFile(char const*, cmFindPackageCommand::PolicyScopeRule) () http://www.cmake.org/Bug/view.php?id=8 0x00000000007bb531 in cmFindPackageCommand::FindModule(bool&) () http://www.cmake.org/Bug/view.php?id=9 0x00000000007ba1d4 in cmFindPackageCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=10 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=11 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=12 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () http://www.cmake.org/Bug/view.php?id=13 0x00000000007bce56 in cmFindPackageCommand::ReadListFile(char const*, cmFindPackageCommand::PolicyScopeRule) () http://www.cmake.org/Bug/view.php?id=14 0x00000000007bb531 in cmFindPackageCommand::FindModule(bool&) () ........... this InitialPass(http://www.cmake.org/Bug/view.php?id=3)->FindModule(http://www.cmake.org/Bug/view.php?id=8) repeats ........... http://www.cmake.org/Bug/view.php?id=31413 0x00000000007ba1d4 in cmFindPackageCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=31414 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=31415 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=31416 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () http://www.cmake.org/Bug/view.php?id=31417 0x00000000006b1ac4 in cmLocalGenerator::ReadInputFile() () http://www.cmake.org/Bug/view.php?id=31418 0x00000000006b163e in cmLocalGenerator::Configure() () http://www.cmake.org/Bug/view.php?id=31419 0x00000000008b33c7 in cmLocalUnixMakefileGenerator3::Configure() () http://www.cmake.org/Bug/view.php?id=31420 0x00000000006ccdfa in cmMakefile::ConfigureSubDirectory(cmLocalGenerator*) () http://www.cmake.org/Bug/view.php?id=31421 0x00000000006cd224 in cmMakefile::AddSubDirectory(char const*, char const*, bool, bool, bool) () http://www.cmake.org/Bug/view.php?id=31422 0x000000000079b462 in cmAddSubDirectoryCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=31423 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=31424 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () http://www.cmake.org/Bug/view.php?id=31425 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () http://www.cmake.org/Bug/view.php?id=31426 0x00000000006b1ac4 in cmLocalGenerator::ReadInputFile() () http://www.cmake.org/Bug/view.php?id=31427 0x00000000006b163e in cmLocalGenerator::Configure() () http://www.cmake.org/Bug/view.php?id=31428 0x00000000008b33c7 in cmLocalUnixMakefileGenerator3::Configure() () http://www.cmake.org/Bug/view.php?id=31429 0x000000000087edea in cmGlobalGenerator::Configure() () http://www.cmake.org/Bug/view.php?id=31430 0x000000000089bca2 in cmGlobalUnixMakefileGenerator3::Configure() () http://www.cmake.org/Bug/view.php?id=31431 0x000000000076657e in cmake::ActualConfigure() () http://www.cmake.org/Bug/view.php?id=31432 0x0000000000765ec2 in cmake::Configure() () http://www.cmake.org/Bug/view.php?id=31433 0x0000000000766d5c in cmake::Run(std::vector<std::string, std::allocator<std::string> > const&, bool) () http://www.cmake.org/Bug/view.php?id=31434 0x0000000000681031 in do_cmake(int, char const* const*) () http://www.cmake.org/Bug/view.php?id=31435 0x00000000006808b5 in main () Steps to Reproduce: Extract attached codeTestPackages.tar.gz. mkdir build && cd build && cmake .. Additional Information: I'm attempting to use packages in my build system for the first time. I have no doubt I've done something wrong in the CMakeLists.txt files or FindLIB.cmake file, but I've caused CMake to segmentation fault with a very small reduced case. (Entire project is 41 lines.) ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2014-07-18 15:17 darlingm New Issue 2014-07-18 15:17 darlingm File Added: codeTestPackages.tar.gz ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
