[CMake] CPack : seg fault

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Mar 6 11:40:07 EST 2008


On Thu, Mar 6, 2008 at 5:34 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>
> Mathieu Malaterre wrote:
>  > Hi,
>  >
>  >   I am getting a seg fault somewhere in CPack (CVS HEAD and cmake
>  > 2.4.7) on cygwin, but even with a debug build of CMake I cannot get a
>  > nice backtrace (*). Has anyone any suggestion on how to deubg this
>  > thing ?
>  >
>  > Thanks
>  > -Mathieu
>  >
>  > Run CPack packaging tool...
>  > /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe --config /home/mmalaterre/Proj
>  > ects/gdcm/trunk/cygwin/CPackConfig.cmake
>  > CPack: Create package using CygwinBinary
>  >      24 [main] cpack 5096 _cygtls::handle_exceptions: Error while dumping state
>  > (probably corrupted stack)
>  > make: *** [package] Segmentation fault (vidange mémoire)
>  >
>  > mmalaterre at bender ~/Projects/gdcm/trunk/cygwin
>  > $ gdb /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe
>  > GNU gdb 6.5.50.20060706-cvs (cygwin-special)
>  > Copyright (C) 2006 Free Software Foundation, Inc.
>  > GDB is free software, covered by the GNU General Public License, and you are
>  > welcome to change it and/or distribute copies of it under certain conditions.
>  > Type "show copying" to see the conditions.
>  > There is absolutely no warranty for GDB.  Type "show warranty" for details.
>  > This GDB was configured as "i686-pc-cygwin"...
>  > (gdb) r --config /home/mmalaterre/Projects/gdcm/trunk/cygwin/CPackConfig.cmake
>  >
>  > Starting program: /home/mmalaterre/Projects/CMake-cyg/bin/cpack.exe --config /ho
>  > me/mmalaterre/Projects/gdcm/trunk/cygwin/CPackConfig.cmake
>  > Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
>  > Loaded symbols for /cygdrive/c/WINDOWS/system32/kernel32.dll
>  > Loaded symbols for /usr/bin/cygwin1.dll
>  > Loaded symbols for /cygdrive/c/WINDOWS/system32/advapi32.dll
>  > Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
>  > Loaded symbols for /cygdrive/c/WINDOWS/system32/secur32.dll
>  > CPack: Create package using CygwinBinary
>  >      15 [main] cpack 5856 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_V
>  > IOLATION
>  >     607 [main] cpack 5856 open_stackdumpfile: Dumping stack trace to cpack.exe.s
>  > tackdump
>  > 1482308 [main] cpack 5856 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_V
>  > IOLATION
>  > 1504326 [main] cpack 5856 _cygtls::handle_exceptions: Error while dumping state
>  > (probably corrupted stack)
>  >
>  > Program received signal SIGSEGV, Segmentation fault.
>  > 0x610164e5 in stack_info::walk () from /usr/bin/cygwin1.dll
>  > (gdb) bt
>  > #0  0x610164e5 in stack_info::walk () from /usr/bin/cygwin1.dll
>  > #1  0x7c859dcc in OutputDebugStringA ()
>  >    from /cygdrive/c/WINDOWS/system32/kernel32.dll
>  > #2  0x40010006 in ?? ()
>  > #3  0x00000000 in ?? ()
>  > (gdb)
>  >
>  Please create a bug report and attach a way to reproduce the problem, if
>  at all possible in a small example.  CMake itself uses the cygwin
>  packager, so I know it works for that.


svn co https://gdcm.svn.sourceforge.net/svnroot/gdcm/trunk
mkdir bin
cd bin
cmake ../trunk
make && make package

Let me know if you can reproduce the issue.

Thanks,
-Mathieu


-- 
Mathieu


More information about the CMake mailing list