-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 #139384
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
GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 #139384
Conversation
|
PR ready to review, please take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
|
@Fidget-Spinner Thanks for review! I tried to fix |
This reverts commit 58b4564.
|
I revert it because it was not right. |
|
|
|
Any suggestions for a better name are welcome, as it is obviously not clear. |
|
@markshannon What do you think about adding new function |
That sounds good. Leave |
|
@markshannon Please take a look. I have added |
|
Thanks for doing this |
|
Thanks everyone for reviews! |
|
There are two problems:
dump_stack/dump_itemshould ignore items that pushed on the stack withPyStackRef_WrapPyStackRef_IsErrorshould test onlyPy_TAG_BITSof.bitsnot whole.bitsvalueAlso, PyStackRef_IsValid should be fixed accordingly.
PYTHON_LLTRACE=4segfaults #139193