public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: Cygwin and stdexcept bug ?
Date: Thu, 10 Oct 2019 11:07:00 -0000	[thread overview]
Message-ID: <20191010200723.db9f1cd19883a987e198eca4@nifty.ne.jp> (raw)
In-Reply-To: <000001d57e81$800611a0$801234e0$@samsung.com>

On Wed, 9 Oct 2019 12:11:13 +0300
"Pavel Fedin" wrote:
>  Hello everyone!
> 
>  On Linux if a C++ application throws uncaught error, there's explanation given:
> --- cut ---
> terminate called after throwing an instance of 'std::runtime_error'
>   what():  Just throw up
> Aborted
> --- cut ---
> 
>  On 64-bit Cygwin the same code simply silently aborts, giving no hints. I've tried on 32 bits; everything seems to work. However i
> haven't updated my 32-bit install for ages; may be something has changed.
>  Is it a bug or feature?
> 
>  My test code is:
> --- cut ---
> #include <stdexcept>
> #include <iostream>
> 
> int main(void)
> {
>   throw std::runtime_error("Just throw up");
>   std::cout << "What ???\n";
>   return 0;
> }
> --- cut ---

I confirmed this problem is not a pseudo console related issue.
This occurs even with Cygwin 3.0.7 (x86_64).

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

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

      reply	other threads:[~2019-10-10 11:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191009091114eucas1p147c56151289433e66189371bb647eb89@eucas1p1.samsung.com>
2019-10-09  9:11 ` Pavel Fedin
2019-10-10 11:07   ` Takashi Yano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191010200723.db9f1cd19883a987e198eca4@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).