René's URL Explorer Experiment


Title: `PyFrame_GetBack` segfaults if called in a `sys.settrace` hook on `3.11.1` · Issue #100536 · python/cpython · GitHub

Open Graph Title: `PyFrame_GetBack` segfaults if called in a `sys.settrace` hook on `3.11.1` · Issue #100536 · python/cpython

X Title: `PyFrame_GetBack` segfaults if called in a `sys.settrace` hook on `3.11.1` · Issue #100536 · python/cpython

Description: Crash report When PyFrame_GetBack is called during a sys.settrace hook in a C extension, it segfaults for some libraries(spacy) Following is a reproducer: https://gist.github.com/sumerc/b254f38c5a620b8d47aba7398b3c7791. Error messages En...

Open Graph Description: Crash report When PyFrame_GetBack is called during a sys.settrace hook in a C extension, it segfaults for some libraries(spacy) Following is a reproducer: https://gist.github.com/sumerc/b254f38c5a6...

X Description: Crash report When PyFrame_GetBack is called during a sys.settrace hook in a C extension, it segfaults for some libraries(spacy) Following is a reproducer: https://gist.github.com/sumerc/b254f38c5a6...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`PyFrame_GetBack` segfaults if called in a `sys.settrace` hook on `3.11.1`","articleBody":"# Crash report\r\n\r\nWhen `PyFrame_GetBack` is called during a `sys.settrace` hook in a C extension, it segfaults for some libraries(`spacy`)\r\nFollowing is a reproducer: https://gist.github.com/sumerc/b254f38c5a620b8d47aba7398b3c7791. \r\n\r\n# Error messages\r\n\r\nEnter any relevant error message caused by the crash, including a core dump if there is one. \r\n\r\nA gdb stack trace: (for more information: the last frame executed was `\u003cframe at 0x7fffd25b2d40, file 'thinc/backends/numpy_ops.pyx', line 1, code __Pyx_PyMODINIT_FUNC PyInit_numpy_ops(void)\u003e`) I also have another application that crashes at the same point but with a different frame: `\u003cframe at 0x7ff6568e4520, file 'stringsource', line 282, code __init__\u003e`. The interesting part is both are Cython functions. Might there be something related with Cython?\r\n\r\n```\r\nThread 1 \"python\" received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff767a548 in _PyFrame_IsIncomplete (frame=0xcdcdcdcdcdcdcdcd) at ./Include/internal/pycore_frame.h:147\r\n147     ./Include/internal/pycore_frame.h: No such file or directory.\r\n(gdb) bt\r\n#0  0x00007ffff767a548 in _PyFrame_IsIncomplete (frame=0xcdcdcdcdcdcdcdcd) at ./Include/internal/pycore_frame.h:147\r\n#1  0x00007ffff767d9e7 in PyFrame_GetBack (frame=0x7fffd03ef120) at Objects/frameobject.c:1326\r\n#2  0x00007ffff60e7bce in PyTraceFunction (obj=0x0, frame=0x7fffd03ef120, what=0, arg=0x0) at main.c:33\r\n#3  0x00007fffd02db71b in ?? () from /home/supo/.pyenv/versions/3.11.1-debug/lib/python3.11/site-packages/thinc/backends/[numpy_ops.cpython-311-x86_64-linux-gnu.so](http://numpy_ops.cpython-311-x86_64-linux-gnu.so/)\r\n#4  0x00007fffd02d4697 in ?? () from /home/supo/.pyenv/versions/3.11.1-debug/lib/python3.11/site-packages/thinc/backends/[numpy_ops.cpython-311-x86_64-linux-gnu.so](http://numpy_ops.cpython-311-x86_64-linux-gnu.so/)\r\n#5  0x00007ffff76bab22 in PyModule_ExecDef (module=0x7fffd16273b0, def=0x7fffd038ba60) at Objects/moduleobject.c:419\r\n#6  0x00007ffff77f38ec in exec_builtin_or_dynamic (mod=0x7fffd16273b0) at Python/import.c:2333\r\n#7  0x00007ffff77f3ab8 in _imp_exec_dynamic_impl (module=0x7ffff7f83bf0, mod=0x7fffd16273b0) at Python/import.c:2407\r\n#8  0x00007ffff77ef0b0 in _imp_exec_dynamic (module=0x7ffff7f83bf0, mod=0x7fffd16273b0) at Python/clinic/import.c.h:474\r\n#9  0x00007ffff76b9170 in cfunction_vectorcall_O (func=0x7ffff7f882f0, args=0x7fffd03e1ff8, nargsf=1, kwnames=0x0) at Objects/methodobject.c:514\r\n#10 0x00007ffff764bf31 in _PyVectorcall_Call (tstate=0x7ffff7d8ba38 \u003c_PyRuntime+166328\u003e, func=0x7ffff76b9065 \u003ccfunction_vectorcall_O\u003e, callable=0x7ffff7f882f0,\r\n    tuple=0x7fffd03e1fe0, kwargs=0x7fffd03fc4d0) at Objects/call.c:245\r\n#11 0x00007ffff764c2d9 in _PyObject_Call (tstate=0x7ffff7d8ba38 \u003c_PyRuntime+166328\u003e, callable=0x7ffff7f882f0, args=0x7fffd03e1fe0, kwargs=0x7fffd03fc4d0)\r\n    at Objects/call.c:328\r\n#12 0x00007ffff764c3cb in PyObject_Call (callable=0x7ffff7f882f0, args=0x7fffd03e1fe0, kwargs=0x7fffd03fc4d0) at Objects/call.c:355\r\n#13 0x00007ffff77b4158 in do_call_core (tstate=0x7ffff7d8ba38 \u003c_PyRuntime+166328\u003e, func=0x7ffff7f882f0, callargs=0x7fffd03e1fe0, kwdict=0x7fffd03fc4d0,\r\n    use_tracing=255) at Python/ceval.c:7329\r\n```\r\n\r\n# Your environment\r\n\r\nI have reproduced same error for Python `3.11.0rc1` on `Ubuntu 18.04`/`x86/64` and a Mac M1. (The same code runs fine on `3.9`)\r\n\r\nUpdate: Reproduced the segfault with `3.11.1` final release, too.\r\n\r\n@pablogsal, Any idea?","author":{"url":"https://github.com/sumerc","@type":"Person","name":"sumerc"},"datePublished":"2022-12-26T14:37:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/100536/cpython/issues/100536"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d68bca3e-e0cb-f17b-f69d-da36ea60ae1f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE6C4:17C6E:25974C3:34E5064:69691AAF
html-safe-nonce7d29fe33fd37927f6ec46fa1275dd68de79054c64a417a335e7c740b9a714511
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkM0OjE3QzZFOjI1OTc0QzM6MzRFNTA2NDo2OTY5MUFBRiIsInZpc2l0b3JfaWQiOiI2OTU4MDI1Mjc1MzE2MTgxNjc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacecce10dae6646bf2658c3ddc436adf2d7c4b660224c7acbb358cdab6e8a90333
hovercard-subject-tagissue:1511006698
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/100536/issue_layout
twitter:imagehttps://opengraph.githubassets.com/501f7feabfad08087088d23536781c857793c99a488e66d3a57fa7a7785a64f6/python/cpython/issues/100536
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/501f7feabfad08087088d23536781c857793c99a488e66d3a57fa7a7785a64f6/python/cpython/issues/100536
og:image:altCrash report When PyFrame_GetBack is called during a sys.settrace hook in a C extension, it segfaults for some libraries(spacy) Following is a reproducer: https://gist.github.com/sumerc/b254f38c5a6...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesumerc
hostnamegithub.com
expected-hostnamegithub.com
None0e60568924309a021b51adabdce15c2a2f285b556f3130d1a2fa2a5bce11c55f
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
releasedd206f7ed6207863172be4a783826e86bd2375c3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/100536#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F100536
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%2F100536
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/100536
Reloadhttps://github.com/python/cpython/issues/100536
Reloadhttps://github.com/python/cpython/issues/100536
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/100536
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 2k 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/100536
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/100536
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/100536
PyFrame_GetBack segfaults if called in a sys.settrace hook on 3.11.1https://github.com/python/cpython/issues/100536#top
https://github.com/brandtbucher
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/sumerc
https://github.com/sumerc
sumerchttps://github.com/sumerc
on Dec 26, 2022https://github.com/python/cpython/issues/100536#issue-1511006698
https://gist.github.com/sumerc/b254f38c5a620b8d47aba7398b3c7791https://gist.github.com/sumerc/b254f38c5a620b8d47aba7398b3c7791
@pablogsalhttps://github.com/pablogsal
brandtbucherhttps://github.com/brandtbucher
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.