Title: gc_decref: Assertion "gc_get_refs(g) > 0" failed · Issue #99578 · python/cpython · GitHub
Open Graph Title: gc_decref: Assertion "gc_get_refs(g) > 0" failed · Issue #99578 · python/cpython
X Title: gc_decref: Assertion "gc_get_refs(g) > 0" failed · Issue #99578 · python/cpython
Description: Bug report Error whlie testing the main branch. May be similar to: #94215 The problem When running ./python -m test: 0:18:59 load avg: 0.72 [187/433] test_imp Modules/gcmodule.c:113: gc_decref: Assertion "gc_get_refs(g) > 0" failed: refc...
Open Graph Description: Bug report Error whlie testing the main branch. May be similar to: #94215 The problem When running ./python -m test: 0:18:59 load avg: 0.72 [187/433] test_imp Modules/gcmodule.c:113: gc_decref: Ass...
X Description: Bug report Error whlie testing the main branch. May be similar to: #94215 The problem When running ./python -m test: 0:18:59 load avg: 0.72 [187/433] test_imp Modules/gcmodule.c:113: gc_decref: Ass...
Opengraph URL: https://github.com/python/cpython/issues/99578
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"gc_decref: Assertion \"gc_get_refs(g) \u003e 0\" failed","articleBody":"# Bug report\r\n\r\nError whlie testing the main branch. May be similar to: \r\n- https://github.com/python/cpython/issues/94215\r\n\r\n# The problem\r\n\r\nWhen running `./python -m test`:\r\n```\r\n0:18:59 load avg: 0.72 [187/433] test_imp\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\n\r\n# Your environment\r\n- CPython versions tested on: \"main\" branch from git repo. \r\n- Operating system and architecture: Void LInux, x86_64, gcc 10.2.1. \r\n\r\n# Message log\r\n\r\n```\r\n0:18:59 load avg: 0.72 [187/433] test_imp\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 : 0x7f3dcdf877d0\r\nobject refcount : 96\r\nobject type : 0x5573e22fc880\r\nobject type name: module\r\nobject repr : \u003cmodule 'builtins' (built-in)\u003e\r\n\r\nFatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed\r\nPython runtime state: initialized\r\n\r\nCurrent thread 0x00007f3dce3c32c0 (most recent call first):\r\n Garbage-collecting\r\n File \"/usr/local/src/cpython/Lib/test/support/__init__.py\", line 738 in gc_collect\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/save_env.py\", line 314 in __exit__\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/runtest.py\", line 312 in _runtest_inner2\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/runtest.py\", line 360 in _runtest_inner\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/runtest.py\", line 235 in _runtest\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/runtest.py\", line 265 in runtest\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/main.py\", line 455 in run_tests_sequential\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/main.py\", line 572 in run_tests\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/main.py\", line 750 in _main\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/main.py\", line 709 in main\r\n File \"/usr/local/src/cpython/Lib/test/libregrtest/main.py\", line 773 in main\r\n File \"/usr/local/src/cpython/Lib/test/__main__.py\", line 2 in \u003cmodule\u003e\r\n File \"/usr/local/src/cpython/Lib/runpy.py\", line 88 in _run_code\r\n File \"/usr/local/src/cpython/Lib/runpy.py\", line 198 in _run_module_as_main\r\n\r\nExtension modules: _testcapi, _xxsubinterpreters, _testinternalcapi, _testbuffer, _testmultiphase, _ctypes_test, xxsubtype (total: 7)\r\n```\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-99642\n* gh-99643\n* gh-99644\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/LeamHall","@type":"Person","name":"LeamHall"},"datePublished":"2022-11-18T14:04:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/99578/cpython/issues/99578"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b245ab98-df4e-2190-d048-2b0e752a8e86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB5C:2EFAA1:95B322:C90086:6969BE8F |
| html-safe-nonce | a6bce7e5494f515eac6f63fa9181574e9b206348f61f55a08a2fd5bbb6409a04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjVDOjJFRkFBMTo5NUIzMjI6QzkwMDg2OjY5NjlCRThGIiwidmlzaXRvcl9pZCI6IjU2ODQ2OTU4Nzg2ODk0NzIxNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed7efb96ab3ca87efeba0e2a4b8dd9def2509b03020342374c49caa6b10272bc |
| hovercard-subject-tag | issue:1455181448 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/99578/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c2a9cc0d97e46aebb173e65c0a3af59476af5673f08d0dbd69c1ce69e93186a/python/cpython/issues/99578 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c2a9cc0d97e46aebb173e65c0a3af59476af5673f08d0dbd69c1ce69e93186a/python/cpython/issues/99578 |
| og:image:alt | Bug report Error whlie testing the main branch. May be similar to: #94215 The problem When running ./python -m test: 0:18:59 load avg: 0.72 [187/433] test_imp Modules/gcmodule.c:113: gc_decref: Ass... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LeamHall |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width