[CMake] CPack : seg fault
Bill Hoffman
bill.hoffman at kitware.com
Thu Mar 6 11:34:42 EST 2008
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.
-Bill
More information about the CMake
mailing list