René's URL Explorer Experiment


Title: Crash when using _Py_DumpTracebackThreads · Issue #128400 · python/cpython · GitHub

Open Graph Title: Crash when using _Py_DumpTracebackThreads · Issue #128400 · python/cpython

X Title: Crash when using _Py_DumpTracebackThreads · Issue #128400 · python/cpython

Description: Crash report What happened? # triggering program # based on test.test_faulthandler.FaultHandlerTests.test_dump_traceback_threads import faulthandler from threading import Thread, Event class Waiter(Thread): def __init__(self): Thread.__i...

Open Graph Description: Crash report What happened? # triggering program # based on test.test_faulthandler.FaultHandlerTests.test_dump_traceback_threads import faulthandler from threading import Thread, Event class Waiter...

X Description: Crash report What happened? # triggering program # based on test.test_faulthandler.FaultHandlerTests.test_dump_traceback_threads import faulthandler from threading import Thread, Event class Waiter...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash when using _Py_DumpTracebackThreads","articleBody":"# Crash report\n\n### What happened?\n\n```python\n# triggering program\n# based on test.test_faulthandler.FaultHandlerTests.test_dump_traceback_threads\n\nimport faulthandler\nfrom threading import Thread, Event\n\n\nclass Waiter(Thread):\n\n    def __init__(self):\n        Thread.__init__(self)\n        self.running = Event()\n        self.stop = Event()\n\n    def run(self):\n        self.running.set()\n        self.stop.wait()\n\n\ndef main():\n    for i in range(100):\n        waiter = Waiter()\n        waiter.start()\n        waiter.running.wait()\n        faulthandler.dump_traceback(all_threads=True)\n        waiter.stop.set()\n        waiter.join()\n\nif __name__ == '__main__':\n    main()\n\n```\n\nThis will case the interpreter to segfault if built with `--disable-gil --with-pydebug`.  I've bisected it to this commit:\n\nb2afe2aae487ebf89897e22c01d9095944fd334f: gh-123924\n\n\nUsing gdb:\n```\nThread 1 \"python\" received signal SIGSEGV, Segmentation fault.\n_PyFrame_GetCode (f=f@entry=0x7ffff7fb32d8) at ./Include/internal/pycore_frame.h:83\n83\t    assert(PyCode_Check(executable));\n(gdb) p executable \n$7 = 0x0\n(gdb) bt\n#0  _PyFrame_GetCode (f=f@entry=0x7ffff7fb32d8) at ./Include/internal/pycore_frame.h:83\n#1  PyUnstable_InterpreterFrame_GetLine (frame=frame@entry=0x7ffff7fb32d8) at Python/frame.c:149\n#2  0x000055555590e9eb in dump_frame (fd=2, frame=0x7ffff7fb32d8) at Python/traceback.c:905\n#3  dump_traceback (fd=fd@entry=2, tstate=tstate@entry=0x555555cef140, write_header=write_header@entry=0) at Python/traceback.c:974\n#4  0x000055555590ed1c in _Py_DumpTracebackThreads (fd=2, interp=\u003coptimized out>, interp@entry=0x0, current_tstate=0x555555c5dea8 \u003c_PyRuntime+359528>) at Python/traceback.c:1090\n#5  0x0000555555924489 in faulthandler_dump_traceback_py (self=\u003coptimized out>, args=\u003coptimized out>, kwargs=\u003coptimized out>) at ./Modules/faulthandler.c:240\n#6  0x00005555556feae1 in cfunction_call (func=func@entry=\u003cbuilt-in method dump_traceback of module object at remote 0x20000778900>, args=args@entry=(), kwargs=kwargs@entry={'all_threads': True})\n[...]\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.0a0 experimental free-threading build (bisect/bad:b2afe2aae48, Jan  1 2025, 17:09:16) [Clang 19.1.6 (++20241217105838+657e03f8625c-1~exp1~20241217105944.74)]\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-128422\n* gh-128423\n* gh-128425\n* gh-128758\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/nascheme","@type":"Person","name":"nascheme"},"datePublished":"2025-01-02T01:24:19Z","url":"https://github.com/python/cpython/issues/128400"}

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:54dafa9a-fb34-cf93-8cfa-b243b325ab20
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD9C0:3A8E64:1DCBD1D:2754EF1:6B023130
html-safe-nonceff340c22bb99460940f46ea1c0e0508d5ae4d6dfe9148119ffbb0a6a91274c7b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUMwOjNBOEU2NDoxRENCRDFEOjI3NTRFRjE6NkIwMjMxMzAiLCJ2aXNpdG9yX2lkIjoiODc4MzE5MzI0MDA1MzYyNTEzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac187e7f5a48c80f8a5134cc9c38c4377906154c0b6ec80aa5360fe84266ef2523
hovercard-subject-tagissue:2765347354
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/128400/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eb9aadbd6cd37dac9c77ef594b442174978ce6cd4bd8c8d292db1421d9847cd3/python/cpython/issues/128400
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb9aadbd6cd37dac9c77ef594b442174978ce6cd4bd8c8d292db1421d9847cd3/python/cpython/issues/128400
og:image:altCrash report What happened? # triggering program # based on test.test_faulthandler.FaultHandlerTests.test_dump_traceback_threads import faulthandler from threading import Thread, Event class Waiter...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenascheme
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/128400#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F128400
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%2F128400
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/128400
Reloadhttps://github.com/python/cpython/issues/128400
Reloadhttps://github.com/python/cpython/issues/128400
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/128400
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/128400
Crash when using _Py_DumpTracebackThreadshttps://github.com/python/cpython/issues/128400#top
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/nascheme
naschemehttps://github.com/nascheme
on Jan 2, 2025https://github.com/python/cpython/issues/128400#issue-2765347354
b2afe2ahttps://github.com/python/cpython/commit/b2afe2aae487ebf89897e22c01d9095944fd334f
gh-123924https://github.com/python/cpython/pull/123924
gh-128400: Stop-the-world when manually calling faulthandler #128422https://github.com/python/cpython/pull/128422
[3.13] gh-128400: Stop-the-world when manually calling faulthandler (GH-128422) #128423https://github.com/python/cpython/pull/128423
gh-128400: Only show the current thread in faulthandler if the GIL is disabled #128425https://github.com/python/cpython/pull/128425
gh-128400: Only show the current thread in Py_FatalError on the free-threaded build #128758https://github.com/python/cpython/pull/128758
naschemehttps://github.com/nascheme
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 2, 2025https://github.com/python/cpython/issues/128400#event-15795009634
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jan 2, 2025https://github.com/python/cpython/issues/128400#issuecomment-2568017273
https://github.com/colesbury
colesburyhttps://github.com/colesbury
on Jan 2, 2025https://github.com/python/cpython/issues/128400#issuecomment-2568025701
ZeroIntensityhttps://github.com/ZeroIntensity
on Jan 2, 2025https://github.com/python/cpython/issues/128400#event-15801136212
pythongh-128400: Stop the world when calling manuallyhttps://github.com/ZeroIntensity/cpython/commit/a8cf48a886319c98b38ecb750b2c7a1299cb4ecd
pythongh-128400https://github.com/python/cpython/issues/128400
a8cf48ahttps://github.com/ZeroIntensity/cpython/commit/a8cf48a886319c98b38ecb750b2c7a1299cb4ecd
colesburyhttps://github.com/colesbury
on Jan 2, 2025https://github.com/python/cpython/issues/128400#event-15801450834
gh-128400: Stop-the-world when manually calling `faulthandler` (GH-12…https://github.com/python/cpython/commit/c9356feef28e6dfc4dc32830d3427a5ae0e426e2
gh-128400https://github.com/python/cpython/issues/128400
GH-12…https://github.com/python/cpython/pull/128422
c9356fehttps://github.com/python/cpython/commit/c9356feef28e6dfc4dc32830d3427a5ae0e426e2
miss-islingtonhttps://github.com/miss-islington
on Jan 2, 2025https://github.com/python/cpython/issues/128400#event-15801451843
pythongh-128400: Stop-the-world when manually calling `faulthandler` (p…https://github.com/miss-islington/cpython/commit/6577af1ba533a1f6590105a303183e953ddf702f
pythongh-128400https://github.com/python/cpython/issues/128400
p…https://github.com/python/cpython/pull/128422
6577af1https://github.com/miss-islington/cpython/commit/6577af1ba533a1f6590105a303183e953ddf702f
https://github.com/colesbury
colesburyhttps://github.com/colesbury
on Jan 2, 2025https://github.com/python/cpython/issues/128400#issuecomment-2568234847
@ZeroIntensityhttps://github.com/ZeroIntensity
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Jan 2, 2025https://github.com/python/cpython/issues/128400#issuecomment-2568240083
colesburyhttps://github.com/colesbury
on Jan 2, 2025https://github.com/python/cpython/issues/128400#event-15801620489
[3.13] gh-128400: Stop-the-world when manually calling `faulthandler` (…https://github.com/python/cpython/commit/ebadfd1039a321a142e0e09e040bf8e724bb5905
gh-128400https://github.com/python/cpython/issues/128400
…https://github.com/python/cpython/pull/128422
ebadfd1https://github.com/python/cpython/commit/ebadfd1039a321a142e0e09e040bf8e724bb5905
https://github.com/dgrisby
dgrisbyhttps://github.com/dgrisby
on Jan 2, 2025https://github.com/python/cpython/issues/128400#issuecomment-2568521148
#116008https://github.com/python/cpython/issues/116008
colesburyhttps://github.com/colesbury
on Jan 3, 2025https://github.com/python/cpython/issues/128400#event-15810297271
gh-128400: Only show the current thread in `faulthandler` if the GIL …https://github.com/python/cpython/commit/befcfdfdaba15ecae38739ecabebd8046c1b1977
gh-128400https://github.com/python/cpython/issues/128400
befcfdfhttps://github.com/python/cpython/commit/befcfdfdaba15ecae38739ecabebd8046c1b1977
https://github.com/colesbury
colesburyhttps://github.com/colesbury
on Jan 3, 2025https://github.com/python/cpython/issues/128400#issuecomment-2569743973
@dgrisbyhttps://github.com/dgrisby
https://github.com/colesbury
colesburyhttps://github.com/colesbury
on Jan 3, 2025https://github.com/python/cpython/issues/128400#issuecomment-2569920876
colesburyhttps://github.com/colesbury
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 3, 2025https://github.com/python/cpython/issues/128400#event-15811571922
https://github.com/dgrisby
dgrisbyhttps://github.com/dgrisby
on Jan 3, 2025https://github.com/python/cpython/issues/128400#issuecomment-2569920936
@dgrisbyhttps://github.com/dgrisby
https://github.com/colesbury
colesburyhttps://github.com/colesbury
on Jan 4, 2025https://github.com/python/cpython/issues/128400#issuecomment-2569964971
WolframAlphhttps://github.com/WolframAlph
on Jan 4, 2025https://github.com/python/cpython/issues/128400#event-15814915463
pythongh-128400: Only show the current thread in `faulthandler` if th…https://github.com/WolframAlph/cpython/commit/4b8a3c6f09cc6393840398a38b56f2cbe25d2814
pythongh-128400https://github.com/python/cpython/issues/128400
4b8a3c6https://github.com/WolframAlph/cpython/commit/4b8a3c6f09cc6393840398a38b56f2cbe25d2814
srinivasreddyhttps://github.com/srinivasreddy
on Jan 8, 2025https://github.com/python/cpython/issues/128400#event-15848209848
pythongh-128400: Stop-the-world when manually calling `faulthandler` (p…https://github.com/srinivasreddy/cpython/commit/f5bb36b7245a04fc2c159d82c568215653a0fa57
pythongh-128400https://github.com/python/cpython/issues/128400
p…https://github.com/python/cpython/pull/128422
f5bb36bhttps://github.com/srinivasreddy/cpython/commit/f5bb36b7245a04fc2c159d82c568215653a0fa57
pythongh-128400: Only show the current thread in `faulthandler` if th…https://github.com/srinivasreddy/cpython/commit/c520db5c42a18b499ade18ff27dff0530f358987
pythongh-128400https://github.com/python/cpython/issues/128400
c520db5https://github.com/srinivasreddy/cpython/commit/c520db5c42a18b499ade18ff27dff0530f358987
kumaraditya303https://github.com/kumaraditya303
on Jan 13, 2025https://github.com/python/cpython/issues/128400#event-15906139684
gh-128400: Only show the current thread in `Py_FatalError` on the fre…https://github.com/python/cpython/commit/bf64a582f00a030fee11b7f89c6a02ea967990ca
gh-128400https://github.com/python/cpython/issues/128400
bf64a58https://github.com/python/cpython/commit/bf64a582f00a030fee11b7f89c6a02ea967990ca
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/128400
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/128400
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.