Title: Crash `msgspec` with Python 3.13.* · Issue #142671 · python/cpython · GitHub
Open Graph Title: Crash `msgspec` with Python 3.13.* · Issue #142671 · python/cpython
X Title: Crash `msgspec` with Python 3.13.* · Issue #142671 · python/cpython
Description: Bug report Bug description: The original problem - msgspec/msgspec#960 In Python 3.13 PyObject_GC_New does not do initialization inline values (aka _PyObject_InitInlineValues). In Python 3.14 PyObject_GC_New does initialization inline va...
Open Graph Description: Bug report Bug description: The original problem - msgspec/msgspec#960 In Python 3.13 PyObject_GC_New does not do initialization inline values (aka _PyObject_InitInlineValues). In Python 3.14 PyObj...
X Description: Bug report Bug description: The original problem - msgspec/msgspec#960 In Python 3.13 PyObject_GC_New does not do initialization inline values (aka _PyObject_InitInlineValues). In Python 3.14 PyObj...
Opengraph URL: https://github.com/python/cpython/issues/142671
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash `msgspec` with Python 3.13.*","articleBody":"# Bug report\n\n### Bug description:\n\nThe original problem - https://github.com/jcrist/msgspec/pull/960\n\nIn Python 3.13 `PyObject_GC_New` does not do initialization inline values (aka `_PyObject_InitInlineValues`).\nIn Python 3.14 `PyObject_GC_New` does initialization inline values - https://github.com/python/cpython/blob/main/Python/gc.c#L2377-L2379 \n\nAre there any reasons why `PyObject_GC_New` doesn't do this initialization in Python 3.13?\n\nI tried to fix `msgspec` by adding a call to the private function `_PyObject_InitInlineValues`, but this causes other problems.\nCan you tell me how to fix this place more correctly? I just came up with the idea to make a copy of the `_PyObject_InitInlineValues` function in `msgspec` for Python 3.13.\n\n\n\n### CPython versions tested on:\n\n3.13\n\n### Operating systems tested on:\n\nLinux","author":{"url":"https://github.com/shadchin","@type":"Person","name":"shadchin"},"datePublished":"2025-12-13T16:24:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/142671/cpython/issues/142671"}
| 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:33f16d69-f71e-5b55-6cab-86af9571bbe4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 884C:19E229:102F2BE:166B0F9:6A4DDA61 |
| html-safe-nonce | 57a0f0f9549f9472427547fd10b2fcaac98a1af3465216a9b26c690de87dcb80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODRDOjE5RTIyOToxMDJGMkJFOjE2NkIwRjk6NkE0RERBNjEiLCJ2aXNpdG9yX2lkIjoiMTE4NDg0NjI5MDM1OTI3ODE3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 379d0b22206ac2d65fae1d7c0f81fdfd38ee7eb0ba06e60b04f532c6fffa7262 |
| hovercard-subject-tag | issue:3726142909 |
| 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/142671/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20f4baa4d37d9d51dd71b2b8bcd0cb3a596dc67907ec3ded380cbae848a41e19/python/cpython/issues/142671 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20f4baa4d37d9d51dd71b2b8bcd0cb3a596dc67907ec3ded380cbae848a41e19/python/cpython/issues/142671 |
| og:image:alt | Bug report Bug description: The original problem - msgspec/msgspec#960 In Python 3.13 PyObject_GC_New does not do initialization inline values (aka _PyObject_InitInlineValues). In Python 3.14 PyObj... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shadchin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width