Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:DRP S17-2, DRP S17-3
-
Team:Data Release Production
Description
One frequently occurring problem with pybind11 is segfaults happening when two classes in an inheritance hierarchy have different holder types (i.e. parent has unique_ptr holder type while derived class has shared_ptr).
This ticket aims to investigate and implement (if possible) a compile time (or import time) check for matching holder types.
While this check is not strictly necessary, it would make the pybind11 stack significantly more robust.
Ok, Jim Bosch can you take a quick look at the PR?
but it is a thing to keep in mind with these kind of tickets.
I think upstream will probably think segfaults are a problem