[LLVMdev] object file/linking is missing my exception handlers

edA-qa mort-ora-y eda-qa at disemia.com
Thu Apr 11 22:18:14 PDT 2013


In appears, as additional error I had, that the JIT is totally okay with
calling _Unwind_Resume on an exception which has already been handled.
When this is done it behaves as rethrowing the same exception (it
seems). In the GCC/ELF executable this results in a segmentation fault.

So it just appears in all the JIT handling of exceptions is rather
different, perhaps more lenient than exec code. This is very strange of
course since my program calling the JIT is linked using the same GCC,
thus one would assume the _Unwind_ functions are exactly the same.
Perhaps just the EH table information is just layed out differently.


On 12/04/13 06:00, edA-qa mort-ora-y wrote:
> I can confirm now that my personality handler is invoked (I call
> setHasUWTable on the functions now, but I'm not sure if that was the
> difference).  In any case it appears the behaviour of the
> tables/handling is slightly different between the JIT and GCC linked.
> I'm trying to figure out what this is now.


-- 
edA-qa mort-ora-y
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130412/d7ea9595/attachment.sig>


More information about the llvm-dev mailing list