Title: 3.12 regression: "can't create new thread at interpreter shutdown" from non-daemon threads or atexit handlers · Issue #113964 · python/cpython · GitHub
Open Graph Title: 3.12 regression: "can't create new thread at interpreter shutdown" from non-daemon threads or atexit handlers · Issue #113964 · python/cpython
X Title: 3.12 regression: "can't create new thread at interpreter shutdown" from non-daemon threads or atexit handlers · Issue #113964 · python/cpython
Description: Bug report Bug description: I have a single threading.Timer held on a class as self.timer... def refresh_timer(self): if self.timer is not None: self.timer.cancel() self.timer = threading.Timer(self.worker_context.timeout_minutes * 60, s...
Open Graph Description: Bug report Bug description: I have a single threading.Timer held on a class as self.timer... def refresh_timer(self): if self.timer is not None: self.timer.cancel() self.timer = threading.Timer(sel...
X Description: Bug report Bug description: I have a single threading.Timer held on a class as self.timer... def refresh_timer(self): if self.timer is not None: self.timer.cancel() self.timer = threading.Timer(sel...
Opengraph URL: https://github.com/python/cpython/issues/113964
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3.12 regression: \"can't create new thread at interpreter shutdown\" from non-daemon threads or atexit handlers","articleBody":"# Bug report\n\n### Bug description:\n\nI have a single threading.Timer held on a class as self.timer...\n\n```python\n def refresh_timer(self):\n if self.timer is not None:\n self.timer.cancel()\n self.timer = threading.Timer(self.worker_context.timeout_minutes * 60, self.stop_cycle)\n self.timer.start()\n```\n\nAs recently as 3.10 this code worked. As of 3.12 it errors with \"can't create new thread at interpreter shutdown\". The code has not changed, and the interpreter is not shutting down at the time this error is thrown, as in the process is live and code is executing. There are no code changes from where this is working in 3.10 to where it is not in *3.12.1* (upgraded from 3.12 to 3.12.1 and tsted again to see if this had been fixed).\n\n### CPython versions tested on:\n\n3.12\n\n### Operating systems tested on:\n\nWindows\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-116677\n* gh-116982\n* gh-117029\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/zenbones","@type":"Person","name":"zenbones"},"datePublished":"2024-01-11T23:20:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/113964/cpython/issues/113964"}
| 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:585a88ef-ef73-61b6-13ae-d2abc7c49400 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDD2:19FB97:1BDF2A8:2716AD8:696A526F |
| html-safe-nonce | b0a794712893373f26e320796a0e268716da1e5e31c9b09b3b2c6b73faa8ba2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREQyOjE5RkI5NzoxQkRGMkE4OjI3MTZBRDg6Njk2QTUyNkYiLCJ2aXNpdG9yX2lkIjoiODQ4OTU2ODkxNzUyNzM1MTkxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 54967f12d9c2f1af6a7d42d57e2c19032320eeeb70526892a661137589e76a0c |
| hovercard-subject-tag | issue:2077764872 |
| 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/113964/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7c6fe8b5093b7083d959a175c2332a42e4d63a517415e952c29f1bf129908a3f/python/cpython/issues/113964 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7c6fe8b5093b7083d959a175c2332a42e4d63a517415e952c29f1bf129908a3f/python/cpython/issues/113964 |
| og:image:alt | Bug report Bug description: I have a single threading.Timer held on a class as self.timer... def refresh_timer(self): if self.timer is not None: self.timer.cancel() self.timer = threading.Timer(sel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zenbones |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width