This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Cygwin and stdexcept bug ?
- From: "Pavel Fedin" <p dot fedin at samsung dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 9 Oct 2019 12:11:13 +0300
- Subject: Cygwin and stdexcept bug ?
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20191009091114euoutp016b778517b1c02cacc4a5667e83d61249~L74rfhBwS0885008850euoutp01a
- References: <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