Title: Unrecoverable stack overflow with infinite recursion on macOS · Issue #131543 · python/cpython · GitHub
Open Graph Title: Unrecoverable stack overflow with infinite recursion on macOS · Issue #131543 · python/cpython
X Title: Unrecoverable stack overflow with infinite recursion on macOS · Issue #131543 · python/cpython
Description: Crash report What happened? Hello, In the CI of cloudpickle, we encountered a crash of the python interpreter due to a stack overflow with python3.14.0a6. Reverting to python3.14.0a5 fixes the error. This might be related to GH-130398, w...
Open Graph Description: Crash report What happened? Hello, In the CI of cloudpickle, we encountered a crash of the python interpreter due to a stack overflow with python3.14.0a6. Reverting to python3.14.0a5 fixes the erro...
X Description: Crash report What happened? Hello, In the CI of cloudpickle, we encountered a crash of the python interpreter due to a stack overflow with python3.14.0a6. Reverting to python3.14.0a5 fixes the erro...
Opengraph URL: https://github.com/python/cpython/issues/131543
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unrecoverable stack overflow with infinite recursion on macOS","articleBody":"# Crash report\n\n### What happened?\n\nHello,\n\nIn the CI of `cloudpickle`, we encountered a crash of the python interpreter due to a stack overflow with `python3.14.0a6`.\nReverting to `python3.14.0a5` fixes the error.\n\n\nThis might be related to [GH-130398](https://github.com/python/cpython/pull/130398), with a bad detection of the limit of the stack?\nI could not test it locally as I don't own a mac.\n\n```python\nclass A:\n def __getattribute__(self, name):\n return getattr(self, name)\n\n\na = A()\nprint(\"Testing Recursion Limit\")\ntry:\n a.test\nexcept RecursionError:\n print(\"Recursion Limit ok\")\n```\n\n[Output](https://github.com/cloudpipe/cloudpickle/actions/runs/13993198903/job/39181684377#step:4:134) with `python3.14.0a5`:\n```\nTesting Recursion Limit\nRecursion Limit ok\n```\n\n[Output](https://github.com/cloudpipe/cloudpickle/actions/runs/13993305376/job/39182057099) with `python3.14.0a6`:\n```\nFatal Python error: _Py_CheckRecursiveCall: Unrecoverable stack overflow (used 3923 kB)\nPython runtime state: initialized\n\nCurrent thread 0x00000001f839cf80 (most recent call first):\n File \"/Users/runner/work/cloudpickle/cloudpickle/test_recursion_error.py\", line 3 in __getattribute__\n File \"/Users/runner/work/cloudpickle/cloudpickle/test_recursion_error.py\", line 3 in __getattribute__\n File \"/Users/runner/work/cloudpickle/cloudpickle/test_recursion_error.py\", line 3 in __getattribute__\n....\n```\n\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nmacOS\n\n### Output from running 'python -VV' on the command line:\n\n_No response_","author":{"url":"https://github.com/tomMoral","@type":"Person","name":"tomMoral"},"datePublished":"2025-03-21T13:56:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/131543/cpython/issues/131543"}
| 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:7f8b6512-d05c-880e-13b0-78151b29ce59 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0E2:9124A:B9B56A:F10014:696AF9A8 |
| html-safe-nonce | e9ade6327ff138b0463a5d1bbd1535ee3f57eb8dda27ced269545f00b1abf5f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEUyOjkxMjRBOkI5QjU2QTpGMTAwMTQ6Njk2QUY5QTgiLCJ2aXNpdG9yX2lkIjoiMzM2ODYyMzQ0MTUyNTQ1NzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 762504825547c025174c97513a4db57715ea941143b2f3a1dabc7fb5b837293f |
| hovercard-subject-tag | issue:2938488118 |
| 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/131543/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb9c7a438a816456cb8fa2f7acdd8beef26449a6a02510c7676d70957794717b/python/cpython/issues/131543 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb9c7a438a816456cb8fa2f7acdd8beef26449a6a02510c7676d70957794717b/python/cpython/issues/131543 |
| og:image:alt | Crash report What happened? Hello, In the CI of cloudpickle, we encountered a crash of the python interpreter due to a stack overflow with python3.14.0a6. Reverting to python3.14.0a5 fixes the erro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomMoral |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width