René's URL Explorer Experiment


Title: JIT: assertion failure in `_PyJit_translate_single_bytecode_to_trace` · Issue #141797 · python/cpython · GitHub

Open Graph Title: JIT: assertion failure in `_PyJit_translate_single_bytecode_to_trace` · Issue #141797 · python/cpython

X Title: JIT: assertion failure in `_PyJit_translate_single_bytecode_to_trace` · Issue #141797 · python/cpython

Description: Crash report What happened? It's possible to trigger an assertion failure in a JIT build by running the code below: def f1(): class C: def __init__(self): self._items = [0, 1] self._index = 0 def __iter__(self): return self def __next__(...

Open Graph Description: Crash report What happened? It's possible to trigger an assertion failure in a JIT build by running the code below: def f1(): class C: def __init__(self): self._items = [0, 1] self._index = 0 def _...

X Description: Crash report What happened? It's possible to trigger an assertion failure in a JIT build by running the code below: def f1(): class C: def __init__(self): self._items = [0, 1] self._index = 0 d...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT: assertion failure in `_PyJit_translate_single_bytecode_to_trace`","articleBody":"# Crash report\n\n### What happened?\n\nIt's possible to trigger an assertion failure in a JIT build by running the code below:\n\n```python\ndef f1():\n\n    class C:\n        def __init__(self):\n            self._items = [0, 1]\n            self._index = 0\n\n        def __iter__(self):\n            return self\n\n        def __next__(self):\n            if self._index > len(self._items):\n                raise StopIteration\n            self._index += 1\n\n    it = C()\n    _ = [x for x in it if it._items.append(x) or True]\n    \nf1()\n```\n\nBacktrace:\n```\npython: Python/optimizer.c:759: int _PyJit_translate_single_bytecode_to_trace(PyThreadState *, _PyInterpreterFrame *, _Py_CODEUNIT *, int): Assertion `jump_happened == (target_instr[1].cache & 1)' failed.\n\nProgram received signal SIGABRT, Aborted.\n\n#0  __pthread_kill_implementation (threadid=\u003coptimized out>, signo=6, no_tid=0) at ./nptl/pthread_kill.c:44\n#1  __pthread_kill_internal (threadid=\u003coptimized out>, signo=6) at ./nptl/pthread_kill.c:89\n#2  __GI___pthread_kill (threadid=\u003coptimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:100\n#3  0x00007ffff7c45e2e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26\n#4  0x00007ffff7c28888 in __GI_abort () at ./stdlib/abort.c:77\n#5  0x00007ffff7c287f0 in __assert_fail_base (fmt=\u003coptimized out>, assertion=\u003coptimized out>, file=\u003coptimized out>, line=\u003coptimized out>, function=\u003coptimized out>) at ./assert/assert.c:118\n#6  0x00007ffff7c3c19f in __assert_fail (assertion=\u003coptimized out>, file=\u003coptimized out>, line=\u003coptimized out>, function=\u003coptimized out>) at ./assert/assert.c:127\n#7  0x0000555556129d8a in _PyJit_translate_single_bytecode_to_trace (tstate=0x555556aead00 \u003c_PyRuntime+358304>, frame=frame@entry=0x7e8ff6de5280, next_instr=next_instr@entry=0x7d2ff6dfd4d6,\n    stop_tracing_opcode=0) at Python/optimizer.c:759\n#8  0x0000555555e5d06d in _PyEval_EvalFrameDefault (tstate=\u003coptimized out>, frame=\u003coptimized out>, throwflag=\u003coptimized out>) at Python/generated_cases.c.h:12266\n#9  0x0000555555e49d1b in _PyEval_EvalFrame (tstate=0x555556aead00 \u003c_PyRuntime+358304>, frame=0x7e8ff6de5220, throwflag=0) at ./Include/internal/pycore_ceval.h:121\n#10 _PyEval_Vector (tstate=\u003coptimized out>, func=\u003coptimized out>, locals=\u003coptimized out>, args=\u003coptimized out>, argcount=\u003coptimized out>, kwnames=0x0) at Python/ceval.c:2104\n#11 0x0000555555e49735 in PyEval_EvalCode (co=\u003coptimized out>, globals=\u003coptimized out>, locals=0x7c7ff6e872c0) at Python/ceval.c:944\n#12 0x00005555561bb04f in run_eval_code_obj (tstate=tstate@entry=0x555556aead00 \u003c_PyRuntime+358304>, co=co@entry=0x7d1ff6e1bbd0, globals=globals@entry=0x7c7ff6e872c0,\n    locals=locals@entry=0x7c7ff6e872c0) at Python/pythonrun.c:1372\n#13 0x00005555561ba21c in run_mod (mod=\u003coptimized out>, filename=\u003coptimized out>, globals=\u003coptimized out>, locals=\u003coptimized out>, flags=\u003coptimized out>, arena=\u003coptimized out>,\n    interactive_src=\u003coptimized out>, generate_new_source=\u003coptimized out>) at Python/pythonrun.c:1475\n```\n\nOutput from running with `PYTHON_LLTRACE=4`:\n[6_abort_lltrace.txt](https://github.com/user-attachments/files/23658402/6_abort_lltrace.txt)\n\nRunning with `PYTHON_OPT_DEBUG=4` generates no output.\n\nFound using [lafleur](https://github.com/devdanzin/lafleur/).\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.15.0a2+ (heads/main:b1558b6d3e2, Nov 20 2025, 13:04:18) [Clang 21.1.2 (2ubuntu6)]","author":{"url":"https://github.com/devdanzin","@type":"Person","name":"devdanzin"},"datePublished":"2025-11-20T16:16:15Z","url":"https://github.com/python/cpython/issues/141797"}

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:b0e378eb-63f1-31e5-d72b-6ad36ab27b24
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEC3A:1F68:180538D:1FE41D6:6B022F58
html-safe-nonce9076ffa3e1208a9668122dd5470a5a0867ebe11df769da70d6a7bfc9100bbdea
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzNBOjFGNjg6MTgwNTM4RDoxRkU0MUQ2OjZCMDIyRjU4IiwidmlzaXRvcl9pZCI6IjYyNTIxODQ3MzYzOTYwOTUzMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6d26a4366ca2b14055a90073fb3163e4d8ffd3997a0e6b926b047dedf00777d5
hovercard-subject-tagissue:3648005250
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/141797/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e1cb5c9b72b8aedb7f080e852f565101f6392b129d7b3bdb098b7e0fe856ad13/python/cpython/issues/141797
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e1cb5c9b72b8aedb7f080e852f565101f6392b129d7b3bdb098b7e0fe856ad13/python/cpython/issues/141797
og:image:altCrash report What happened? It's possible to trigger an assertion failure in a JIT build by running the code below: def f1(): class C: def __init__(self): self._items = [0, 1] self._index = 0 def _...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevdanzin
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/141797#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F141797
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%2F141797
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/141797
Reloadhttps://github.com/python/cpython/issues/141797
Reloadhttps://github.com/python/cpython/issues/141797
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/141797
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/141797
JIT: assertion failure in _PyJit_translate_single_bytecode_to_tracehttps://github.com/python/cpython/issues/141797#top
https://github.com/Fidget-Spinner
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-JIThttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-JIT%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/devdanzin
devdanzinhttps://github.com/devdanzin
on Nov 20, 2025https://github.com/python/cpython/issues/141797#issue-3648005250
6_abort_lltrace.txthttps://github.com/user-attachments/files/23658402/6_abort_lltrace.txt
lafleurhttps://github.com/devdanzin/lafleur/
devdanzinhttps://github.com/devdanzin
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-JIThttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-JIT%22
on Nov 20, 2025https://github.com/python/cpython/issues/141797#event-21075170992
https://github.com/devdanzin
devdanzinhttps://github.com/devdanzin
on Nov 20, 2025https://github.com/python/cpython/issues/141797#issuecomment-3558939049
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
on Nov 20, 2025https://github.com/python/cpython/issues/141797#issuecomment-3559199002
Fidget-Spinnerhttps://github.com/Fidget-Spinner
on Nov 20, 2025https://github.com/python/cpython/issues/141797#event-21076805707
cocolatohttps://github.com/cocolato
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 10, 2026https://github.com/python/cpython/issues/141797#event-23425556740
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/141797
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/141797
Fidget-Spinnerhttps://github.com/Fidget-Spinner
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
topic-JIThttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-JIT%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.