delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/18/12:47:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 18 Jul 2001 20:43:01 +0400
From: egor duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.53 RC/4)
Reply-To: egor duda <cygwin AT cygwin DOT com>
Organization: deo
X-Priority: 3 (Normal)
Message-ID: <19211392401.20010718204301@logos-m.ru>
To: Tak Ota <Takaaki DOT Ota AT am DOT sony DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: cannot core dump
In-Reply-To: <20010718.070805.01370796.Takaaki.Ota@am.sony.com>
References: <20010717 DOT 140038 DOT 42414656 DOT Takaaki DOT Ota AT am DOT sony DOT com>
<174146998092 DOT 20010718122642 AT logos-m DOT ru>
<20010718 DOT 070805 DOT 01370796 DOT Takaaki DOT Ota AT am DOT sony DOT com>
MIME-Version: 1.0

Hi!

Wednesday, 18 July, 2001 Tak Ota Takaaki DOT Ota AT am DOT sony DOT com wrote:

TO> Hi,

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

TO> Regards,

TO> -Tak


TO> From: egor duda <deo AT logos-m DOT 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 DOT Ota AT am DOT sony DOT 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 AT logos-m DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019