Title: JIT: _Py_uop_sym_set_recorded_type may receive a non-type at trace optimization time. · Issue #148439 · python/cpython · GitHub
Open Graph Title: JIT: _Py_uop_sym_set_recorded_type may receive a non-type at trace optimization time. · Issue #148439 · python/cpython
X Title: JIT: _Py_uop_sym_set_recorded_type may receive a non-type at trace optimization time. · Issue #148439 · python/cpython
Description: Bug report Bug description: _Py_uop_sym_set_recorded_type asserts PyType_Check, but it's possible to have an instance change its __class__/type to a non-PyType_Check-ed class after JIT trace but right before JIT optimization time. I thin...
Open Graph Description: Bug report Bug description: _Py_uop_sym_set_recorded_type asserts PyType_Check, but it's possible to have an instance change its __class__/type to a non-PyType_Check-ed class after JIT trace but ri...
X Description: Bug report Bug description: _Py_uop_sym_set_recorded_type asserts PyType_Check, but it's possible to have an instance change its __class__/type to a non-PyType_Check-ed class after JIT trace bu...
Opengraph URL: https://github.com/python/cpython/issues/148439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT: _Py_uop_sym_set_recorded_type may receive a non-type at trace optimization time.","articleBody":"# Bug report\n\n### Bug description:\n\n_Py_uop_sym_set_recorded_type asserts PyType_Check, but it's possible to have an instance change its `__class__`/type to a non-PyType_Check-ed class after JIT trace but right before JIT optimization time.\n\nI think the fix is to convert that to a check instead of an assert?\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_","author":{"url":"https://github.com/Fidget-Spinner","@type":"Person","name":"Fidget-Spinner"},"datePublished":"2026-04-12T11:58:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/148439/cpython/issues/148439"}
| 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:67612040-bebb-2a1c-9da3-1273a13bf421 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97F0:1BB425:604ECE:80B5D8:6A52FD2E |
| html-safe-nonce | 9d68a039410c21819e63f9ce7290dd7825e6c01956370224dac4baae4e5b1bc9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0YwOjFCQjQyNTo2MDRFQ0U6ODBCNUQ4OjZBNTJGRDJFIiwidmlzaXRvcl9pZCI6IjUxMTgwMjY1Mzk0Mzk2ODQ5MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 126f27d62e50826c7911f676be03165aca2d6c1ca6c2ac401953bf451cc468ca |
| hovercard-subject-tag | issue:4247910747 |
| 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/148439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b93b961b8865debb1069bc545ecbef8a788b29468aa8cdb097ae58fa3fc7ee56/python/cpython/issues/148439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b93b961b8865debb1069bc545ecbef8a788b29468aa8cdb097ae58fa3fc7ee56/python/cpython/issues/148439 |
| og:image:alt | Bug report Bug description: _Py_uop_sym_set_recorded_type asserts PyType_Check, but it's possible to have an instance change its __class__/type to a non-PyType_Check-ed class after JIT trace but ri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Fidget-Spinner |
| 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