1.5.24-2: unalbe to get a core Dump file

Massimo Carboni Massimo.Carboni@garr.it
Wed Dec 5 10:50:00 GMT 2007


Hi there,

I'm quite new on cygwin I'm trying to get a core dump for debug purpose 
without success.
My main necessity is related to a fortran code but I get the same result 
also with C code.
Have someone any suggestion and/or solution?
Many thanks in advance,
    Massimo Carboni

I wrote a simple C file:
*
main () {

  float result;
  result = 5/0;
}
*
I compile it with *gcc version 3.4.4 (cygming special, gdc 0.12, using 
dmd 0.125)*
*
# gcc -Wall foo.c
*/foo.c:1: warning: return type defaults to `int'
foo.c: In function `main':
foo.c:4: warning: division by zero
foo.c:5: warning: control reaches end of non-void function
/*
# setenv CYGWIN "error_start=C:\cygwin\bin\dump.cmd"*

where*:
$ cat /bin/dump.cmd
c:\cygwin\bin\dumper.exe
*
when I run *a.exe *I got:

*$ ./a.exe
*** starting debugger for pid 3412, tid 3056
      3 [main] a 3600 try_to_debug: Failed to start debugger, Win32 error 5
*** continuing pid 3412 from debugger call (0)
*
the system produce a .file:* a.exe.stackdump *that contain the following 
information*

$ cat a.exe.stackdump
Exception: STATUS_INTEGER_DIVIDE_BY_ZERO at eip=00401089
eax=00000005 ebx=00000000 ecx=00000001 edx=00000000 esi=611001A0 
edi=00401350
ebp=0022CCE8 esp=0022CCD0 
program=C:\cygwin\home\carboni\FLUKA\TEST\a.exe, pid 3600, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022CCE8  00401089  (00000001, 61168928, 00660090, 0022CC70)
0022CD98  61006198  (00000000, 0022CDD0, 61005510, 0022CDD0)
61005510  61004416  (0000009C, A02404C7, E8611001, FFFFFF48)
 208009 [main] a 3600 _cygtls::handle_exceptions: Error while dumping 
state (probably corrupted stack)
*** starting debugger for pid 3412, tid 3056
 224861 [main] a 3600 try_to_debug: Failed to start debugger, Win32 error 5
*** continuing pid 3412 from debugger call (0)



*
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20071205/44f00c85/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list