-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault when __repr__ throws #2383
Comments
This feels familiar, but I can't remember whether that's because a) we talked about it on Gitter or in an issue, in the context of something else, b) there's an open issue about it, or c) there's an open PR dealing with it. EDIT: I was/am probably thinking about #2317 |
I thought it might be due there not being a try block around the call to py::repr in pybind11.h:231 but it seems to be something else. |
Line 779, actually. |
Issue description
If a
__repr__
throws, then passing an invalid object causes a segfault.Reproducible example code
The text was updated successfully, but these errors were encountered: