-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Segmentation Fault 11 w/ Conda + Pybind11 #3907
Comments
Conda doesn't support building from python, only from Conda-build. You are likely mixing the system compilers and the conda compilers, causing the crash. Try |
I do see this issue as well on macOS x64 -- but I am pretty sure I am using the conda compilers :) I tried to add It's failing for us for |
Hm, I managed to replicate the issue with your example I've added
and removed any instances of linking to |
@wolfv thanks for this tip! I will test it out tomorrow and get back to you, that'd be awesome to have this resolved. |
In my case, |
Required prerequisites
Problem description
I have a segmentation fault on macos that only appears using the conda builds of python. I haven't been able to solve this one myself, sorry.
In short: When using the package I've built with pybind11, I can not import the libraries from python without a segfault. I've verified this with python 3.6, 3.9, 3.10, and using the latest version of pybind11. I have a stand-alone repository that reproduces this bug.
Here is the stack track when running with
lldb
, it appears to be related totake_gil
Reproducible example code
From a different directory (otherwise, it tries to import the
larcv
folder in the repo), do:And it ought to reproduce the crash.
The text was updated successfully, but these errors were encountered: