Title: instrumentation.c: Use-after-Py_DECREF comparison in call_one_instrument · Issue #151524 · python/cpython · GitHub
Open Graph Title: instrumentation.c: Use-after-Py_DECREF comparison in call_one_instrument · Issue #151524 · python/cpython
X Title: instrumentation.c: Use-after-Py_DECREF comparison in call_one_instrument · Issue #151524 · python/cpython
Description: Bug report Bug description: Summary At line 992-993, Py_DECREF(res) then res compared to &_PyInstrumentation_DISABLE. Using a potentially-freed pointer in comparison is UB per C standard. This is a sub-issue of #146102 with gist details ...
Open Graph Description: Bug report Bug description: Summary At line 992-993, Py_DECREF(res) then res compared to &_PyInstrumentation_DISABLE. Using a potentially-freed pointer in comparison is UB per C standard. This is a...
X Description: Bug report Bug description: Summary At line 992-993, Py_DECREF(res) then res compared to &_PyInstrumentation_DISABLE. Using a potentially-freed pointer in comparison is UB per C standard. This ...
Opengraph URL: https://github.com/python/cpython/issues/151524
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"instrumentation.c: Use-after-Py_DECREF comparison in call_one_instrument","articleBody":"# Bug report\n\n### Bug description:\n\n## Summary\n\nAt line 992-993, Py_DECREF(res) then res compared to \u0026_PyInstrumentation_DISABLE. Using a potentially-freed pointer in comparison is UB per C standard.\n\n\nThis is a sub-issue of https://github.com/python/cpython/issues/146102 with [gist details](https://gist.github.com/devdanzin/330026d6a4c40048c771a61f706ac75e)\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-151525\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/lpyu001","@type":"Person","name":"lpyu001"},"datePublished":"2026-06-16T02:44:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/151524/cpython/issues/151524"}
| 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:d9799404-44aa-900c-8321-56847f91744a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88DA:209EFE:7E783C:B40FCC:6A5104CC |
| html-safe-nonce | 0f50fcd1b417f0e1242c8e64bb4dcdcdd6ac477ec8cc2fa7fd8f930fe67b20a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OERBOjIwOUVGRTo3RTc4M0M6QjQwRkNDOjZBNTEwNENDIiwidmlzaXRvcl9pZCI6Ijc5NTY5MDM1MzAxNDQ1MzE2NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8b84f49a2f0de1523dc33d9a319491f8be4218ab5c459afa607a8d58f5a6d701 |
| hovercard-subject-tag | issue:4670564336 |
| 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/151524/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb8c1c648c266fed9d9e85b0f2e92325ad905d8c092392375e4908c9ae7b5b7d/python/cpython/issues/151524 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb8c1c648c266fed9d9e85b0f2e92325ad905d8c092392375e4908c9ae7b5b7d/python/cpython/issues/151524 |
| og:image:alt | Bug report Bug description: Summary At line 992-993, Py_DECREF(res) then res compared to &_PyInstrumentation_DISABLE. Using a potentially-freed pointer in comparison is UB per C standard. This is a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lpyu001 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| 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 | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width