delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/01/16/12:50:57

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=yadMdSG
3MJjX78YdDdOUqVeS4YqE+aNpBgF7VXaL5jvPNcXZUWkjPIF7JoCkvGgnmdmlE/n
ySTuJbIqnWxvnWqrQOJBpi/+hQM1Y80FmM65Shk99MtS3/WxAT42zxb4Uj21vtti
H3WC1XxWnMsH5Opa5u/f11vSteMiV1vanmJc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=7SHGP/yjCv4VV
4pyQaENfSMz1vI=; b=OYFuUw4HsRvQAKrjMMtr9ABQwf6J29L+pcv5LT29M4HcI
Flq6XQVMHayXL0vyMZZT+xeycbA0InVl7meTUWxDQNA7wPx9FaQg61sCo2M+pjqy
Re8gtEpJdGoeD4m268GW2Z3u2HhpnnqehBy6TGK8cqz9clbdUgxGfBR8OvdNCo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f177.google.com
X-Received: by 10.180.73.178 with SMTP id m18mr8338839wiv.65.1421430635857; Fri, 16 Jan 2015 09:50:35 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <CABsQ44Z6c3Y9xwMepP7cmf94jD4MLNc+RUyDNKunAYB8y2irgw@mail.gmail.com>
References: <CABsQ44Z6c3Y9xwMepP7cmf94jD4MLNc+RUyDNKunAYB8y2irgw AT mail DOT gmail DOT com>
From: Doug Henderson <djndnbvg AT gmail DOT com>
Date: Fri, 16 Jan 2015 10:50:15 -0700
Message-ID: <CAJ1FpuNRJdtpcaxLVnA5QDt+921nP7eULW=2L=irOM7WTEwDSw@mail.gmail.com>
Subject: Re: Stack Dump Message
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

On 16 January 2015 at 06:30, Ameen Sayegh wrote:
> hello there,

> Here is the issue:
> abort function produces the output
>     "Aborted (core dumped)"
> when I run the program on cygwin terminal while it produce
>     " 0 [main] test 1904 cygwin_exception::open_stackdumpfile: Dumping
> stack trace to test.exe.stackdump"
> when I run it on Windows CMD or Windows Explorer. Why is that? and Can
> I change it to the first format?

When a cygwin program encounters a fatal error, it attempts to call a
debugging program. It identifies the program to run by examining the
CYGWIN environment variable. See
https://cygwin.com/cygwin-ug-net/using-cygwinenv.html for details on
setting CYGWIN, especially the error_start option.

My setting for CYGWIN is ( in bash: env | grep CYGWIN )

CYGWIN=error_start=d:\\cygwin64\\bin\\dumper.exe

You can set this in the cygwin.bat file in the cygwin root directory using

set CYGWIN=error_start=d:\cygwin64\bin\dumper.exe

Or, if you use mintty or start cygwin programs from explorer or icons
or random command windows, you must set CYGWIN in the
Computer->Properties ; Advanced System Settings -> Environment
Variables (or search options in later versions of windows). Add a user
or system variable for CYGWIN with the content

 error_start=d:\cygwin64\bin\dumper.exe

Replace "d:\cygwin64" to be the root of your cygwin install instead of
mine. Note that you must use "\bin" instead of "\usr\bin" as this is a
windows path that does not know about cygwin mounts.

BTW, if you remove the "error_start" setting from the CYGWIN variable,
your programs will not create a stackdump, and will exit more quietly.

Doug

--
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

- Raw text -


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