Title: [Free Threading] test_opcache: test_binary_subscr_list_int(): list_get_item_ref: Assertion `cap != -1 && cap >= size' failed · Issue #127521 · python/cpython · GitHub
Open Graph Title: [Free Threading] test_opcache: test_binary_subscr_list_int(): list_get_item_ref: Assertion `cap != -1 && cap >= size' failed · Issue #127521 · python/cpython
X Title: [Free Threading] test_opcache: test_binary_subscr_list_int(): list_get_item_ref: Assertion `cap != -1 && cap >= size' failed · Issue #127521 · python/cpython
Description: test_binary_subscr_list_int() does crash randomly with an assertion error if Python is built with --disable-gil: $ ./python -m test test_opcache -v -m test_binary_subscr_list_int -j10 -F (...) test_binary_subscr_list_int (test.test_opcac...
Open Graph Description: test_binary_subscr_list_int() does crash randomly with an assertion error if Python is built with --disable-gil: $ ./python -m test test_opcache -v -m test_binary_subscr_list_int -j10 -F (...) test...
X Description: test_binary_subscr_list_int() does crash randomly with an assertion error if Python is built with --disable-gil: $ ./python -m test test_opcache -v -m test_binary_subscr_list_int -j10 -F (...) test...
Opengraph URL: https://github.com/python/cpython/issues/127521
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Free Threading] test_opcache: test_binary_subscr_list_int(): list_get_item_ref: Assertion `cap != -1 \u0026\u0026 cap \u003e= size' failed","articleBody":"test_binary_subscr_list_int() does crash randomly with an assertion error if Python is built with ``--disable-gil``:\r\n\r\n```\r\n$ ./python -m test test_opcache -v -m test_binary_subscr_list_int -j10 -F\r\n(...)\r\ntest_binary_subscr_list_int (test.test_opcache.TestRacesDoNotCrash.test_binary_subscr_list_int) ...\r\n\r\npython: Objects/listobject.c:342: list_get_item_ref: Assertion `cap != -1 \u0026\u0026 cap \u003e= size' failed.\r\nFatal Python error: Aborted\r\n\r\nThread 0x00007f244350f6c0 (most recent call first):\r\n File \"/home/vstinner/python/main/Lib/test/test_opcache.py\", line 638 in write\r\n File \"/home/vstinner/python/main/Lib/threading.py\", line 992 in run\r\n File \"/home/vstinner/python/main/Lib/threading.py\", line 1041 in _bootstrap_inner\r\n File \"/home/vstinner/python/main/Lib/threading.py\", line 1012 in _bootstrap\r\n\r\nThread 0x00007f2443d106c0 (most recent call first):\r\n File \"/home/vstinner/python/main/Lib/test/test_opcache.py\", line 639 in write\r\n File \"/home/vstinner/python/main/Lib/threading.py\", line 992 in run\r\n File \"/home/vstinner/python/main/Lib/threading.py\", line 1041 in _bootstrap_inner\r\n File \"/home/vstinner/python/main/Lib/threading.py\", line 1012 in _bootstrap\r\n\r\nCurrent thread 0x00007f2451be5740 (most recent call first):\r\n File \"/home/vstinner/python/main/Lib/test/test_opcache.py\", line 632 in read\r\n File \"/home/vstinner/python/main/Lib/test/test_opcache.py\", line 586 in assert_races_do_not_crash\r\n File \"/home/vstinner/python/main/Lib/test/test_opcache.py\", line 22 in wrapper\r\n File \"/home/vstinner/python/main/Lib/test/test_opcache.py\", line 642 in test_binary_subscr_list_int\r\n (...)\r\n\r\nExtension modules: _testinternalcapi (total: 1)\r\n```\r\n\r\nBug seen on macOS CI, and reproduced on Linux.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-127524\n* gh-127533\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2024-12-02T16:34:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/127521/cpython/issues/127521"}
| 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:8f561143-9e1d-c560-a0bd-d0cc06d6b8b1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9448:19D388:C6F75C:12512C8:6A560A2E |
| html-safe-nonce | be5d1ce9d88266c05e1e43635c43560934b3706a8ac17368e1df1d454c4eb651 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDQ4OjE5RDM4ODpDNkY3NUM6MTI1MTJDODo2QTU2MEEyRSIsInZpc2l0b3JfaWQiOiIzMTA3Mjg1MDYzNzc3NTIwMTc0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 681dcc62e308ee58f0303e99572db7cdb0947f7c96ab1d67f4f5f707f8678204 |
| hovercard-subject-tag | issue:2712548925 |
| 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/127521/issue_layout |
| twitter:image | https://opengraph.githubassets.com/14c5a8ebc6537543821ae0c31613508906fe7d31265039dd19b0b34b874dc2b6/python/cpython/issues/127521 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/14c5a8ebc6537543821ae0c31613508906fe7d31265039dd19b0b34b874dc2b6/python/cpython/issues/127521 |
| og:image:alt | test_binary_subscr_list_int() does crash randomly with an assertion error if Python is built with --disable-gil: $ ./python -m test test_opcache -v -m test_binary_subscr_list_int -j10 -F (...) test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | 85a7179838b41e8b23f939d3b67b53f752ecfc54 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width