Skip to content
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

Crash when two pybind11 modules are imported #1562

Closed
ibell opened this issue Oct 9, 2018 · 2 comments
Closed

Crash when two pybind11 modules are imported #1562

ibell opened this issue Oct 9, 2018 · 2 comments

Comments

@ibell
Copy link
Contributor

ibell commented Oct 9, 2018

I don't think I can replicate this in a simple case, but I have two modules, each that operate just fine when they are the only module imported.

Builds are inside a conda environment, with visual studio 2015 64-bit as compiler. One package is this one: https://github.com/usnistgov/CEGO and the other one is an internal C++ library with a pybind11 wrapper.

When they are both imported, like so:

import PyCEGO
import VLEIsoTracer as vle

I get a crash:

image

@ibell
Copy link
Contributor Author

ibell commented Oct 9, 2018

It seems like one library was built with commit 2bde615 and the other one was built with 51d18aa . When I sync both to master, there is no import crash. It seems like a bug that any modules compiled with pybind11 with two different commits result in a crash.

@YannickJadoul
Copy link
Collaborator

This was improved/fixed in #1012.
Meanwhile, the two commits you mention were not official releases, so you're it's not really a surprise that things don't cooperate well, then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants