[CMake] GLOB segmentation fault

pepone.onrez pepone.onrez at gmail.com
Mon Feb 18 22:59:52 EST 2008


pepone at sirius ~/kk/cmake-glob-bug $ cat CMakeLists.txt
FILE (GLOB TESTS ./test/ *.cpp)

ls -liha test/
total 0
3635635 drwxr-xr-x 3 pepone pepone  72 2008-02-19 04:56 .
 998787 drwxr-xr-x 4 pepone pepone 160 2008-02-19 04:52 ..
3635679 drwxr-xr-x 2 pepone pepone  48 2008-02-19 04:56 .svn


Problem seems to appear when test contains directories files that`s begin
with '.'

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)
-- 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.
0x0818cdb5 in cmsys::RegularExpression::find ()
(gdb) bt
#0  0x0818cdb5 in cmsys::RegularExpression::find ()
#1  0x0818be1e in cmsys::Glob::ProcessDirectory ()
#2  0x0818c13d in cmsys::Glob::FindFiles ()
#3  0x08111e38 in cmFileCommand::HandleGlobCommand ()
#4  0x08113ef4 in cmFileCommand::InitialPass ()
#5  0x08124f9c in cmCommand::InvokeInitialPass ()
#6  0x080d86bd in cmMakefile::ExecuteCommand ()
#7  0x080db0b4 in cmMakefile::ReadListFile ()
#8  0x08162502 in cmLocalGenerator::Configure ()
#9  0x0816ab8a in cmLocalUnixMakefileGenerator3::Configure ()
#10 0x0814c28b in cmGlobalGenerator::Configure ()
#11 0x080ff7bf in cmake::Configure ()
#12 0x08102fd9 in cmake::Run ()
#13 0x080c98e8 in do_cmake ()
#14 0x080c9b94 in main ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080219/94b1bb65/attachment.htm


More information about the CMake mailing list