[BUG]: Using Virtual Inheritance and Multiple Inheritance Together Can Cause Crashes #5479
Open
2 of 3 tasks
Labels
triage
New bug, unverified
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.13.6
Problem description
Environment:
Issue: When exporting a C++ class that uses virtual inheritance of multiple base classes through Pybind11, deleting the class object in Python code causes a crash.
Steps to Reproduce:
Expected Behavior: The class object should be deleted without causing a crash.
Actual Behavior: Deleting the class object in Python code causes a crash, when del derived manual or exit test function.
Additional Information: Removing virtual inheritance from the C++ class resolves the issue.
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: