Title: `test_intern` in `test_sys` leaks negative references in free-threaded build · Issue #122420 · python/cpython · GitHub
Open Graph Title: `test_intern` in `test_sys` leaks negative references in free-threaded build · Issue #122420 · python/cpython
X Title: `test_intern` in `test_sys` leaks negative references in free-threaded build · Issue #122420 · python/cpython
Description: Bug report The test_intern test "leaks" -2 references in the free-threaded build. This isn't caught by the refleak build bots because negative refleaks are treated as "suspicious" rather than "failing". This is a problem because the nega...
Open Graph Description: Bug report The test_intern test "leaks" -2 references in the free-threaded build. This isn't caught by the refleak build bots because negative refleaks are treated as "suspicious" rather than "fail...
X Description: Bug report The test_intern test "leaks" -2 references in the free-threaded build. This isn't caught by the refleak build bots because negative refleaks are treated as "suspicious...
Opengraph URL: https://github.com/python/cpython/issues/122420
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`test_intern` in `test_sys` leaks negative references in free-threaded build","articleBody":"# Bug report\n\nThe `test_intern` test \"leaks\" -2 references in the free-threaded build. This isn't caught by the refleak build bots because negative refleaks are treated as \"suspicious\" rather than \"failing\". This is a problem because the negative \"leak\" can hide a real leak somewhere else.\n\nI think there's likely something wrong with the accounting for references in the `immortalize=1` case in `intern_common` because this shows up in the free-threaded build, but not the default build.\n\n```\n./python -m test test_sys -m test_intern -R 3:3\n\nUsing random seed: 3390398091\n0:00:00 load avg: 14.98 Run 1 test sequentially\n0:00:00 load avg: 14.98 [1/1] test_sys\nbeginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)\n123:456\nX8. ...\ntest_sys leaked [-2, -2, -2] references, sum=-6 (this is fine)\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-122421\n* gh-122430\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/colesbury","@type":"Person","name":"colesbury"},"datePublished":"2024-07-29T20:11:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/122420/cpython/issues/122420"}
| 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:bca9b3f1-8416-3647-7e6b-062672024b87 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8A2:35B8D6:C63E1:117E1C:696A620E |
| html-safe-nonce | 14ab66fd0fce1cc7002b6806ec169274be583d362ae347b212d9f8fda1ebc100 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEEyOjM1QjhENjpDNjNFMToxMTdFMUM6Njk2QTYyMEUiLCJ2aXNpdG9yX2lkIjoiNDg1ODIxMDUyNDQ0MTc2NDM2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 87357dcff0d3e34edd9331636125d31cb67bd818c722254921fbea57555e6923 |
| hovercard-subject-tag | issue:2436260994 |
| 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/122420/issue_layout |
| twitter:image | https://opengraph.githubassets.com/99f695cd3059a9df20d8accbde0a46660419c0afe24f3a0766d131e677193290/python/cpython/issues/122420 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99f695cd3059a9df20d8accbde0a46660419c0afe24f3a0766d131e677193290/python/cpython/issues/122420 |
| og:image:alt | Bug report The test_intern test "leaks" -2 references in the free-threaded build. This isn't caught by the refleak build bots because negative refleaks are treated as "suspicious" rather than "fail... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colesbury |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392 |
| 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 | 87cbd411c2982752221b5751d583a515b23bf5fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width