Failure to catch C++ exception in Haskell on OS X
Adam Sandberg Eriksson
adam at sandbergericsson.se
Fri Jan 4 22:46:00 UTC 2019
A ticket which seems to cover the same problem: https://ghc.haskell.org/trac/ghc/ticket/11829
—Adam
> On 4 Jan 2019, at 16:50, Bas van Dijk <v.dijk.bas at gmail.com> wrote:
>
> On Fri, 4 Jan 2019 at 14:15, Gabor Greif <ggreif at gmail.com> wrote:
>> maybe some DWARF unwind tables are not correctly installed in OS X?
>
> Hi Gabor, thanks, I will look into that.
>
>> Do intra-C++ exception catching work in your example?
>
> Yes, I have a C++ executable foo[1] that links with libfoo that
> correctly catches the exception:
>
>> $(nix-build --no-link -A foo)/bin/test
> ...
> Whoops!
>
> Since it's working in pure C++ I suspect it has something to do with
> how GHC calls either the C++ compiler or linker.
>
> Bas
>
> [1] https://github.com/basvandijk/darwin-cxx-exception-bug/blob/master/foo/test.cpp
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
More information about the ghc-devs
mailing list