trying to debug latest release candidate of netcdf
I hit this SIGSEGV before reaching main
$ gdb .libs/ctest.exe
GNU gdb (GDB) Cygwin 7.9.1-1
.....
Reading symbols from .libs/ctest.exe...done.
(gdb) break main
Breakpoint 1 at 0x100401171: file
/pub/devel/netcdf/prova/netcdf-c-4.4.0-rc2/ncdump/ctest.c, line 32.
(gdb) run
Starting program:
/cygdrive/e/cyg_pub/devel/netcdf/prova/netcdf-c-4.4.0-rc2_build64/ncdump/.libs/ctest.exe
[New Thread 9476.0x2a88]
[New Thread 9476.0x1fa0]
[New Thread 9476.0x9a8]
Program received signal SIGSEGV, Segmentation fault.
___chkstk_ms () at
/usr/src/debug/gcc-4.9.3-1/libgcc/config/i386/cygwin.S:146
146 orq $0x0, (%rcx) /* probe there */
I thought it was a stack issue and I raised from 2M to 8M
SizeOfStackReserve 0000000000200000
SizeOfStackReserve 00000000007a1200
with no success.
May be it is not a netcdf bug ? Ideas what to look for ?
$ uname -svr
CYGWIN_NT-6.1 2.0.4(0.287/5/3) 2015-06-09 12:22
In addition there is a problem with gcc-debuginfo
$ cygcheck -l gcc-debuginfo |grep cygwin.S
/usr/src/debug/gcc-4.9.3-1/libgcc/config/i386/cygwin.S
(gdb) break ___chkstk_ms
Breakpoint 2 at 0x100407a60: ___chkstk_ms. (5 locations)
(gdb) run
Starting program:
/cygdrive/e/cyg_pub/devel/netcdf/prova/netcdf-c-4.4.0-rc2_build64/ncdump/.libs/ctest.exe
[New Thread 6656.0x2980]
Breakpoint 2, ___chkstk_ms () at ../../../libgcc/config/i386/cygwin.S:137
137 ../../../libgcc/config/i386/cygwin.S: No such file or directory.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple