René's URL Explorer Experiment


Title: Main segfaults importing `_pyrepl` with low value for `JUMP_BACKWARD_INITIAL_VALUE` · Issue #137218 · python/cpython · GitHub

Open Graph Title: Main segfaults importing `_pyrepl` with low value for `JUMP_BACKWARD_INITIAL_VALUE` · Issue #137218 · python/cpython

X Title: Main segfaults importing `_pyrepl` with low value for `JUMP_BACKWARD_INITIAL_VALUE` · Issue #137218 · python/cpython

Description: Crash report What happened? Edit: I'm seeing this crash even without patching JUMP_BACKWARD_INITIAL_VALUE. Will try to figure out a MRE for unpatched crash. If we #define JUMP_BACKWARD_INITIAL_VALUE 702 (or lower) in Include/internal/pyc...

Open Graph Description: Crash report What happened? Edit: I'm seeing this crash even without patching JUMP_BACKWARD_INITIAL_VALUE. Will try to figure out a MRE for unpatched crash. If we #define JUMP_BACKWARD_INITIAL_VALU...

X Description: Crash report What happened? Edit: I'm seeing this crash even without patching JUMP_BACKWARD_INITIAL_VALUE. Will try to figure out a MRE for unpatched crash. If we #define JUMP_BACKWARD_INITIAL_...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Main segfaults importing `_pyrepl` with low value for `JUMP_BACKWARD_INITIAL_VALUE`","articleBody":"# Crash report\n\n### What happened?\n\nEdit: I'm seeing this crash even without patching `JUMP_BACKWARD_INITIAL_VALUE`. Will try to figure out a MRE for unpatched crash.\n\nIf we `#define JUMP_BACKWARD_INITIAL_VALUE 702` (or lower) in `Include/internal/pycore_backoff.h`, a debug JIT build will segfault when trying to run to the new REPL. Can also be triggered by:\n\n```\npython -m _pyrepl\n```\n\nUsing some other modules like `random` or `http.server` doesn't crash.\n\nAn even lower value like 344 will segfault earlier, during the build process.\n\nThis happens since https://github.com/python/cpython/pull/136307 landed in 377b787. \n\nThe diff below, which is part of that commit, is enough to cause the segfault together with defining `JUMP_BACKWARD_INITIAL_VALUE` to 702 or lower:\n```diff\ndiff --git a/Include/internal/pycore_global_objects_fini_generated.h b/Include/internal/pycore_global_objects_fini_generated.h\nindex 493377b4c25..5e7dda3a371 100644\n--- a/Include/internal/pycore_global_objects_fini_generated.h\n+++ b/Include/internal/pycore_global_objects_fini_generated.h\n@@ -1005,6 +1005,7 @@ _PyStaticObjects_CheckRefcnt(PyInterpreterState *interp) {\n     _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(imag));\n     _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(importlib));\n     _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(in_fd));\n+    _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(include_aliases));\n     _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(incoming));\n     _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(index));\n     _PyStaticObject_CheckRefcnt((PyObject *)\u0026_Py_ID(indexgroup));\ndiff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h\nindex 5dfea2f479d..6908cbf78f3 100644\n--- a/Include/internal/pycore_global_strings.h\n+++ b/Include/internal/pycore_global_strings.h\n@@ -496,6 +496,7 @@ struct _Py_global_strings {\n         STRUCT_FOR_ID(imag)\n         STRUCT_FOR_ID(importlib)\n         STRUCT_FOR_ID(in_fd)\n+        STRUCT_FOR_ID(include_aliases)\n         STRUCT_FOR_ID(incoming)\n         STRUCT_FOR_ID(index)\n         STRUCT_FOR_ID(indexgroup)\ndiff --git a/Include/internal/pycore_runtime_init_generated.h b/Include/internal/pycore_runtime_init_generated.h\nindex 85ced09d29d..da2ed7422c9 100644\n--- a/Include/internal/pycore_runtime_init_generated.h\n+++ b/Include/internal/pycore_runtime_init_generated.h\n@@ -1003,6 +1003,7 @@ extern \"C\" {\n     INIT_ID(imag), \\\n     INIT_ID(importlib), \\\n     INIT_ID(in_fd), \\\n+    INIT_ID(include_aliases), \\\n     INIT_ID(incoming), \\\n     INIT_ID(index), \\\n     INIT_ID(indexgroup), \\\ndiff --git a/Include/internal/pycore_unicodeobject_generated.h b/Include/internal/pycore_unicodeobject_generated.h\nindex 6018d98d156..b1f411945e7 100644\n--- a/Include/internal/pycore_unicodeobject_generated.h\n+++ b/Include/internal/pycore_unicodeobject_generated.h\n@@ -1772,6 +1772,10 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) {\n     _PyUnicode_InternStatic(interp, \u0026string);\n     assert(_PyUnicode_CheckConsistency(string, 1));\n     assert(PyUnicode_GET_LENGTH(string) != 1);\n+    string = \u0026_Py_ID(include_aliases);\n+    _PyUnicode_InternStatic(interp, \u0026string);\n+    assert(_PyUnicode_CheckConsistency(string, 1));\n+    assert(PyUnicode_GET_LENGTH(string) != 1);\n     string = \u0026_Py_ID(incoming);\n     _PyUnicode_InternStatic(interp, \u0026string);\n     assert(_PyUnicode_CheckConsistency(string, 1));\n```\n\nBacktrace:\n```\nProgram received signal SIGSEGV, Segmentation fault.\n_PyUnicode_Equal (str1=0x555555c88c18 \u003c_PyRuntime+96088\u003e, str2=0x555555c88c50 \u003c_PyRuntime+96144\u003e) at ./Include/object.h:815\n815         return ((flags \u0026 feature) != 0);\n\n#0  _PyUnicode_Equal (str1=0x555555c88c18 \u003c_PyRuntime+96088\u003e, str2=0x555555c88c50 \u003c_PyRuntime+96144\u003e) at ./Include/object.h:815\n#1  0x00007ffff731df15 in ?? ()\n#2  0x00007ffff764a751 in ?? ()\n#3  0x0000555555cc2230 in _PyRuntime ()\n#4  0x00007fffffffbfc0 in ?? ()\n#5  0x00007ffff7317017 in ?? ()\n#6  0x0000555556053f60 in ?? ()\n#7  0x00007ffff7e2a9c8 in ?? ()\n#8  0x00007ffff7317000 in ?? ()\n#9  0x00007ffff7e2a910 in ?? ()\n#10 0x0000555555cc2230 in _PyRuntime ()\n#11 0x00005555557cdcf9 in _PyEval_EvalFrameDefault (tstate=\u003coptimized out\u003e, frame=0x58, throwflag=1291845632)\n    at Python/generated_cases.c.h:7796\nBacktrace stopped: previous frame inner to this frame (corrupt stack?)\n```\n\nHere's the output from running `PYTHON_LLTRACE=4 ./python -m _pyrepl`:\n[lltrace_crash.txt](https://github.com/user-attachments/files/21497684/lltrace_crash.txt)\nAnd here for `PYTHON_OPT_DEBUG=4 ./python -m _pyrepl`:\n[opt_debug_crash.txt](https://github.com/user-attachments/files/21497685/opt_debug_crash.txt)\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.0a0 (heads/main-dirty:d7e12a362a2, Jul 29 2025, 18:24:07) [GCC 13.3.0]\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-137265\n* gh-139170\n* gh-139241\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/devdanzin","@type":"Person","name":"devdanzin"},"datePublished":"2025-07-29T21:49:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/137218/cpython/issues/137218"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:30af2241-4855-e6eb-3446-6e04796afc0f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBD70:12E713:3B9B4E:4C2FC9:696B4281
html-safe-nonce6d0232d49257f6dafcbb27038567d079583d41c4fd834728442e68af183cfc63
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDcwOjEyRTcxMzozQjlCNEU6NEMyRkM5OjY5NkI0MjgxIiwidmlzaXRvcl9pZCI6IjYyNTUyODA0MTAwOTUyOTQ3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5115359c9be8be3a5347358b10633c6a094c99e8813c20326c196164023c0eb1
hovercard-subject-tagissue:3275075882
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/137218/issue_layout
twitter:imagehttps://opengraph.githubassets.com/30d73b2fc0327f4db7ba3d235b3fe25a0603999c9ca9d1a3fa64c1b43bda2849/python/cpython/issues/137218
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/30d73b2fc0327f4db7ba3d235b3fe25a0603999c9ca9d1a3fa64c1b43bda2849/python/cpython/issues/137218
og:image:altCrash report What happened? Edit: I'm seeing this crash even without patching JUMP_BACKWARD_INITIAL_VALUE. Will try to figure out a MRE for unpatched crash. If we #define JUMP_BACKWARD_INITIAL_VALU...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevdanzin
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/137218#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F137218
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%2F137218
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/137218
Reloadhttps://github.com/python/cpython/issues/137218
Reloadhttps://github.com/python/cpython/issues/137218
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/137218
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/137218
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/137218
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/137218
Main segfaults importing _pyrepl with low value for JUMP_BACKWARD_INITIAL_VALUEhttps://github.com/python/cpython/issues/137218#top
https://github.com/savannahostrowski
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
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
https://github.com/devdanzin
devdanzinhttps://github.com/devdanzin
on Jul 29, 2025https://github.com/python/cpython/issues/137218#issue-3275075882
#136307https://github.com/python/cpython/pull/136307
377b787https://github.com/python/cpython/commit/377b78761814e7d848361e642d376881739d5a29
lltrace_crash.txthttps://github.com/user-attachments/files/21497684/lltrace_crash.txt
opt_debug_crash.txthttps://github.com/user-attachments/files/21497685/opt_debug_crash.txt
GH-137218: Update make for JIT stencils #137265https://github.com/python/cpython/pull/137265
GH-137218: Fix Makefile to handle FreeBSD (fix for JIT stencil changes) #139170https://github.com/python/cpython/pull/139170
GH-137218: Fix unnecessary recompile of Programs/_freeze_module #139241https://github.com/python/cpython/pull/139241
savannahostrowskihttps://github.com/savannahostrowski
buildThe build process and cross-buildhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22build%22
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.