RE: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-19 Thread Pavel Fedin
Hello! I've done some more research on this particular bug. > > > I have an impression that it has to do with the bug I previously reported > > > (and someone here claimed he could reproduce it) > > > > Please provide a link to the Cygwin ML message; is it this, confirmed by > > Takashi > > Yano

RE: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-19 Thread Pavel Fedin
Hello! > Confirmed with clang++ 8 Good! Meanwhile i've tried to investigate it myself a bit and here's some more info: 1. With clang 8 __cxa_throw() ends up in Windows RaiseException(); with clang 5 it simply doesn't make it there. I guess there's some problem with interpreting unwind info.

Re: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-18 Thread Brian Inglis
On 2019-12-18 08:10, Pavel Fedin wrote: > Well, it turned out more complicated than i thought. Here is the reduced > reproducer: > --- cut catch_test.cpp --- > #include > #include > #include > #include > #include > > void from_file(const std::string &filepath, std::vector &data); > > int mai

Re: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-18 Thread Dominik Strasser
0 exited with status 0x20474343 > --- cut --- > So, a Windows exception is reported, then the whole thing silently quits. > I have an impression that it has to do with the bug i previously reported > (and someone here claimed he could reproduce it) > > Kind regards, > Pavel

RE: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-18 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin
The problem maybe in ABI incompatibility with older C++ (not C++11-compliant) run-time libraries: In C++11 class inheritance for many standard exceptions has changed greatly, so all the run-time libraries must be recompiled to match the inheritance seen by the compiler in the header files (when

RE: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-18 Thread Pavel Fedin
com [mailto:cygwin-ow...@cygwin.com] On Behalf Of > Brian Inglis > Sent: Wednesday, December 18, 2019 3:05 AM > To: cygwin@cygwin.com > Subject: Re: [BUG] try..catch does not work if compiled with clang 8.0 > > On 2019-12-17 13:51, Csaba Ráduly wrote: > > On 17/12/2019 17:29,

Re: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-17 Thread Brian Inglis
On 2019-12-17 13:51, Csaba Ráduly wrote: > On 17/12/2019 17:29, Brian Inglis wrote: >> On 2019-12-17 02:35, Pavel Fedin wrote: >>> I haven't upgraded for a while and today i finally decided to do so. After >>> rebuilding by project with clang++ 8.0 i found out that try...catch >>> construct >>> do

Re: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-17 Thread Csaba Ráduly
On 17/12/2019 17:29, Brian Inglis wrote: On 2019-12-17 02:35, Pavel Fedin wrote: I haven't upgraded for a while and today i finally decided to do so. After rebuilding by project with clang++ 8.0 i found out that try...catch construct doesn't work. The program just gets silently aborted. Switched

Re: [BUG] try..catch does not work if compiled with clang 8.0

2019-12-17 Thread Brian Inglis
On 2019-12-17 02:35, Pavel Fedin wrote: > I haven't upgraded for a while and today i finally decided to do so. After > rebuilding by project with clang++ 8.0 i found out that try...catch construct > doesn't work. The program just gets silently aborted. > Switched back to old clang++ 5.0 and it wor

[BUG] try..catch does not work if compiled with clang 8.0

2019-12-17 Thread Pavel Fedin
Hello! I haven't upgraded for a while and today i finally decided to do so. After rebuilding by project with clang++ 8.0 i found out that try...catch construct doesn't work. The program just gets silently aborted. Switched back to old clang++ 5.0 and it works. Also an old bug which i reported