MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015029 | CMake | CMake | public | 2014-07-18 15:17 | 2015-01-05 08:39 |
| Reporter | darlingm | ||||
| Assigned To | |||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | PC | OS | CentOS | OS Version | 5 |
| Product Version | CMake 3.0 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015029: 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. #0 0x0000003646e576b0 in _IO_vfscanf_internal () from /lib64/libc.so.6 (gdb) bt #0 0x0000003646e576b0 in _IO_vfscanf_internal () from /lib64/libc.so.6 #1 0x0000003646e62eb5 in vsscanf () from /lib64/libc.so.6 0000002 0x0000003646e5dfe8 in sscanf () from /lib64/libc.so.6 0000003 0x00000000007b89d1 in cmFindPackageCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () 0000004 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () 0000005 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () 0000006 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () 0000007 0x00000000007bce56 in cmFindPackageCommand::ReadListFile(char const*, cmFindPackageCommand::PolicyScopeRule) () 0000008 0x00000000007bb531 in cmFindPackageCommand::FindModule(bool&) () #9 0x00000000007ba1d4 in cmFindPackageCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () 0000010 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () #11 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () 0000012 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () 0000013 0x00000000007bce56 in cmFindPackageCommand::ReadListFile(char const*, cmFindPackageCommand::PolicyScopeRule) () 0000014 0x00000000007bb531 in cmFindPackageCommand::FindModule(bool&) () ........... this InitialPass(0000003)->FindModule(0000008) repeats ........... #31413 0x00000000007ba1d4 in cmFindPackageCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () #31414 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () #31415 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () #31416 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () #31417 0x00000000006b1ac4 in cmLocalGenerator::ReadInputFile() () #31418 0x00000000006b163e in cmLocalGenerator::Configure() () #31419 0x00000000008b33c7 in cmLocalUnixMakefileGenerator3::Configure() () #31420 0x00000000006ccdfa in cmMakefile::ConfigureSubDirectory(cmLocalGenerator*) () #31421 0x00000000006cd224 in cmMakefile::AddSubDirectory(char const*, char const*, bool, bool, bool) () #31422 0x000000000079b462 in cmAddSubDirectoryCommand::InitialPass(std::vector<std::string, std::allocator<std::string> > const&, cmExecutionStatus&) () #31423 0x00000000007c5b35 in cmCommand::InvokeInitialPass(std::vector<cmListFileArgument, std::allocator<cmListFileArgument> > const&, cmExecutionStatus&) () #31424 0x00000000006c80ba in cmMakefile::ExecuteCommand(cmListFileFunction const&, cmExecutionStatus&) () #31425 0x00000000006c901e in cmMakefile::ReadListFile(char const*, char const*, std::string*, bool) () #31426 0x00000000006b1ac4 in cmLocalGenerator::ReadInputFile() () #31427 0x00000000006b163e in cmLocalGenerator::Configure() () #31428 0x00000000008b33c7 in cmLocalUnixMakefileGenerator3::Configure() () #31429 0x000000000087edea in cmGlobalGenerator::Configure() () #31430 0x000000000089bca2 in cmGlobalUnixMakefileGenerator3::Configure() () #31431 0x000000000076657e in cmake::ActualConfigure() () #31432 0x0000000000765ec2 in cmake::Configure() () #31433 0x0000000000766d5c in cmake::Run(std::vector<std::string, std::allocator<std::string> > const&, bool) () #31434 0x0000000000681031 in do_cmake(int, char const* const*) () #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.) | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5195/codeTestPackages.tar.gz | ||||
| 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 | |||
| 2014-07-18 15:29 | darlingm | Note Added: 0036411 | |||
| 2014-07-18 15:39 | darlingm | Note Added: 0036412 | |||
| 2014-07-18 15:59 | darlingm | Note Added: 0036413 | |||
| 2014-07-18 16:11 | Brad King | Note Added: 0036414 | |||
| 2014-07-18 16:34 | darlingm | Note Added: 0036415 | |||
| 2014-07-18 17:17 | darlingm | Note Edited: 0036415 | bug_revision_view_page.php?bugnote_id=36415#r1527 | ||
| 2014-07-18 17:45 | darlingm | Note Edited: 0036415 | bug_revision_view_page.php?bugnote_id=36415#r1528 | ||
| 2014-07-21 09:20 | Brad King | Note Added: 0036419 | |||
| 2014-07-21 09:20 | Brad King | Status | new => resolved | ||
| 2014-07-21 09:20 | Brad King | Resolution | open => no change required | ||
| 2015-01-05 08:39 | Robert Maynard | Note Added: 0037590 | |||
| 2015-01-05 08:39 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||