René's URL Explorer Experiment


Title: `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently · Issue #128806 · python/cpython · GitHub

Open Graph Title: `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently · Issue #128806 · python/cpython

X Title: `test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently · Issue #128806 · python/cpython

Description: Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading forever, but haven't been able to further ...

Open Graph Description: Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading fo...

X Description: Crash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading fo...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently ","articleBody":"# Crash report\n\n### What happened?\n\n`test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation` crashes intermittently. I am able to reproduce the crash if I run `test_free_threading` forever, but haven't been able to further minimize the reproducer. It typically takes around 50 iterations before crashing.\n\nThis assertion is failing:\n\nhttps://github.com/python/cpython/blob/b70a567575db37846beecbe8b40fb56b875274db/Python/instrumentation.c#L1249\n\nThis also happens intermittently on buildbots ([ex]( https://buildbot.python.org/#/builders/1606/builds/121)).\n\n## Reproducer\n\n```\n./python -m test test_free_threading -F\n```\n\nPython stack trace:\n\n```\npython: Python/instrumentation.c:1249: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.\npython: Python/instrumentation.c:1249: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.\nFatal Python error: Aborted\n\n\u003cCannot show all threads while the GIL is disabled>\nStack (most recent call first):\n  File \"python: Python/instrumentation.c:1249: _Py_call_instrumentation_line: Assertion `debug_check_sanity(tstate->interp, code)' failed.\n/data/users/mpage/cpython/Lib/unittest/case.py\n```\n\nNative stack trace:\n\n```\n(gdb) bt\n#0  0x00007f923008bacc in __pthread_kill_implementation () from /lib64/libc.so.6\n#1  0x00007f923003e686 in raise () from /lib64/libc.so.6\n#2  0x00007f9230028833 in abort () from /lib64/libc.so.6\n#3  0x00007f923002875b in __assert_fail_base.cold () from /lib64/libc.so.6\n#4  0x00007f92300373c6 in __assert_fail () from /lib64/libc.so.6\n#5  0x00000000006e571e in _Py_call_instrumentation_line (tstate=tstate@entry=0xb54ae0, frame=frame@entry=0x7f922fe5f7f8, instr=instr@entry=0x20006051bd6, prev=0x20006051bea)\n    at Python/instrumentation.c:1332\n#6  0x000000000066e4b5 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0xb54ae0, frame=0x7f922fe5f7f8, frame@entry=0x7f922fe5f1c8, throwflag=throwflag@entry=0)\n    at Python/generated_cases.c.h:4742\n#7  0x00000000006827be in _PyEval_EvalFrame (throwflag=0, frame=0x7f922fe5f1c8, tstate=0xb54ae0) at ./Include/internal/pycore_ceval.h:116\n#8  _PyEval_Vector (tstate=\u003coptimized out>, func=\u003coptimized out>, locals=locals@entry=0x0, args=0x7f91f4bff800, argcount=3, kwnames=\u003coptimized out>) at Python/ceval.c:1913\n#9  0x00000000004b5497 in _PyFunction_Vectorcall (func=\u003coptimized out>, stack=\u003coptimized out>, nargsf=\u003coptimized out>, kwnames=\u003coptimized out>) at Objects/call.c:413\n#10 0x00000000004b9636 in _PyObject_VectorcallTstate (tstate=0xb54ae0, callable=\u003cfunction at remote 0x2001e1b02b0>, args=0x7f91f4bff800, nargsf=3, kwnames=0x0)\n    at ./Include/internal/pycore_call.h:167\n#11 0x00000000004ba02d in method_vectorcall (method=\u003coptimized out>, args=0x2000135f8d8, nargsf=\u003coptimized out>, kwnames=0x0) at Objects/classobject.c:94\n#12 0x00000000004b7c52 in _PyVectorcall_Call (tstate=tstate@entry=0xb54ae0, func=0x4b9f19 \u003cmethod_vectorcall>, callable=callable@entry=\u003cmethod at remote 0x2000135a1b0>,\n    tuple=tuple@entry=(12, [\u003cfunction at remote 0x2001e1b25b0>, \u003cfunction at remote 0x2001e1b2310>, \u003cfunction at remote 0x2001e1b0fd0>, \u003cfunction at remote 0x2001e1be7f0>, \u003cfunction at remote 0x2001e1b3110>, \u003cfunction at remote 0x2001e1bae30>, \u003cfunction at remote 0x2001e1b41b0>, \u003cfunction at remote 0x2001e1b32d0>, \u003cfunction at remote 0x2001e1be710>, \u003cfunction at remote 0x2001e1b7010>, \u003cfunction at remote 0x2001e1b7a90>, \u003cfunction at remote 0x2001e1b1eb0>, \u003cfunction at remote 0x2001e1b4990>, \u003cfunction at remote 0x2001e1b9930>, \u003cfunction at remote 0x2001e1b6130>, \u003cfunction at remote 0x2001e1b4ed0>, \u003cfunction at remote 0x2001e1b69f0>, \u003cfunction at remote 0x2001e1b2f50>, \u003cfunction at remote 0x2001e1b80b0>, \u003cfunction at remote 0x2001e1b4610>, \u003cfunction at remote 0x2001e1b7d30>, \u003cfunction at remote 0x2001e1b87b0>, \u003cfunction at remote 0x2001e1b1350>, \u003cfunction at remote 0x2001e1b5a30>, \u003cfunction at remote 0x2001e1b1510>, \u003cfunction at remote 0x2001e1b0710>, \u003cfunction at remote 0x2001e1b5170>, \u003cfunction at remote 0x2001e1b2770>, \u003cfunction ...(truncated), kwargs=kwargs@entry={}) at ./Include/object.h:783\n#13 0x00000000004b7fbe in _PyObject_Call (tstate=0xb54ae0, callable=callable@entry=\u003cmethod at remote 0x2000135a1b0>,\n    args=(12, [\u003cfunction at remote 0x2001e1b25b0>, \u003cfunction at remote 0x2001e1b2310>, \u003cfunction at remote 0x2001e1b0fd0>, \u003cfunction at remote 0x2001e1be7f0>, \u003cfunction at remote 0x2001e1b3110>, \u003cfunction at remote 0x2001e1bae30>, \u003cfunction at remote 0x2001e1b41b0>, \u003cfunction at remote 0x2001e1b32d0>, \u003cfunction at remote 0x2001e1be710>, \u003cfunction at remote 0x2001e1b7010>, \u003cfunction at remote 0x2001e1b7a90>, \u003cfunction at remote 0x2001e1b1eb0>, \u003cfunction at remote 0x2001e1b4990>, \u003cfunction at remote 0x2001e1b9930>, \u003cfunction at remote 0x2001e1b6130>, \u003cfunction at remote 0x2001e1b4ed0>, \u003cfunction at remote 0x2001e1b69f0>, \u003cfunction at remote 0x2001e1b2f50>, \u003cfunction at remote 0x2001e1b80b0>, \u003cfunction at remote 0x2001e1b4610>, \u003cfunction at remote 0x2001e1b7d30>, \u003cfunction at remote 0x2001e1b87b0>, \u003cfunction at remote 0x2001e1b1350>, \u003cfunction at remote 0x2001e1b5a30>, \u003cfunction at remote 0x2001e1b1510>, \u003cfunction at remote 0x2001e1b0710>, \u003cfunction at remote 0x2001e1b5170>, \u003cfunction at remote 0x2001e1b2770>, \u003cfunction ...(truncated), kwargs={}) at Objects/call.c:348\n#14 0x00000000004b8015 in PyObject_Call (callable=callable@entry=\u003cmethod at remote 0x2000135a1b0>, args=\u003coptimized out>, kwargs=\u003coptimized out>) at Objects/call.c:373\n#15 0x000000000065ede4 in _PyEval_EvalFrameDefault (tstate=tstate@entry=0xb54ae0, frame=0x7f922fe5f138, frame@entry=0x7f922fe5f020, throwflag=throwflag@entry=0)\n    at Python/generated_cases.c.h:1778\n#16 0x00000000006827be in _PyEval_EvalFrame (throwflag=0, frame=0x7f922fe5f020, tstate=0xb54ae0) at ./Include/internal/pycore_ceval.h:116\n#17 _PyEval_Vector (tstate=\u003coptimized out>, func=\u003coptimized out>, locals=locals@entry=0x0, args=0x7f91f4bffd08, argcount=1, kwnames=\u003coptimized out>) at Python/ceval.c:1913\n#18 0x00000000004b5497 in _PyFunction_Vectorcall (func=\u003coptimized out>, stack=\u003coptimized out>, nargsf=\u003coptimized out>, kwnames=\u003coptimized out>) at Objects/call.c:413\n#19 0x00000000004ba1ab in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=1, args=0x7f91f4bffd08, callable=\u003cfunction at remote 0x20000a5a810>, tstate=0xb54ae0)\n    at ./Include/internal/pycore_call.h:167\n#20 method_vectorcall (method=\u003coptimized out>, args=\u003coptimized out>, nargsf=\u003coptimized out>, kwnames=0x0) at Objects/classobject.c:72\n#21 0x00000000004b7c52 in _PyVectorcall_Call (tstate=tstate@entry=0xb54ae0, func=0x4b9f19 \u003cmethod_vectorcall>, callable=callable@entry=\u003cmethod at remote 0x2000135e5f0>, tuple=tuple@entry=(),\n    kwargs=kwargs@entry=0x0) at ./Include/object.h:783\n#22 0x00000000004b7fbe in _PyObject_Call (tstate=0xb54ae0, callable=\u003cmethod at remote 0x2000135e5f0>, args=(), kwargs=0x0) at Objects/call.c:348\n#23 0x00000000004b8015 in PyObject_Call (callable=\u003coptimized out>, args=\u003coptimized out>, kwargs=\u003coptimized out>) at Objects/call.c:373\n#24 0x00000000007b91bf in thread_run (boot_raw=boot_raw@entry=0xb4a2f0) at ./Modules/_threadmodule.c:346\n#25 0x00000000007281ef in pythread_wrapper (arg=\u003coptimized out>) at Python/thread_pthread.h:242\n#26 0x00007f9230089d82 in start_thread () from /lib64/libc.so.6\n#27 0x00007f923010ee20 in clone3 () from /lib64/libc.so.6\n(gdb)\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\nPython 3.14.0a3+ experimental free-threading build (heads/main:5e65a1acc0b, Jan 12 2025, 08:39:41) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)]","author":{"url":"https://github.com/mpage","@type":"Person","name":"mpage"},"datePublished":"2025-01-14T00:50:53Z","url":"https://github.com/python/cpython/issues/128806"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c6a7fb4a-ef03-9f70-039d-4f7895f98a60
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF46:B53AF:36AC6D1:48BFB6A:6B020B52
html-safe-noncead34e18c795d93a91487e08b189a6795afd28dcf74a5f7b4b2351bdbf0bbe76b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjQ2OkI1M0FGOjM2QUM2RDE6NDhCRkI2QTo2QjAyMEI1MiIsInZpc2l0b3JfaWQiOiI5MzIzNDIzODg0OTAzNzM5NzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacde6e940d80377dc7fa0e7c099b1c43912a87523e2524cdaaf62b98543892dee6
hovercard-subject-tagissue:2785851744
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/128806/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d23370e01bc9f2e5eb09ff1786304ad2f38a74b0b65bde91cdbf8d7ca8fdd263/python/cpython/issues/128806
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d23370e01bc9f2e5eb09ff1786304ad2f38a74b0b65bde91cdbf8d7ca8fdd263/python/cpython/issues/128806
og:image:altCrash report What happened? test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently. I am able to reproduce the crash if I run test_free_threading fo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamempage
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/128806#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128806
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128806
Sign uphttps://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/128806
Reloadhttps://github.com/python/cpython/issues/128806
Reloadhttps://github.com/python/cpython/issues/128806
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128806
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128806
test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation crashes intermittently https://github.com/python/cpython/issues/128806#top
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%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/mpage
mpagehttps://github.com/mpage
on Jan 14, 2025https://github.com/python/cpython/issues/128806#issue-2785851744
cpython/Python/instrumentation.chttps://github.com/python/cpython/blob/b70a567575db37846beecbe8b40fb56b875274db/Python/instrumentation.c#L1249
b70a567https://github.com/python/cpython/commit/b70a567575db37846beecbe8b40fb56b875274db
exhttps://buildbot.python.org/#/builders/1606/builds/121
mpagehttps://github.com/mpage
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%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
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%22
on Jan 14, 2025https://github.com/python/cpython/issues/128806#event-15915083578
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
on Jan 31, 2025https://github.com/python/cpython/issues/128806#issuecomment-2627778507
#129441https://github.com/python/cpython/issues/129441
kumaraditya303https://github.com/kumaraditya303
duplicatehttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Aduplicate
Crash in test_free_threading.test_monitoring.SetProfileMultiThreaded.test_instrumentation #120158https://github.com/python/cpython/issues/120158
on Jul 7, 2025https://github.com/python/cpython/issues/128806#event-18499048668
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/128806
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/128806
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
testsTests in the Lib/test dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22tests%22
topic-free-threadinghttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-free-threading%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
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.