René's URL Explorer Experiment


Title: JIT: Assertion `exc && PyExceptionInstance_Check(exc)` failed in `*_PyEval_EvalFrameDefault` · Issue #143358 · python/cpython · GitHub

Open Graph Title: JIT: Assertion `exc && PyExceptionInstance_Check(exc)` failed in `*_PyEval_EvalFrameDefault` · Issue #143358 · python/cpython

X Title: JIT: Assertion `exc && PyExceptionInstance_Check(exc)` failed in `*_PyEval_EvalFrameDefault` · Issue #143358 · python/cpython

Description: Crash report What happened? It's possible to cause an abort in a patched debug JIT build by running the following MRE. The necessary patch: diff --git a/Include/internal/pycore_backoff.h b/Include/internal/pycore_backoff.h index 23ca7299...

Open Graph Description: Crash report What happened? It's possible to cause an abort in a patched debug JIT build by running the following MRE. The necessary patch: diff --git a/Include/internal/pycore_backoff.h b/Include/...

X Description: Crash report What happened? It's possible to cause an abort in a patched debug JIT build by running the following MRE. The necessary patch: diff --git a/Include/internal/pycore_backoff.h b/Incl...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JIT: Assertion `exc && PyExceptionInstance_Check(exc)` failed in `*_PyEval_EvalFrameDefault`","articleBody":"# Crash report\n\n### What happened?\n\nIt's possible to cause an abort in a patched debug JIT build by running the following MRE.\n\nThe necessary patch:\n```diff\ndiff --git a/Include/internal/pycore_backoff.h b/Include/internal/pycore_backoff.h\nindex 23ca7299e0d..0289b5fee7c 100644\n--- a/Include/internal/pycore_backoff.h\n+++ b/Include/internal/pycore_backoff.h\n@@ -124,7 +124,7 @@ trigger_backoff_counter(void)\n // For example, 4095 does not work for the nqueens benchmark on pyperformance\n // as we always end up tracing the loop iteration's\n // exhaustion iteration. Which aborts our current tracer.\n-#define JUMP_BACKWARD_INITIAL_VALUE 4000\n+#define JUMP_BACKWARD_INITIAL_VALUE 63\n #define JUMP_BACKWARD_INITIAL_BACKOFF 6\n static inline _Py_BackoffCounter\n initial_jump_backoff_counter(void)\n@@ -137,7 +137,7 @@ initial_jump_backoff_counter(void)\n  * Must be larger than ADAPTIVE_COOLDOWN_VALUE,\n  * otherwise when a side exit warms up we may construct\n  * a new trace before the Tier 1 code has properly re-specialized. */\n-#define SIDE_EXIT_INITIAL_VALUE 4000\n+#define SIDE_EXIT_INITIAL_VALUE 63\n #define SIDE_EXIT_INITIAL_BACKOFF 6\n\n static inline _Py_BackoffCounter\n```\n\nMRE:\n```python\ndef f1():\n\n    class EvilIterator:\n\n        def __init__(self):\n            self._items = [1, 2]\n            self._index = 1\n\n        def __iter__(self):\n            return self\n\n        def __next__(self):\n            if not len(self._items) % 13:\n                self._items.clear()\n\n            for i_loop_9279 in range(10):\n                self._items.extend([1, \"\", None])\n\n            if not len(self._items) % 11:\n                return 'unexpected_type_from_iterator'\n\n            if self._index >= len(self._items):\n                raise StopIteration\n\n            item = self._items[self._index]\n            self._index += 1\n            return item\n\n    evil_iter = EvilIterator()\n\n    large_num = 2**31\n    for _ in range(400):\n        try:\n            _ = [x + y for x in evil_iter for y in evil_iter if evil_iter._items.append(x) or large_num]\n        except TypeError:\n            pass\n\nf1()\n```\n\nBacktrace:\n```batch\npython: Python/generated_cases.c.h:9901: PyObject *_PyEval_EvalFrameDefault(PyThreadState *, _PyInterpreterFrame *, int): Assertion `exc && PyExceptionInstance_Check(exc)' 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  0x0000555555ebab3f in _PyEval_EvalFrameDefault (tstate=\u003coptimized out>, frame=\u003coptimized out>, throwflag=\u003coptimized out>) at Python/generated_cases.c.h:9901\n#8  0x0000555555e6dc98 in _PyEval_EvalFrame (tstate=0x555556e808c0 \u003c_PyRuntime+359392>, frame=0x7e8ff6fe5220, throwflag=0) at ./Include/internal/pycore_ceval.h:118\n#9  _PyEval_Vector (tstate=\u003coptimized out>, func=\u003coptimized out>, locals=\u003coptimized out>, args=\u003coptimized out>, argcount=\u003coptimized out>, kwnames=0x0) at Python/ceval.c:2542\n#10 0x0000555555e6d6b5 in PyEval_EvalCode (co=\u003coptimized out>, globals=\u003coptimized out>, locals=0x7c7ff70865c0) at Python/ceval.c:1008\n#11 0x00005555564626df in run_eval_code_obj (tstate=tstate@entry=0x555556e808c0 \u003c_PyRuntime+359392>, co=co@entry=0x7d1ff701afd0, globals=globals@entry=0x7c7ff70865c0,\n    locals=locals@entry=0x7c7ff70865c0) at Python/pythonrun.c:1366\n#12 0x00005555564618ac 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:1469\n#13 0x000055555645bead in pyrun_file (fp=fp@entry=0x7d4ff6fefa80, filename=filename@entry=0x7ccff6ffafc0, start=start@entry=257, globals=globals@entry=0x7c7ff70865c0,\n    locals=locals@entry=0x7c7ff70865c0, closeit=closeit@entry=1, flags=0x7bfff5e1e910) at Python/pythonrun.c:1294\n#14 0x0000555556459a0d in _PyRun_SimpleFileObject (fp=\u003coptimized out>, filename=\u003coptimized out>, closeit=\u003coptimized out>, flags=\u003coptimized out>) at Python/pythonrun.c:518\n#15 0x0000555556458d7e in _PyRun_AnyFileObject (fp=fp@entry=0x7d4ff6fefa80, filename=filename@entry=0x7ccff6ffafc0, closeit=closeit@entry=1, flags=flags@entry=0x7bfff5e1e910)\n    at Python/pythonrun.c:81\n#16 0x00005555564d4cfb in pymain_run_file_obj (program_name=0x7caff7026d50, filename=0x7ccff6ffafc0, skip_source_first_line=0) at Modules/main.c:410\n#17 pymain_run_file (config=0x555556e4b998 \u003c_PyRuntime+142520>) at Modules/main.c:429\n#18 0x00005555564d2dc4 in pymain_run_python (exitcode=0x7bfff5e1e500) at Modules/main.c:691\n#19 Py_RunMain () at Modules/main.c:772\n#20 0x00005555564d3cc7 in pymain_main (args=\u003coptimized out>) at Modules/main.c:802\n#21 0x00005555564d3e38 in Py_BytesMain (argc=\u003coptimized out>, argv=0x7fffffffdbe8) at Modules/main.c:826\n#22 0x00007ffff7c2a575 in __libc_start_call_main (main=main@entry=0x555555919c40 \u003cmain>, argc=argc@entry=2, argv=argv@entry=0x7fffffffdbe8) at ../sysdeps/nptl/libc_start_call_main.h:58\n#23 0x00007ffff7c2a628 in __libc_start_main_impl (main=0x555555919c40 \u003cmain>, argc=2, argv=0x7fffffffdbe8, init=\u003coptimized out>, fini=\u003coptimized out>, rtld_fini=\u003coptimized out>,\n    stack_end=0x7fffffffdbd8) at ../csu/libc-start.c:360\n#24 0x00005555558304f5 in _start ()\n```\n\nOutput from running with `PYTHON_LLTRACE=4 PYTHON_OPT_DEBUG=4`:\n[2394_segfault_lltrace.txt](https://github.com/user-attachments/files/24408834/2394_segfault_lltrace.txt)\n\nFound using [lafleur](https://github.com/devdanzin/lafleur/).\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.15.0a3+ (heads/main-dirty:61f2ad9a3a7, Jan  2 2026, 11:43:51) [Clang 21.1.2 (2ubuntu6)]","author":{"url":"https://github.com/devdanzin","@type":"Person","name":"devdanzin"},"datePublished":"2026-01-02T14:54:50Z","url":"https://github.com/python/cpython/issues/143358"}

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:7459a659-97fb-25dd-810e-bf9d88f8d54f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8BCA:E0ADF:1BFE8F1:234040F:6B02368D
html-safe-noncef31524fe997ee9359caab391aa19c38375fce2c5cd414264c202d58073bca6bd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkNBOkUwQURGOjFCRkU4RjE6MjM0MDQwRjo2QjAyMzY4RCIsInZpc2l0b3JfaWQiOiI4OTQ4OTI2Nzg1MjM2NjQ1NTE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5bcda256313a130e9f0a364f786e93c8365e1e6974e0e2961688d6a58b687ac3
hovercard-subject-tagissue:3776531368
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/143358/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a714af209b75b2423a8e59069df237e06f1a632347b9b87a2f2a6e16e8b8235d/python/cpython/issues/143358
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a714af209b75b2423a8e59069df237e06f1a632347b9b87a2f2a6e16e8b8235d/python/cpython/issues/143358
og:image:altCrash report What happened? It's possible to cause an abort in a patched debug JIT build by running the following MRE. The necessary patch: diff --git a/Include/internal/pycore_backoff.h b/Include/...
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/143358#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F143358
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%2F143358
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/143358
Reloadhttps://github.com/python/cpython/issues/143358
Reloadhttps://github.com/python/cpython/issues/143358
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/143358
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/143358
#143126https://github.com/python/cpython/pull/143126
JIT: Assertion exc && PyExceptionInstance_Check(exc) failed in *_PyEval_EvalFrameDefaulthttps://github.com/python/cpython/issues/143358#top
#143126https://github.com/python/cpython/pull/143126
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 Jan 2, 2026https://github.com/python/cpython/issues/143358#issue-3776531368
2394_segfault_lltrace.txthttps://github.com/user-attachments/files/24408834/2394_segfault_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 Jan 2, 2026https://github.com/python/cpython/issues/143358#event-21828369713
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
on Jan 2, 2026https://github.com/python/cpython/issues/143358#issuecomment-3705571281
#141504https://github.com/python/cpython/issues/141504
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
on Jan 4, 2026https://github.com/python/cpython/issues/143358#issuecomment-3708519715
@markshannonhttps://github.com/markshannon
https://github.com/cocolato
cocolatohttps://github.com/cocolato
on Jan 6, 2026https://github.com/python/cpython/issues/143358#issuecomment-3714187301
https://github.com/Fidget-Spinner
Fidget-Spinnerhttps://github.com/Fidget-Spinner
on Jan 6, 2026https://github.com/python/cpython/issues/143358#issuecomment-3714289831
markshannonhttps://github.com/markshannon
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#143126https://github.com/python/cpython/pull/143126
on Jan 14, 2026https://github.com/python/cpython/issues/143358#event-22042061653
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/143358
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/143358
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.