This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cannot core dump


Hi!

Wednesday, 18 July, 2001 Tak Ota Takaaki.Ota@am.sony.com wrote:

TO> Hi,

TO> Please find the attached bug.strace as you requested.

TO> Regards,

TO> -Tak


TO> From: egor duda <deo@logos-m.ru>
TO> Date: Wed, 18 Jul 2001 12:26:42 +0400
TO> Subject: Re: cannot core dump

>> Hi!
>> 
>> Wednesday, 18 July, 2001 Tak Ota Takaaki.Ota@am.sony.com wrote:
>> 
>> TO> I am struggling to make core dump.  Please let someone know what I am
>> TO> doing wrong here.
>> 
>> TO> bash-2.05$ cat bug.c
>> TO> #include <stdio.h>
>> 
>> TO> int main(int argc, char **argv)
>> TO> {
>> TO>   char *x = 0;
>> TO>   *x = '0';
>> TO>   return 0;
>> TO> }
>> TO> bash-2.05$ gcc -o bug.exe bug.c
>> TO> bash-2.05$ ./bug.exe
>> TO>       0 [main] bug 1444 handle_exceptions: Error while dumping state (probably corrupted stack)
>> 
>> this message indicates that cygwin received yet another exception when handling
>> exception. can you run 'strace -o bug.strace ./bug.exe' and send me
>> bug.strace file via personal e-mail?
>>

aha. i see now. 'error_start' program is called as
'<progam_name> <path_to crashed_executable> <pid>', whereas dumper
expects slightly different format of command line:
dumper [-c name] pid

you can create a simple wrapper, dumper_wrapper.cmd which reads:

c:\path\to\dumper\dumper.exe -d -c %1 %2

and set CYGWIN=error_start=c:\wherever\dumper_wrapper.cmd

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]