public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: cygwin@cygwin.com
Subject: Re: Unexpected zero return code from `throw std::runtime_error`
Date: Sat, 02 Jul 2022 16:14:51 +0200	[thread overview]
Message-ID: <426b02170703066d930c6f3a81f3ef9e686f69b6.camel@Askesis.nl> (raw)
In-Reply-To: <20220702132158.g6u7wo2lnokgezoc@lucy.dinwoodie.org>

Hi,

The exception is not handled by the program. In that case "[[noreturn]]
void std::terminate()" is called by the C++-runtime. std::terminate
calls the currently installed std::terminate_handler. The default
std::terminate_handler calls std::abort. After calling std::abort an
implementation defined status is returned to the host environment that
indicates unsuccessful execution.

So basically both programs do the right thing.

-- 
Groeten,

Joost Kraaijeveld


  reply	other threads:[~2022-07-02 14:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-02 13:21 Adam Dinwoodie
2022-07-02 14:14 ` Joost Kraaijeveld [this message]
2022-07-02 14:29   ` Adam Dinwoodie
2022-07-02 15:56 ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2022-07-02 20:19 ` Csaba Raduly
2022-07-02 21:34   ` Adam Dinwoodie
2022-07-02 22:37     ` Csaba Raduly
2022-07-03 14:35       ` Adam Dinwoodie

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=426b02170703066d930c6f3a81f3ef9e686f69b6.camel@Askesis.nl \
    --to=j.kraaijeveld@askesis.nl \
    --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).