René's URL Explorer Experiment


Title: SEGV functools _Py_dict_lookup · Issue #140590 · python/cpython · GitHub

Open Graph Title: SEGV functools _Py_dict_lookup · Issue #140590 · python/cpython

X Title: SEGV functools _Py_dict_lookup · Issue #140590 · python/cpython

Description: Crash report What happened? import functools import unittest def capture(*args, **kw): return (args, kw) def extract_sig(part): return (part.func, part.args, part.keywords, part.__dict__) class MyTuple(tuple): def __add__(self, other): r...

Open Graph Description: Crash report What happened? import functools import unittest def capture(*args, **kw): return (args, kw) def extract_sig(part): return (part.func, part.args, part.keywords, part.__dict__) class MyT...

X Description: Crash report What happened? import functools import unittest def capture(*args, **kw): return (args, kw) def extract_sig(part): return (part.func, part.args, part.keywords, part.__dict__) class MyT...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SEGV functools _Py_dict_lookup","articleBody":"# Crash report\n\n### What happened?\n\n```python\nimport functools\nimport unittest\ndef capture(*args, **kw):\n    return (args, kw)\ndef extract_sig(part):\n    return (part.func, part.args, part.keywords, part.__dict__)\nclass MyTuple(tuple):\n    def __add__(self, other):\n        return list(self) + list(other)\nclass MyDict(dict):\n    pass\nclass TestPartialSetstateSubclasses(unittest.TestCase):\n        f = functools.partial(extract_sig)\n        f.__setstate__((capture, MyTuple((1,)), MyDict(a=10), '\\u2603'))\n        f.__setstate__((capture, BadTuple((1,)), {}, None))\nif __name__ == \"__main__\":\n    import unittest; unittest.main(verbosity=0)\n```\n\n```\nAddressSanitizer:DEADLYSIGNAL\n=================================================================\n==197163==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x583829da5bda bp 0x7ffd359603d0 sp 0x7ffd35960320 T0)\n==197163==The signal is caused by a READ memory access.\n==197163==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.\n    #0 0x583829da5bda in _Py_dict_lookup ../Objects/dictobject.c:1254\n    #1 0x583829dae83f in _Py_dict_lookup_threadsafe ../Objects/dictobject.c:1643\n    #2 0x583829dae83f in _PyDict_GetMethodStackRef ../Objects/dictobject.c:1691\n    #3 0x583829dfc2ff in _PyObject_GetMethodStackRef ../Objects/object.c:1756\n    #4 0x583829b831a4 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:7844\n    #5 0x58382a057b55 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121\n    #6 0x58382a057b55 in _PyEval_Vector ../Python/ceval.c:2001\n    #7 0x58382a0439e8 in builtin___build_class__ ../Python/bltinmodule.c:205\n    #8 0x583829cd2ee7 in _PyObject_VectorcallTstate ../Include/internal/pycore_call.h:169\n    #9 0x583829cd2ee7 in PyObject_Vectorcall ../Objects/call.c:327\n    #10 0x583829b74ad2 in _PyEval_EvalFrameDefault ../Python/generated_cases.c.h:1620\n    #11 0x58382a057386 in _PyEval_EvalFrame ../Include/internal/pycore_ceval.h:121\n    #12 0x58382a057386 in _PyEval_Vector ../Python/ceval.c:2001\n    #13 0x58382a057386 in PyEval_EvalCode ../Python/ceval.c:884\n    #14 0x58382a215f0e in run_eval_code_obj ../Python/pythonrun.c:1365\n    #15 0x58382a215f0e in run_mod ../Python/pythonrun.c:1459\n    #16 0x58382a21abb7 in pyrun_file ../Python/pythonrun.c:1293\n    #17 0x58382a21abb7 in _PyRun_SimpleFileObject ../Python/pythonrun.c:521\n    #18 0x58382a21b6dc in _PyRun_AnyFileObject ../Python/pythonrun.c:81\n    #19 0x58382a28eafc in pymain_run_file_obj ../Modules/main.c:410\n    #20 0x58382a28eafc in pymain_run_file ../Modules/main.c:429\n    #21 0x58382a28eafc in pymain_run_python ../Modules/main.c:691\n    #22 0x58382a2903de in Py_RunMain ../Modules/main.c:772\n    #23 0x58382a2903de in pymain_main ../Modules/main.c:802\n    #24 0x58382a2903de in Py_BytesMain ../Modules/main.c:826\n    #25 0x7249b00571c9  (/lib/x86_64-linux-gnu/libc.so.6+0x2a1c9) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)\n    #26 0x7249b005728a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28a) (BuildId: 282c2c16e7b6600b0b22ea0c99010d2795752b5f)\n\nAddressSanitizer can not provide additional info.\nSUMMARY: AddressSanitizer: SEGV ../Objects/dictobject.c:1254 in _Py_dict_lookup\n==197163==ABORTING\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\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-140671\n* gh-140698\n* gh-140699\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/YuanchengJiang","@type":"Person","name":"YuanchengJiang"},"datePublished":"2025-10-25T15:22:21Z","url":"https://github.com/python/cpython/issues/140590"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:95e10b65-f0a9-9537-a8fc-87ac0b570dce
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD93E:3472C0:5EB530:839B34:6AF85B18
html-safe-nonce7242f25d187db4795bbf25b5bb3fa4a078668c93af1c90ad70784b498c4a32f6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTNFOjM0NzJDMDo1RUI1MzA6ODM5QjM0OjZBRjg1QjE4IiwidmlzaXRvcl9pZCI6IjM0NjI4MzQxMzAyNzIxNDgyNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd78b4c1b398dffc6645107ad1b85083d7c3f21318709ff7d55844ed450176608
hovercard-subject-tagissue:3552622239
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/140590/issue_layout
twitter:imagehttps://opengraph.githubassets.com/85a804a742620b8ca0922c4f63fbe04494983bdd299f96d625dd42c9a0fb1703/python/cpython/issues/140590
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85a804a742620b8ca0922c4f63fbe04494983bdd299f96d625dd42c9a0fb1703/python/cpython/issues/140590
og:image:altCrash report What happened? import functools import unittest def capture(*args, **kw): return (args, kw) def extract_sig(part): return (part.func, part.args, part.keywords, part.__dict__) class MyT...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYuanchengJiang
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
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
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/140590#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F140590
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%2F140590
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/140590
Reloadhttps://github.com/python/cpython/issues/140590
Reloadhttps://github.com/python/cpython/issues/140590
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/pulse
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/140590
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/140590
SEGV functools _Py_dict_lookuphttps://github.com/python/cpython/issues/140590#top
https://github.com/sergey-miryanov
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%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/YuanchengJiang
YuanchengJianghttps://github.com/YuanchengJiang
on Oct 25, 2025https://github.com/python/cpython/issues/140590#issue-3552622239
GH-140590: Fix setstate for functools.partial C-module #140671https://github.com/python/cpython/pull/140671
[3.14] GH-140590: Fix setstate for functools.partial C-module (GH-140671) #140698https://github.com/python/cpython/pull/140698
[3.13] GH-140590: Fix setstate for functools.partial C-module (GH-140671) #140699https://github.com/python/cpython/pull/140699
YuanchengJianghttps://github.com/YuanchengJiang
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
on Oct 25, 2025https://github.com/python/cpython/issues/140590#event-20503105727
devdanzinhttps://github.com/devdanzin
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on Oct 25, 2025https://github.com/python/cpython/issues/140590#event-20503375021
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
on Oct 25, 2025https://github.com/python/cpython/issues/140590#issuecomment-3447748834
sergey-miryanovhttps://github.com/sergey-miryanov
on Oct 25, 2025https://github.com/python/cpython/issues/140590#event-20504499839
efimov-mikhailhttps://github.com/efimov-mikhail
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
on Oct 27, 2025https://github.com/python/cpython/issues/140590#event-20528370021
https://github.com/efimov-mikhail
efimov-mikhailhttps://github.com/efimov-mikhail
on Oct 27, 2025https://github.com/python/cpython/issues/140590#issuecomment-3451795414
https://github.com/sergey-miryanov
sergey-miryanovhttps://github.com/sergey-miryanov
on Oct 27, 2025https://github.com/python/cpython/issues/140590#issuecomment-3451847692
encukouhttps://github.com/encukou
on Oct 28, 2025https://github.com/python/cpython/issues/140590#event-20548126326
GH-140590: Fix setstate for functools.partial C-module (GH-140671)https://github.com/python/cpython/commit/d26686a7f87d63499f7296c0811fa0535637a93b
GH-140590https://github.com/python/cpython/issues/140590
GH-140671https://github.com/python/cpython/pull/140671
d26686ahttps://github.com/python/cpython/commit/d26686a7f87d63499f7296c0811fa0535637a93b
miss-islingtonhttps://github.com/miss-islington
on Oct 28, 2025https://github.com/python/cpython/issues/140590#event-20548137373
pythonGH-140590: Fix setstate for functools.partial C-module (pythonG…https://github.com/miss-islington/cpython/commit/e4afd72f28ceaaee5710784bef936ed6f140ced5
pythonGH-140590https://github.com/python/cpython/issues/140590
pythonG…https://github.com/python/cpython/pull/140671
e4afd72https://github.com/miss-islington/cpython/commit/e4afd72f28ceaaee5710784bef936ed6f140ced5
pythonGH-140590: Fix setstate for functools.partial C-module (pythonG…https://github.com/miss-islington/cpython/commit/87deecf5146c918a06e1bb201cf895f26fad21a5
pythonGH-140590https://github.com/python/cpython/issues/140590
pythonG…https://github.com/python/cpython/pull/140671
87deecfhttps://github.com/miss-islington/cpython/commit/87deecf5146c918a06e1bb201cf895f26fad21a5
kumaraditya303https://github.com/kumaraditya303
on Oct 28, 2025https://github.com/python/cpython/issues/140590#event-20552995841
[3.13] GH-140590: Fix setstate for functools.partial C-module (GH-140671https://github.com/python/cpython/commit/bec053c1846f0395e92381583bf5a9b855caf99a
GH-140590https://github.com/python/cpython/issues/140590
GH-140671https://github.com/python/cpython/pull/140671
bec053chttps://github.com/python/cpython/commit/bec053c1846f0395e92381583bf5a9b855caf99a
[3.14] GH-140590: Fix setstate for functools.partial C-module (GH-140671https://github.com/python/cpython/commit/02604314ba3e97cc1918520e9ef5c0c4a6e7fe47
GH-140590https://github.com/python/cpython/issues/140590
GH-140671https://github.com/python/cpython/pull/140671
0260431https://github.com/python/cpython/commit/02604314ba3e97cc1918520e9ef5c0c4a6e7fe47
kumaraditya303https://github.com/kumaraditya303
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 28, 2025https://github.com/python/cpython/issues/140590#event-20553035126
StanFromIrelandhttps://github.com/StanFromIreland
on Dec 6, 2025https://github.com/python/cpython/issues/140590#event-21401818357
pythonGH-140590: Fix setstate for functools.partial C-module (pythonG…https://github.com/StanFromIreland/cpython/commit/43e04a2134cf59b8a52a9b8a1cc40c1ea677410d
pythonGH-140590https://github.com/python/cpython/issues/140590
pythonG…https://github.com/python/cpython/pull/140671
43e04a2https://github.com/StanFromIreland/cpython/commit/43e04a2134cf59b8a52a9b8a1cc40c1ea677410d
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/140590
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/140590
sergey-miryanovhttps://github.com/sergey-miryanov
3.15bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.15%22
extension-modulesC modules in the Modules dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%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.