gh-152156: Fix a crash in interpeters.create under limited memory conditions - #152163
Conversation
…mory conditions
|
Are you sure that |
|
|
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
GH-152268 is a backport of this pull request to the 3.14 branch. |
|
GH-152269 is a backport of this pull request to the 3.15 branch. |
|
GH-152270 is a backport of this pull request to the 3.13 branch. |
In
handle_channel_errorwe already set an error. When called the second time, we get end up witherr == 0and run this code:which will fail, because exception was already set by the first error. So, there's no need to call it twice.
Modules/_interpchannelsmodule.c#152156