René's URL Explorer Experiment


Title: segfault in gc with 3.14.0b1, trio and pytest · Issue #133932 · python/cpython · GitHub

Open Graph Title: segfault in gc with 3.14.0b1, trio and pytest · Issue #133932 · python/cpython

X Title: segfault in gc with 3.14.0b1, trio and pytest · Issue #133932 · python/cpython

Description: Crash report What happened? I'm encountering a segfault during garbage collection since 3.14.0b1 (I have not been able to reproduce it on 3.14.0a6), and while I've so far been able to minify the repro somewhat it still requires both pyte...

Open Graph Description: Crash report What happened? I'm encountering a segfault during garbage collection since 3.14.0b1 (I have not been able to reproduce it on 3.14.0a6), and while I've so far been able to minify the re...

X Description: Crash report What happened? I'm encountering a segfault during garbage collection since 3.14.0b1 (I have not been able to reproduce it on 3.14.0a6), and while I've so far been able to minif...

Opengraph URL: https://github.com/python/cpython/issues/133932

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"segfault in gc with 3.14.0b1, trio and pytest","articleBody":"# Crash report\n\n### What happened?\n\nI'm encountering a segfault during garbage collection since 3.14.0b1 (I have not been able to reproduce it on 3.14.0a6), and while I've so far been able to minify the repro somewhat it still requires both pytest and trio\n\n```python\nimport trio\nfrom contextlib import suppress\nimport gc\n\ndef test_error_in_run_loop() -\u003e None:\n    # Blow stuff up real good to check we at least get a TrioInternalError\n    async def main() -\u003e None:\n        task = trio.lowlevel.current_task()\n        task._schedule_points = \"hello!\"  # type: ignore\n        await trio.lowlevel.checkpoint()\n    with suppress(trio.TrioInternalError):\n        trio.run(main)\n    gc.collect()\n    gc.collect()  # removing this line makes the segfault disappear\n```\n\n```\n$ tox -e repro_crash\n===================================== test session starts =====================================\nplatform linux -- Python 3.14.0b1, pytest-8.3.5, pluggy-1.5.0\ncachedir: .tox/crash/.pytest_cache\nrootdir: /home/h/Git/trio/unbreak_314\nconfigfile: pyproject.toml\ncollected 1 item                                                                              \n\nFatal Python error: Segmentation fault\n\nCurrent thread 0x00007fc3244b0bc0 [pytest] (most recent call first):\n  Garbage-collecting\n  File \"./foo.py\", line 14 in test_error_in_run_loop\n  File \".../site-packages/_pytest/python.py\", line 159 in pytest_pyfunc_call\n  File \".../site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \".../site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \".../site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \".../site-packages/_pytest/python.py\", line 1627 in runtest\n  File \".../site-packages/_pytest/runner.py\", line 174 in pytest_runtest_call\n  File \".../site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \".../site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \".../site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \".../site-packages/_pytest/runner.py\", line 242 in \u003clambda\u003e\n  File \".../site-packages/_pytest/runner.py\", line 341 in from_call\n  File \".../site-packages/_pytest/runner.py\", line 241 in call_and_report\n  File \".../site-packages/_pytest/runner.py\", line 132 in runtestprotocol\n  File \".../site-packages/_pytest/runner.py\", line 113 in pytest_runtest_protocol\n  File \".../site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \".../site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \".../site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \".../site-packages/_pytest/main.py\", line 362 in pytest_runtestloop\n  File \".../site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \".../site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \".../site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \".../site-packages/_pytest/main.py\", line 337 in _main\n  File \".../site-packages/_pytest/main.py\", line 283 in wrap_session\n  File \".../site-packages/_pytest/main.py\", line 330 in pytest_cmdline_main\n  File \".../site-packages/pluggy/_callers.py\", line 103 in _multicall\n  File \".../site-packages/pluggy/_manager.py\", line 120 in _hookexec\n  File \".../site-packages/pluggy/_hooks.py\", line 513 in __call__\n  File \".../site-packages/_pytest/config/__init__.py\", line 175 in main\n  File \".../site-packages/_pytest/config/__init__.py\", line 201 in console_main\n  File \"./.tox/crash/bin/pytest\", line 10 in \u003cmodule\u003e\n\nCurrent thread's C stack trace (most recent call first):\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _Py_DumpStack+0x4d [0x7fc324096a8d]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x2a778c [0x7fc3240a778c]\n  Binary file \"/usr/lib/libc.so.6\", at +0x3dcd0 [0x7fc323c4bcd0]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x23a40a [0x7fc32403a40a]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xd8d80 [0x7fc323ed8d80]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _Py_Dealloc+0x75 [0x7fc323f21745]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x1436c1 [0x7fc323f436c1]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x143e65 [0x7fc323f43e65]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x2379db [0x7fc3240379db]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x237e6c [0x7fc324037e6c]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x2a4df8 [0x7fc3240a4df8]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at PyObject_Vectorcall+0x5d [0x7fc323ebbc4d]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x13ba [0x7fc323fef17a]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x201237 [0x7fc324001237]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbb926 [0x7fc323ebb926]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbbbc0 [0x7fc323ebbbc0]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x1437c9 [0x7fc323f437c9]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _PyObject_MakeTpCall+0x9f [0x7fc323ebb52f]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x4bbf [0x7fc323ff297f]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x201237 [0x7fc324001237]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbb926 [0x7fc323ebb926]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbbbc0 [0x7fc323ebbbc0]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x1437c9 [0x7fc323f437c9]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbb231 [0x7fc323ebb231]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x1cae [0x7fc323fefa6e]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x201237 [0x7fc324001237]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbb926 [0x7fc323ebb926]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0xbbbc0 [0x7fc323ebbbc0]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x1437c9 [0x7fc323f437c9]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _PyObject_MakeTpCall+0x9f [0x7fc323ebb52f]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at _PyEval_EvalFrameDefault+0x4bbf [0x7fc323ff297f]\n  Binary file \"/usr/lib/libpython3.14.so.1.0\", at +0x201237 [0x7fc324001237]\n  \u003ctruncated rest of calls\u003e\nfoo.py crash: exit -11 (1.06 seconds) .\u003e pytest foo.py pid=781607\n  crash: FAIL code -11 (2.11 seconds)\n  evaluation failed :( (2.22 seconds)\n```\n\nI also reproduced it in a clean 3.14.0b1 venv with trio==0.30.0; pytest==8.3.5 without relying on tox, but idr how to get it to print the stack trace that way.\n\nIt's not 100% reliable, so I suspect there's some thread race condition going on.\n\n### CPython versions tested on:\n\n3.14\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.14.0b1 (main, May  9 2025, 13:04:07) [GCC 14.2.1 20250207]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-134244\n* gh-134494\n* gh-142431\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/jakkdl","@type":"Person","name":"jakkdl"},"datePublished":"2025-05-12T14:31:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/133932/cpython/issues/133932"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9b5d341d-c366-b238-2e00-c42d28a850a4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB214:3F035C:5D6C47B:7EDD4FF:696E2C09
html-safe-nonce80e52134c25bab4949a3915aeedd675c332290a3e4f7c9ceceb8baad4370be76
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjE0OjNGMDM1Qzo1RDZDNDdCOjdFREQ0RkY6Njk2RTJDMDkiLCJ2aXNpdG9yX2lkIjoiNzQyODY3Njk3ODU0NzIzOTk0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3556e5e14d3e4dc152fc96b650af19e5725075a7fb7dde6abf1db07ba9f420f2
hovercard-subject-tagissue:3057191294
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/133932/issue_layout
twitter:imagehttps://opengraph.githubassets.com/08c85ed7c4b321e1b2dd234efa350a0dc95adad0a1d224ab373c6afbe9baa143/python/cpython/issues/133932
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/08c85ed7c4b321e1b2dd234efa350a0dc95adad0a1d224ab373c6afbe9baa143/python/cpython/issues/133932
og:image:altCrash report What happened? I'm encountering a segfault during garbage collection since 3.14.0b1 (I have not been able to reproduce it on 3.14.0a6), and while I've so far been able to minify the re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejakkdl
hostnamegithub.com
expected-hostnamegithub.com
None878b142339d396b81902fd0c6d3f2f41511e1864f596c5a601660d91d0d60e59
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release20fb42f07915f87665e5bccffc415f231d50cfac
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/133932#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F133932
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F133932
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/133932
Reloadhttps://github.com/python/cpython/issues/133932
Reloadhttps://github.com/python/cpython/issues/133932
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/133932
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/133932
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/133932
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/133932
segfault in gc with 3.14.0b1, trio and pytesthttps://github.com/python/cpython/issues/133932#top
https://github.com/markshannon
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
https://github.com/jakkdl
https://github.com/jakkdl
jakkdlhttps://github.com/jakkdl
on May 12, 2025https://github.com/python/cpython/issues/133932#issue-3057191294
GH-133932: Tagged ints are heap safe #134244https://github.com/python/cpython/pull/134244
[3.14] GH-133932: Tagged ints are heap safe (GH-134244) #134494https://github.com/python/cpython/pull/134494
[3.14] gh-133932: Tagged ints are heap-safe (free threading) #142431https://github.com/python/cpython/pull/142431
markshannonhttps://github.com/markshannon
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.15new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
release-blockerhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22release-blocker%22
type-crashA hard crash of the interpreter, possibly with a core dumphttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-crash%22
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.