Replies: 2 comments
-
I couldn't find any info on |
Beta Was this translation helpful? Give feedback.
0 replies
-
To answer my own question - I was missing a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am having problem with a segfault which I don't know where to look for. It seems to be segfault'tiing in code which is not currently explicitly running, so it sounds like a destructor / reference count issue. Here is the GDB trace:
What I am doing in this script, is having registered some callback function via ctypes, the callback function runs and seems to be returning to the C-side successfully. However, it then somehow dies and segfaults in the pybind11-code.
The callback is a ctypes callback, but it creates some pybind11 objects, and hope to hang onto them until the next callback. There are two ctypes callbacks, the first interacts with pybind11 somewhat, and hopes to keep some of the objects (via assigning to global, etc) until the 2nd ctypes callback, if that makes sense?
The first callback is fully successful and returns, but then the script segfaults with
this stack trace.
Beta Was this translation helpful? Give feedback.
All reactions