Closed beckermr closed 4 years ago
It doesn't work with any of the libcxx builds?
Yup. Not even the OSX system ones. It does work with the linux GCC builds in a docker container, so the code is not wrong. I've tried a bunch of compilation options and cannot get it work.
How about with system python and system clang?
Nope. Doesn't work there either. Interestingly, on linux you have to have imported the exception_test module that contains the first pybind11 wrapper for things to work.
This seems to indicate to me that the RTTI info is not propagating properly in clang on OSX. This may not be a conda compiler issue or even an upstream bug. It could very well be that I am building the code wrong.
This example is working now.
Issue: I finally got this test case finished. Interestingly, it now fails completely instead of only partially like last time.
The code is here: https://github.com/beckermr/misc/tree/master/work/pybind11_conda_exceptions The readme has a basic description of how to run the test.
On osx I get (with either the system or the conda compiler)
The runtime error is pybind11 doing its own thing with the uncaught exception in the exception translator block.
On linux, it works fine
Environment (
conda list
):Details about
conda
and system (conda info
):cc @isuruf