Skip to content

Crash when two pybind11 modules are imported #1562

Closed

Description

@ibell

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

Activity

  1. ibell commented on Oct 9, 2018

    @ibell
    ContributorAuthor

    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.

  2. YannickJadoul commented on Jul 26, 2020

    @YannickJadoul
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions