-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
use string_print() in gdb #47882
Comments
"pyo" macro from gdbinit (see bpo-3631) uses _PyObject_Dump() to display object : Fatal Python error: PyEval_SaveThread: NULL tstate Workaround: ensure GIL before Py_BEGIN_ALLOW_THREADS... That sounds I guess that the issue is very specific to (gdb) debugging and should |
I once fell into the same issue, but the patch should modify string_print() is not the only function called by _PyObject_Dump, by far... And beware that many people routinely run python in "debug mode" outside |
Oh! I have a better idea: why not patching _PyObject_Dump() instead of |
Can anyone review my new patch? |
The patch is fine. |
Can anyone apply this patch? Or explain me why it can not be applied? |
Committed in r67802. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: