-
Notifications
You must be signed in to change notification settings - Fork 777
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
Importing mxnet causes a segfault on exit #1044
Comments
Thanks for reporting. I took a quick attempt to debug this and get the same crash. I'll leave this open in case upstream resolving that issue does not fix the problem. |
So I understand it can be an upstream bug, but we really need to call |
Without |
Downgrading to a slightly older version of mxnet seems to work:
The |
Yes I agree that we're correct to be calling |
This is probably fixed by apache/mxnet#18768 |
@leezu I retried a from-source build with that patch merged, and can confirm I no longer see any issues with the above sample program. Many thanks! |
🐛 Bug Reports
🌍 Environment
rustc --version
): 1.43.0version = "0.x.y"
withgit = "https://github.com/PyO3/pyo3")?
: Yes💥 Reproducing
MXnet version: 1.6.0, installed via pip:
pip3 install mxnet
Minimal reproduction:
On exit:
Debugging leads us to this line: https://github.com/apache/incubator-mxnet/blob/a0e67353fe81ed97fc7aef2d8429a93dc035a394/src/c_api/c_api.cc#L1318.
Running
import mxnet
directly in python (and exiting the interpreter) exits normally.Strangely, on Python 3.8 we get a
corrupted double-linked list
instead.I realize that mxnet is absolutely huge, but thought you guys might be interested in knowing about a specific edge-case which causes problems for pyo3. Of course, if you guys are able to provide a bit of insight that'd be super helpful. :) Thank you!
The text was updated successfully, but these errors were encountered: