[cfe-dev] Uncaught exceptions
Broes De Cat
broes.decat at gmail.com
Tue Jun 5 04:57:10 PDT 2012
On 4 June 2012 20:34, John McCall <rjmccall at apple.com> wrote:
> On Jun 4, 2012, at 5:29 AM, Broes De Cat wrote:
>
> On 4 June 2012 11:49, Anton Korobeynikov <anton at korobeynikov.info> wrote:
>
>> Hello
>>
>> > When using clang++ 3.1 to compile our project, none of the exceptions
>> thrown
>> > in execute gets caught (which are IdpExceptions), instead the
>> executable is
>> > terminated each time with an uncaught exception.
>> It's hard to tell until you at least specify the platform you're checking.
>>
> The platform Linux.
>
>
> Please be more specific. What distribution, what version of it, and (most
> importantly) what architecture?
>
Ubuntu 12.04 32 bit on a 64 bit architecture.
> Some more testing showed the issue is more specific:
> Given the stack
> c++ code
> c code
> c++ code
>
> An expection thrown by the highest block c++ code is not code by the
> lowest c++ block but instead goes straight into terminating the program.
> (the c code is the lua library)
>
> Is clang compiling the C code? The most obvious option is that we're not
> compiling that code with the tables necessary to unwind through it. Does
> it work if you add -fexceptions or -munwind-tables to your CFLAGS?
>
Clang is compiling the C code.
I have resolved my issue by compiling the intermediate library also as C++.
When I find some time, I will try the proposed compiler options.
Broes
> John.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120605/3b6acf02/attachment.html>
More information about the cfe-dev
mailing list