public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Pavel Fedin" <p.fedin@samsung.com>
To: <cygwin@cygwin.com>
Subject: Cygwin and stdexcept bug ?
Date: Wed, 09 Oct 2019 09:11:00 -0000	[thread overview]
Message-ID: <000001d57e81$800611a0$801234e0$@samsung.com> (raw)
In-Reply-To: <CGME20191009091114eucas1p147c56151289433e66189371bb647eb89@eucas1p1.samsung.com>

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

Kind regards,
Pavel Fedin
Senior Engineer
Samsung Electronics Research center Russia



--
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-09  9:11 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 [this message]
2019-10-10 11:07   ` Takashi Yano

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='000001d57e81$800611a0$801234e0$@samsung.com' \
    --to=p.fedin@samsung.com \
    --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).