Title: The `new_interpreter()` function incorrectly returns `_PyStatus_OK()` on some error code paths · Issue #112729 · python/cpython · GitHub
Open Graph Title: The `new_interpreter()` function incorrectly returns `_PyStatus_OK()` on some error code paths · Issue #112729 · python/cpython
X Title: The `new_interpreter()` function incorrectly returns `_PyStatus_OK()` on some error code paths · Issue #112729 · python/cpython
Description: Bug report The following code paths should probably returns some sort of exception status (possibly _PyStatus_NO_MEMORY()). cpython/Python/pylifecycle.c Lines 2084 to 2088 in a1551b4 PyInterpreterState *interp = PyInterpreterState_New();...
Open Graph Description: Bug report The following code paths should probably returns some sort of exception status (possibly _PyStatus_NO_MEMORY()). cpython/Python/pylifecycle.c Lines 2084 to 2088 in a1551b4 PyInterpreterS...
X Description: Bug report The following code paths should probably returns some sort of exception status (possibly _PyStatus_NO_MEMORY()). cpython/Python/pylifecycle.c Lines 2084 to 2088 in a1551b4 PyInterpreterS...
Opengraph URL: https://github.com/python/cpython/issues/112729
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The `new_interpreter()` function incorrectly returns `_PyStatus_OK()` on some error code paths","articleBody":"# Bug report\n\nThe following code paths should probably returns some sort of exception status (possibly `_PyStatus_NO_MEMORY()`).\n\nhttps://github.com/python/cpython/blob/a1551b48eebb4a68fda031b5ee9e5cbde8d924dd/Python/pylifecycle.c#L2084-L2088\n\nhttps://github.com/python/cpython/blob/a1551b48eebb4a68fda031b5ee9e5cbde8d924dd/Python/pylifecycle.c#L2090-L2096\n\nNote that `PyInterpreterState_New()` currently never returns NULL -- it calls `Py_FatalError()` instead -- but we should probably still handle that case as well.\n\n`_PyThreadState_New` can return NULL when out of memory.\n\ncc @ericsnowcurrently \n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-139164\n* gh-139168\n* gh-139169\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2023-12-04T22:42:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/112729/cpython/issues/112729"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:89249fe9-d46b-b0ba-c2d1-252865d71b53 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCF0:3DC17:21881B8:2DAFDD1:6A542066 |
| html-safe-nonce | ef911e662e162c202362b473c8113447357b164e3daade5abd7c7f22945e0f3c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0YwOjNEQzE3OjIxODgxQjg6MkRBRkREMTo2QTU0MjA2NiIsInZpc2l0b3JfaWQiOiIzNDgxNjQ1Mzc3MjIzNDc2MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 27fd0ead121a59ec8057664327b92028e4bac0f97be9a6cc3fdd2b9bea20e2ba |
| hovercard-subject-tag | issue:2024910516 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/112729/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ccdee3da3e784a97bf9b1e017733531c42cd4886fca8d318bf7899f8d9f003f/python/cpython/issues/112729 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ccdee3da3e784a97bf9b1e017733531c42cd4886fca8d318bf7899f8d9f003f/python/cpython/issues/112729 |
| og:image:alt | Bug report The following code paths should probably returns some sort of exception status (possibly _PyStatus_NO_MEMORY()). cpython/Python/pylifecycle.c Lines 2084 to 2088 in a1551b4 PyInterpreterS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width