René's URL Explorer Experiment


Title: AbortSignal.any memory leak when circular dependencies · Issue #57584 · nodejs/node · GitHub

Open Graph Title: AbortSignal.any memory leak when circular dependencies · Issue #57584 · nodejs/node

X Title: AbortSignal.any memory leak when circular dependencies · Issue #57584 · nodejs/node

Description: Version 23.10.0 Platform 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? class Test { private abortController = new Abor...

Open Graph Description: Version 23.10.0 Platform 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? class T...

X Description: Version 23.10.0 Platform 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? class T...

Opengraph URL: https://github.com/nodejs/node/issues/57584

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AbortSignal.any memory leak when circular dependencies","articleBody":"### Version\n\n23.10.0\n\n### Platform\n\n```text\n6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```typescript\nclass Test {\n  private abortController = new AbortController()\n\n  public test(cb: (abortSignal: AbortSignal) => void, abortSignal: AbortSignal) {\n    const signal = AbortSignal.any([abortSignal, this.abortController.signal])\n\n    cb(signal)\n  }\n}\n\nconst registry = new FinalizationRegistry((heldValue) => {\n  console.log(`${heldValue} has been collected`)\n})\n\n;(() => {\n  const test = new Test()\n  registry.register(test, 'test')\n\n  const abortController = new AbortController()\n\n  test.test((abortSignal) => {\n    abortSignal.addEventListener('abort', () => {\n      console.log(test)\n    })\n  }, abortController.signal)\n})()\n\nglobal.gc?.()\n\nsetTimeout(() => {\n  console.log('the end')\n}, 2000)\n```\n\nrun with `node --expose-gc test.ts`\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time\n\n### What is the expected behavior? Why is that the expected behavior?\n\nthe output should be \n```\ntest has been collected\nthe end\n```\nbecause the test object is not referenced anymore\n\n### What do you see instead?\n\noutput:\n```\nthe end\n```\n\nthe test object is not garbage collected\n\n### Additional information\n\nThe issues seems to be caused by the cyclic dependency: `test` object => `abortController` field => `abortSignal` => `AbortSignal.any` result => `cb` function => `test` object\n\nAbortSignal.any seems to prevent node from garbage collecting them all at once","author":{"url":"https://github.com/CGNonofr","@type":"Person","name":"CGNonofr"},"datePublished":"2025-03-21T18:09:32Z","url":"https://github.com/nodejs/node/issues/57584"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:853cdad5-add8-57c9-2f7a-ddee1fe4b512
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC0E:1B6988:1554B4:1E7F50:6AFB15B5
html-safe-nonceb5a1a59eacb4b156afc63e045009271fe788a24fc1e3a9de083caedbc17dde45
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzBFOjFCNjk4ODoxNTU0QjQ6MUU3RjUwOjZBRkIxNUI1IiwidmlzaXRvcl9pZCI6IjE2NDY0NjMxODYyOTY4Mzc1NTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1702cc536711de9c73a4ccb912128d83d0ad645a1e94aebbb6cbb9bc5339e2a6
hovercard-subject-tagissue:2939149260
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/nodejs/node/57584/issue_layout
twitter:imagehttps://opengraph.githubassets.com/78e15aaee13446eba3864b47031d411f49c2f1037a531175e9aef194b98e3043/nodejs/node/issues/57584
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/78e15aaee13446eba3864b47031d411f49c2f1037a531175e9aef194b98e3043/nodejs/node/issues/57584
og:image:altVersion 23.10.0 Platform 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? class T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCGNonofr
hostnamegithub.com
expected-hostnamegithub.com
None4275ec98d19a530a209480d02854be81de24ad5a05b648333242fc516bfb573c
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
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
releaseba13208acc32a4e7a4a3b54cb2f0dea6001ba5f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/57584#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57584
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F57584
Sign uphttps://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=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/57584
Reloadhttps://github.com/nodejs/node/issues/57584
Reloadhttps://github.com/nodejs/node/issues/57584
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues643 (643)https://github.com/nodejs/node/issues
Pull requests682 (682)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57584
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57584
AbortSignal.any memory leak when circular dependencieshttps://github.com/nodejs/node/issues/57584#top
abortcontrollerIssues and PRs related to the AbortController and AbortSignal APIs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22abortcontroller%22
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on Mar 21, 2025https://github.com/nodejs/node/issues/57584#issue-2939149260
geeksilva97https://github.com/geeksilva97
abortcontrollerIssues and PRs related to the AbortController and AbortSignal APIs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22abortcontroller%22
on Mar 26, 2025https://github.com/nodejs/node/issues/57584#event-16996687919
https://github.com/jakecastelli
jakecastellihttps://github.com/jakecastelli
on Mar 29, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2763418208
@jazellyhttps://github.com/jazelly
node/lib/internal/abort_controller.jshttps://github.com/nodejs/node/blob/e57841f87e4cc3f4393a1c14cd8ca71dde11b99e/lib/internal/abort_controller.js#L262
e57841fhttps://github.com/nodejs/node/commit/e57841f87e4cc3f4393a1c14cd8ca71dde11b99e
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on Mar 31, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2765452963
https://github.com/gurgunday
gurgundayhttps://github.com/gurgunday
on Apr 15, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2807282530
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on Apr 15, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2807301200
https://github.com/gurgunday
gurgundayhttps://github.com/gurgunday
on Apr 15, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2807592616
https://github.com/jakecastelli
jakecastellihttps://github.com/jakecastelli
on Apr 17, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2811574582
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on Apr 17, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2812120825
https://github.com/alexey-sh
alexey-shhttps://github.com/alexey-sh
on Jun 1, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2927085634
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on Jun 1, 2025https://github.com/nodejs/node/issues/57584#issuecomment-2927742131
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 20, 2026https://github.com/nodejs/node/issues/57584#issuecomment-4277986082
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Apr 20, 2026https://github.com/nodejs/node/issues/57584#event-24662574857
myftijahttps://github.com/myftija
on Apr 23, 2026https://github.com/nodejs/node/issues/57584#event-24798968085
fix(webapp): eliminate SSE abort-signal memory leak (#3430)https://github.com/triggerdotdev/trigger.dev/commit/486f49791d4307042426e6f54400d2c2f57fe276
#3430https://github.com/triggerdotdev/trigger.dev/pull/3430
486f497https://github.com/triggerdotdev/trigger.dev/commit/486f49791d4307042426e6f54400d2c2f57fe276
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on May 21, 2026https://github.com/nodejs/node/issues/57584#issuecomment-4504055326
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
not plannedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on May 21, 2026https://github.com/nodejs/node/issues/57584#event-25783879996
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on May 21, 2026https://github.com/nodejs/node/issues/57584#issuecomment-4505961218
jakecastellihttps://github.com/jakecastelli
on May 24, 2026https://github.com/nodejs/node/issues/57584#event-25892102463
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on May 25, 2026https://github.com/nodejs/node/issues/57584#event-25909009631
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Aug 24, 2026https://github.com/nodejs/node/issues/57584#issuecomment-5389721610
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Aug 24, 2026https://github.com/nodejs/node/issues/57584#event-29886976843
https://github.com/CGNonofr
CGNonofrhttps://github.com/CGNonofr
on Aug 24, 2026https://github.com/nodejs/node/issues/57584#issuecomment-5392313255
github-actionshttps://github.com/apps/github-actions
staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Aug 25, 2026https://github.com/nodejs/node/issues/57584#event-29949138636
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/57584
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/57584
abortcontrollerIssues and PRs related to the AbortController and AbortSignal APIs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22abortcontroller%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.