We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In https://github.com/python/cpython/blob/main/Objects/codeobject.c#L971-L975, addrq < 0 is a condition but the assert following the branch fails when addrq < 0. This causes mypyc to segfault on 3.11 debug.
addrq < 0
The text was updated successfully, but these errors were encountered:
I think the branch is supposed to return 0 or 1. (Not sure which).
0
1
Sorry, something went wrong.
There are no tests for PyCode_Addr2Location and it is undocumented. 🤷
PyCode_Addr2Location
Returning 0 with an exception if addrq < 0 seems the better API, but at this stage in 3.11, returning 1 for success seems safer.
Returning 1 seems consistent with the original implementation for #88116, so let's go with that.
[3.11] GH-95060: Fix PyCode_Addr2Location when addrq < 0 (GH-95094)
e693f84
(cherry picked from commit a6daaf2) Co-authored-by: Ken Jin <[email protected]>
markshannon
No branches or pull requests
In https://github.com/python/cpython/blob/main/Objects/codeobject.c#L971-L975,
addrq < 0
is a condition but the assert following the branch fails whenaddrq < 0
. This causes mypyc to segfault on 3.11 debug.The text was updated successfully, but these errors were encountered: