From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Exception handling in Ada -> C++ call? Date: Fri, 18 Oct 2013 15:46:56 +0100 Organization: A noiseless patient Spider Message-ID: References: <269ef690-f594-4dda-b037-bf30e688dd2c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="7958ea92c2d947b309639deef600a8ff"; logging-data="14367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R+4hZ6BCUpWYCU5ykN1bsZt9cT3TayDg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:lGiK6nvhnMYQe9pKxtJ/O2RrsXQ= sha1:OFx2KwfjqNi+Ach7Y6VqdGggBJw= Xref: news.eternal-september.org comp.lang.ada:17460 Date: 2013-10-18T15:46:56+01:00 List-Id: kevin.a.peterson@gmail.com writes: > When I build this and run testada, I get "terminate called after > throwing an instance of 'int'," which I expect, however the > application doesn't actually exit but spins a core to 100% usage until > I kill it. Also interesting: If I replace the try block with On Mac OS X (ML, Darwin 12.5.0) it doesn't spin: with GCC 4.8.0, $ ./testada Calling TestCpp terminate called after throwing an instance of 'int' raised PROGRAM_ERROR : unhandled signal and with GNAT GPL 2013, $ ./testada Calling TestCpp libc++abi.dylib: terminate called throwing an exception raised PROGRAM_ERROR : unhandled signal