<div dir="ltr"><div>Dear GHC Devs,</div><div><br></div><div>I'm debugging an issue in our haskell-opencv library where a C++ exception that is thrown by the OpenCV C++ library isn't caught by the C++ try...catch block we have inlined in our Haskell code using inline-c-cpp. This results in the process terminating by SIGABRT.</div><div><br></div><div>Note that this only happens on OS X. In Linux the exception is caught correctly.</div><div dir="ltr"><br></div><div>I wrote a minimal isolated test case (which doesn't use OpenCV) at:</div><div dir="ltr"><br></div><div dir="ltr">  <a href="https://github.com/basvandijk/darwin-cxx-exception-bug">https://github.com/basvandijk/darwin-cxx-exception-bug</a><br></div><div dir="ltr"><br></div><div>I wrote some instructions in the README on how to reproduce this and included some debugging notes.</div><div><br></div><div>I'm not sure the bug is caused by a mis-configuration in my code or if it's a bug in nixpkgs, Cabal or GHC. Any idea what could be causing this?</div><div><br></div><div>Bas</div><div dir="ltr"><br></div></div>