[CMake] GLOB segmentation fault

pepone.onrez pepone.onrez at gmail.com
Wed Feb 20 13:13:20 EST 2008


On Tue, Feb 19, 2008 at 9:49 PM, Alexander Neundorf <a.neundorf-work at gmx.net>
wrote:
>Yes, crashes with 2.4.6, works with cvs.
>Can you please check with 2.4.8 ?

I updated to 2.4.8 crash still reproducible here is the output

pepone at sirius ~/kk/cmake-glob-bug/build $ cmake --version
cmake version 2.4-patch 8
pepone at sirius ~/kk/cmake-glob-bug/build $ cmake ../
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
Segmentation fault

pepone at sirius ~/kk/cmake-glob-bug/build $ gdb cmake
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-pc-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run ..
Starting program: /usr/bin/cmake ..
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works

Program received signal SIGSEGV, Segmentation fault.
0x081978eb in cmsys::RegularExpression::find ()
(gdb) bt
#0  0x081978eb in cmsys::RegularExpression::find ()
#1  0x08196956 in cmsys::Glob::ProcessDirectory ()
#2  0x08196c75 in cmsys::Glob::FindFiles ()
#3  0x0811c7c0 in cmFileCommand::HandleGlobCommand ()
#4  0x0811e87c in cmFileCommand::InitialPass ()
#5  0x0812f948 in cmCommand::InvokeInitialPass ()
#6  0x080e23f1 in cmMakefile::ExecuteCommand ()
#7  0x080e4384 in cmMakefile::ReadListFile ()
#8  0x0816d13e in cmLocalGenerator::Configure ()
#9  0x08175398 in cmLocalUnixMakefileGenerator3::Configure ()
#10 0x08156721 in cmGlobalGenerator::Configure ()
#11 0x08109b2b in cmake::Configure ()
#12 0x0810d4bd in cmake::Run ()
#13 0x080d3988 in do_cmake ()
#14 0x080d3c34 in main ()
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080220/4ecb7985/attachment.htm


More information about the CMake mailing list