Closed petrasvestartas closed 1 year ago
It would be great if someone could tell how to debug segmention fault errors.
Found the error, I used printf()
until I found the issue.
The vector was empty while I was trying to get the last element of it.
MSVC ingores such error, Clang does not. Pfew...
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
The most recent
Problem description
I pybinded C++ methods, all of them works except on of them, that produces a "Segmentation fault". What could be a cause of this error and how to debug it?
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression