René's URL Explorer Experiment


Title: GC crash _PyObject_AssertFailed with pdb · Issue #94215 · python/cpython · GitHub

Open Graph Title: GC crash _PyObject_AssertFailed with pdb · Issue #94215 · python/cpython

X Title: GC crash _PyObject_AssertFailed with pdb · Issue #94215 · python/cpython

Description: Reproducer: def func(): print( 42 ) import pdb; pdb.set_trace() func() Crash: @kumaraditya303 ➜ /workspaces/cpython (main ✗) $ ./python main.py > /workspaces/cpython/main.py(7)() -> func() (Pdb) s --Call-- > /workspaces/cpython/m...

Open Graph Description: Reproducer: def func(): print( 42 ) import pdb; pdb.set_trace() func() Crash: @kumaraditya303 ➜ /workspaces/cpython (main ✗) $ ./python main.py > /workspaces/cpython/main.py(7)() -> func() ...

X Description: Reproducer: def func(): print( 42 ) import pdb; pdb.set_trace() func() Crash: @kumaraditya303 ➜ /workspaces/cpython (main ✗) $ ./python main.py > /workspaces/cpython/main.py(7)<module>() -...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GC crash _PyObject_AssertFailed with pdb","articleBody":"Reproducer:\r\n```py\r\ndef func():\r\n    print(\r\n      42\r\n    )\r\n\r\nimport pdb; pdb.set_trace()\r\nfunc()\r\n```\r\n\r\nCrash:\r\n```console\r\n@kumaraditya303 ➜ /workspaces/cpython (main ✗) $ ./python main.py \r\n\u003e /workspaces/cpython/main.py(7)\u003cmodule\u003e()\r\n-\u003e func()\r\n(Pdb) s\r\n--Call--\r\n\u003e /workspaces/cpython/main.py(1)func()\r\n-\u003e def func():\r\n(Pdb) n\r\n\u003e /workspaces/cpython/main.py(2)func()\r\n-\u003e print(\r\n(Pdb) n\r\n\u003e /workspaces/cpython/main.py(3)func()\r\n-\u003e 42\r\n(Pdb) j 1\r\n\u003e /workspaces/cpython/main.py(1)func()\r\n-\u003e def func():\r\n(Pdb) exit\r\nTraceback (most recent call last):\r\n  File \"/workspaces/cpython/main.py\", line 7, in \u003cmodule\u003e\r\n    func()\r\n    ^^^^^^\r\n  File \"/workspaces/cpython/main.py\", line 1, in func\r\n    def func():\r\n    \r\n  File \"/workspaces/cpython/main.py\", line 1, in func\r\n    def func():\r\n    \r\n  File \"/workspaces/cpython/Lib/bdb.py\", line 90, in trace_dispatch\r\n    return self.dispatch_line(frame)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/workspaces/cpython/Lib/bdb.py\", line 115, in dispatch_line\r\n    if self.quitting: raise BdbQuit\r\n                      ^^^^^^^^^^^^^\r\nbdb.BdbQuit\r\nModules/gcmodule.c:113: gc_decref: Assertion \"gc_get_refs(g) \u003e 0\" failed: refcount is too small\r\nEnable tracemalloc to get the memory block allocation traceback\r\n\r\nobject address  : 0x7f18ff3b81d0\r\nobject refcount : 2\r\nobject type     : 0x55cfef2a6460\r\nobject type name: builtin_function_or_method\r\nobject repr     : \u003cbuilt-in function print\u003e\r\n\r\nFatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed\r\nPython runtime state: finalizing (tstate=0x000055cfef3bca48)\r\n\r\nCurrent thread 0x00007f18ff707280 (most recent call first):\r\n  Garbage-collecting\r\n  \u003cno Python frame\u003e\r\nAborted (core dumped)\r\n```\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eGDB stack trace (main)\u003c/summary\u003e\r\n\r\n```console\r\n#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50\r\n#1  0x00007ffff7c71859 in __GI_abort () at abort.c:79\r\n#2  0x000055555585db52 in fatal_error_exit (status=-1) at Python/pylifecycle.c:2614\r\n#3  fatal_error (fd=2, header=header@entry=1, prefix=\u003coptimized out\u003e, \r\n    prefix@entry=0x55555594cd70 \u003c__func__.19026\u003e \"_PyObject_AssertFailed\", msg=\u003coptimized out\u003e, \r\n    msg@entry=0x55555594c575 \"_PyObject_AssertFailed\", status=status@entry=-1)\r\n    at Python/pylifecycle.c:2795\r\n#4  0x000055555585dbb4 in _Py_FatalErrorFunc (\r\n    func=func@entry=0x55555594cd70 \u003c__func__.19026\u003e \"_PyObject_AssertFailed\", \r\n    msg=msg@entry=0x55555594c575 \"_PyObject_AssertFailed\") at Python/pylifecycle.c:2811\r\n#5  0x00005555557431d2 in _PyObject_AssertFailed (\r\n    obj=obj@entry=\u003cbuilt-in method print of module object at remote 0x7ffff78f32f0\u003e, \r\n    expr=expr@entry=0x5555559ab18c \"gc_get_refs(g) \u003e 0\", \r\n    msg=msg@entry=0x55555594c5eb \"refcount is too small\", \r\n    file=file@entry=0x5555559ab11c \"Modules/gcmodule.c\", line=line@entry=113, \r\n    function=function@entry=0x5555559ab6c8 \u003c__func__.18373\u003e \"gc_decref\") at Objects/object.c:2360\r\n#6  0x000055555588ad50 in gc_decref (g=0x7ffff79001c0) at Modules/gcmodule.c:116\r\n#7  visit_decref (op=\u003cbuilt-in method print of module object at remote 0x7ffff78f32f0\u003e, \r\n    parent=0x7ffff7900ad0) at Modules/gcmodule.c:459\r\n#8  0x00005555557249a5 in dict_traverse (op=\u003coptimized out\u003e, visit=0x55555588ac96 \u003cvisit_decref\u003e, \r\n    arg=0x7ffff7900ad0) at Objects/dictobject.c:3547\r\n#9  0x000055555588a741 in subtract_refs (\r\n    containers=containers@entry=0x555555b869a8 \u003c_PyRuntime+53896\u003e) at Modules/gcmodule.c:478\r\n#10 0x000055555588be95 in deduce_unreachable (unreachable=0x7fffffffc1d0, \r\n    base=0x555555b869a8 \u003c_PyRuntime+53896\u003e) at Modules/gcmodule.c:1100\r\n#11 gc_collect_main (tstate=tstate@entry=0x555555ba0a48 \u003c_PyRuntime+160552\u003e, \r\n    generation=generation@entry=2, n_collected=n_collected@entry=0x7fffffffc258, \r\n    n_uncollectable=n_uncollectable@entry=0x7fffffffc260, nofail=nofail@entry=0)\r\n    at Modules/gcmodule.c:1226\r\n```\r\n\u003c/details\u003e\r\n\r\nPython versions tested:\r\n- Python 3.11.0b3+ 41e4b426ce (remotes/upstream/3.11:41e4b426ce, Jun 24 2022, 11:58:10) [GCC 9.4.0] on linux\r\n- Python 3.12.0a0 51fd4de101 (heads/main:51fd4de101, Jun 24 2022, 12:02:08) [GCC 9.4.0] on linux\r\n\r\ncc @markshannon @pablogsal \r\n","author":{"url":"https://github.com/kumaraditya303","@type":"Person","name":"kumaraditya303"},"datePublished":"2022-06-24T12:09:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/94215/cpython/issues/94215"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:53e23f56-75c2-5c28-3422-5bf77c040ca7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAA9A:236F3C:152CA46:1D2AF8C:696AA4F1
html-safe-nonce69ee1e9171393f8bdbd1217367b8bdf55a0fb68c7d2d0db48435eb29fa76ad7d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTlBOjIzNkYzQzoxNTJDQTQ2OjFEMkFGOEM6Njk2QUE0RjEiLCJ2aXNpdG9yX2lkIjoiNTUwMzgzMTM1MjcwMTI2NTEzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac34a8e0013906109d691a85e218fc731ff167694d11016a3d588ec835cae09703
hovercard-subject-tagissue:1283671800
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/94215/issue_layout
twitter:imagehttps://opengraph.githubassets.com/48566f97e25d957aef681cc03aca8a6a222fd5fbea56c3951da1def47990c24d/python/cpython/issues/94215
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/48566f97e25d957aef681cc03aca8a6a222fd5fbea56c3951da1def47990c24d/python/cpython/issues/94215
og:image:altReproducer: def func(): print( 42 ) import pdb; pdb.set_trace() func() Crash: @kumaraditya303 ➜ /workspaces/cpython (main ✗) $ ./python main.py > /workspaces/cpython/main.py(7)() -> func() ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
hostnamegithub.com
expected-hostnamegithub.com
Nonea51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261
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
release4bd0eac606c70914085176ef312ebdcd97a8cdf1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/94215#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F94215
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%2F94215
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/94215
Reloadhttps://github.com/python/cpython/issues/94215
Reloadhttps://github.com/python/cpython/issues/94215
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/94215
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/94215
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/94215
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/94215
GC crash _PyObject_AssertFailed with pdbhttps://github.com/python/cpython/issues/94215#top
https://github.com/markshannon
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%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/kumaraditya303
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
on Jun 24, 2022https://github.com/python/cpython/issues/94215#issue-1283671800
41e4b42https://github.com/python/cpython/commit/41e4b426ce8d8298c3f2360cb506d229381e0f84
51fd4dehttps://github.com/python/cpython/commit/51fd4de101349bbea8afa4e212489f4b87e3a99b
@markshannonhttps://github.com/markshannon
@pablogsalhttps://github.com/pablogsal
markshannonhttps://github.com/markshannon
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%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
Release and Deferred blockers 🚫https://github.com/orgs/python/projects/2
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.