René's URL Explorer Experiment


Title: _interpchannels: `ChannelID.__eq__` reads module state from sys.modules without a check · Issue #161841 · python/cpython · GitHub

Open Graph Title: _interpchannels: `ChannelID.__eq__` reads module state from sys.modules without a check · Issue #161841 · python/cpython

X Title: _interpchannels: `ChannelID.__eq__` reads module state from sys.modules without a check · Issue #161841 · python/cpython

Description: Bug report Summary ChannelID comparison looks the extension module up by name in sys.modules and reads its state with PyModule_GetState, without checking that the object found is this extension's module. If the entry is replaced with a p...

Open Graph Description: Bug report Summary ChannelID comparison looks the extension module up by name in sys.modules and reads its state with PyModule_GetState, without checking that the object found is this extension's m...

X Description: Bug report Summary ChannelID comparison looks the extension module up by name in sys.modules and reads its state with PyModule_GetState, without checking that the object found is this extension'...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_interpchannels: `ChannelID.__eq__` reads module state from sys.modules without a check","articleBody":"### Bug report\n\n## Summary\n\n`ChannelID` comparison looks the extension module up by name in `sys.modules` and reads its state with `PyModule_GetState`, without checking that the object found is this extension's module.\n\nIf the entry is replaced with a plain module, `PyModule_GetState` returns `NULL` without setting an exception, and the comparison returns `NULL`, which the interpreter reports as a `SystemError`.\n\nExpected: a normal comparison result, or a clear exception.\n\n## Reproducer\n\n```python\nimport sys, types\nimport _interpchannels as ch\n\ncid = ch.create()\nsys.modules[\"_interpchannels\"] = types.ModuleType(\"_interpchannels\")\ncid == 1\n```\n\n```console\nSystemError: error return without exception set\n```\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-161869\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/grgalex","@type":"Person","name":"grgalex"},"datePublished":"2026-11-12T00:06:42Z","url":"https://github.com/python/cpython/issues/161841"}

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:eeddd02c-6b27-764a-eb43-ff74e4a0084d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDD0:2454CC:4E72726:633FA3F:6B026C08
html-safe-nonce20901d859162161466828ac45a20941c79c0c474ffc3764540ac67a421d73bad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREQwOjI0NTRDQzo0RTcyNzI2OjYzM0ZBM0Y6NkIwMjZDMDgiLCJ2aXNpdG9yX2lkIjoiNzA4OTM4NTQ3OTk5NjU5OTMwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfdcb6ab09045c2b9d003b68d08f1fff932f2ded468a85792e3ec78875dd66449
hovercard-subject-tagissue:6339572308
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/161841/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8fba1df8b1a70ed9b4d89b75ff311c2416df4265614e672aee2573b4af6cefc1/python/cpython/issues/161841
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8fba1df8b1a70ed9b4d89b75ff311c2416df4265614e672aee2573b4af6cefc1/python/cpython/issues/161841
og:image:altBug report Summary ChannelID comparison looks the extension module up by name in sys.modules and reads its state with PyModule_GetState, without checking that the object found is this extension's m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegrgalex
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/161841#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F161841
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%2F161841
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/161841
Reloadhttps://github.com/python/cpython/issues/161841
Reloadhttps://github.com/python/cpython/issues/161841
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/161841
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/161841
_interpchannels: ChannelID.__eq__ reads module state from sys.modules without a checkhttps://github.com/python/cpython/issues/161841#top
https://github.com/sobolevn
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/grgalex
grgalexhttps://github.com/grgalex
on Nov 12, 2026https://github.com/python/cpython/issues/161841#issue-6339572308
gh-161841: Fix a crash when comparing ChannelID under wrong sys.modules #161869https://github.com/python/cpython/pull/161869
grgalexhttps://github.com/grgalex
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Nov 12, 2026https://github.com/python/cpython/issues/161841#event-35856473234
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Nov 12, 2026https://github.com/python/cpython/issues/161841#issuecomment-6810371857
https://github.com/grgalex
grgalexhttps://github.com/grgalex
on Nov 12, 2026https://github.com/python/cpython/issues/161841#issuecomment-6810538460
@ZeroIntensityhttps://github.com/ZeroIntensity
#126555https://github.com/python/cpython/pull/126555
#157614https://github.com/python/cpython/issues/157614
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
on Nov 12, 2026https://github.com/python/cpython/issues/161841#issuecomment-6810637596
ZeroIntensityhttps://github.com/ZeroIntensity
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%22
on Nov 12, 2026https://github.com/python/cpython/issues/161841#event-35857707855
github-project-automationhttps://github.com/apps/github-project-automation
Subinterpretershttps://github.com/orgs/python/projects/3
on Nov 12, 2026https://github.com/python/cpython/issues/161841#event-35857709572
github-project-automationhttps://github.com/apps/github-project-automation
Subinterpretershttps://github.com/orgs/python/projects/3
on Nov 12, 2026https://github.com/python/cpython/issues/161841
sobolevnhttps://github.com/sobolevn
on Nov 12, 2026https://github.com/python/cpython/issues/161841#event-35905793575
sobolevnhttps://github.com/sobolevn
on Nov 12, 2026https://github.com/python/cpython/issues/161841#event-35910602525
pythongh-161841: Fix a crash when comparing `ChannelID` under wrong `…https://github.com/sobolevn/cpython/commit/9baa30c8fb473855dbea0eafd2b62125193bfe93
pythongh-161841https://github.com/python/cpython/issues/161841
9baa30chttps://github.com/sobolevn/cpython/commit/9baa30c8fb473855dbea0eafd2b62125193bfe93
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/161841
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/161841
sobolevnhttps://github.com/sobolevn
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
topic-subinterpretershttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22topic-subinterpreters%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
Subinterpretershttps://github.com/orgs/python/projects/3
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.