René's URL Explorer Experiment


Title: Worker with large inline source map aborts process in V8 HandleDebugMagicComments · Issue #64155 · nodejs/node · GitHub

Open Graph Title: Worker with large inline source map aborts process in V8 HandleDebugMagicComments · Issue #64155 · nodejs/node

X Title: Worker with large inline source map aborts process in V8 HandleDebugMagicComments · Issue #64155 · nodejs/node

Description: Version v26.4.0 Platform macOS 15.x arm64 Subsystem worker_threads What steps will reproduce the bug? Create a worker entry file with a small amount of executable JavaScript and a very large inline sourceMappingURL=data:... comment, then...

Open Graph Description: Version v26.4.0 Platform macOS 15.x arm64 Subsystem worker_threads What steps will reproduce the bug? Create a worker entry file with a small amount of executable JavaScript and a very large inline...

X Description: Version v26.4.0 Platform macOS 15.x arm64 Subsystem worker_threads What steps will reproduce the bug? Create a worker entry file with a small amount of executable JavaScript and a very large inline...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Worker with large inline source map aborts process in V8 HandleDebugMagicComments","articleBody":"### Version\n\nv26.4.0\n\n### Platform\n\n```text\nmacOS 15.x arm64\n```\n\n### Subsystem\n\nworker_threads\n\n### What steps will reproduce the bug?\n\nCreate a worker entry file with a small amount of executable JavaScript and a very large inline `sourceMappingURL=data:...` comment, then load it in a worker with a constrained heap.\n\nMinimal repro:\n\n```js\nconst fs = require(\"node:fs\");\nconst os = require(\"node:os\");\nconst path = require(\"node:path\");\nconst { Worker } = require(\"node:worker_threads\");\n\nconst dir = fs.mkdtempSync(path.join(os.tmpdir(), \"node-inline-sourcemap-oom-\"));\n\nconst workerPath = path.join(dir, \"worker.cjs\");\n\nconst source = [\n  'const { parentPort } = require(\"node:worker_threads\");',\n  'parentPort.postMessage(\"loaded\");',\n  'parentPort.close();',\n  \"\",\n  \"//# sourceMappingURL=data:application/json;base64,\",\n  \"A\".repeat(64 * 1024 * 1024),\n  \"\",\n].join(\"\\n\");\n\nfs.writeFileSync(workerPath, source);\n\nconst worker = new Worker(workerPath, {\n  resourceLimits: {\n    maxOldGenerationSizeMb: 16,\n  },\n});\n\nworker.on(\"message\", console.log);\n\nworker.on(\"error\", console.error);\n\nworker.on(\"exit\", (code) => {\n  console.log(\"exit\", code);\n  fs.rmSync(dir, { recursive: true, force: true });\n});\n```\n\nRun: `node repro.js`\n\n\n\n### How often does it reproduce? Is there a required condition?\n\nIt reproduces consistently when the inline sourcemap comment is large enough relative to the worker heap limit.\n\nFor comparison, these do not reproduce the same fatal abort:\n\n1. Keeping the same large payload in an external worker.cjs.map file and using //# sourceMappingURL=worker.cjs.map.\n2. Putting a similarly large payload in a normal non-sourceMappingURL comment.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe worker should fail gracefully, for example by emitting an error event or exiting with a worker failure, without aborting the entire Node.js process.\n\nIdeally, parsing sourceMappingURL / debug magic comments should not internalize an arbitrarily large data URL into V8 old space during module compilation.\n\n### What do you see instead?\n\nThe whole Node process aborts with an out-of-memory fatal error before the worker can load the module.\n\nExample stack from Node v26.4.0:\n```\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\n...\nv8::internal::FactoryBase\u003cv8::internal::Factory>::AllocateRawOneByteInternalizedString\nv8::internal::FactoryBase\u003cv8::internal::Factory>::NewOneByteInternalizedString\nv8::internal::StringTable::LookupKey\nv8::internal::FactoryBase\u003cv8::internal::Factory>::InternalizeString\nvoid v8::internal::Parser::HandleDebugMagicComments\nv8::internal::Parser::ParseProgram\nv8::internal::parsing::ParseProgram\nv8::internal::Compiler::GetWrappedFunction\nv8::ScriptCompiler::CompileFunction\nnode::contextify::CompileFunctionForCJSLoader\nnode::worker::Worker::Run\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/mathieudutour","@type":"Person","name":"mathieudutour"},"datePublished":"2026-06-26T16:40:19Z","url":"https://github.com/nodejs/node/issues/64155"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2d47efb0-3540-3aa4-9429-2ce3177d9317
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id840A:261555:159B9B:1D545B:6AFBFC89
html-safe-nonce147c7da9ea345a23429356a634c58f792ed69d58d853f16019673efe246d81b8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDBBOjI2MTU1NToxNTlCOUI6MUQ1NDVCOjZBRkJGQzg5IiwidmlzaXRvcl9pZCI6IjUxMDM1NzQyNzUxNDc0MzEwNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0b43d005a83c62a7551bf9212ba9e0b4ff7996bebfeca6bf78629ada961642e8
hovercard-subject-tagissue:4753605405
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/64155/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3e7e9770d935812a1e379acff6be61dad0c76216e85f6fce511883915edd13a9/nodejs/node/issues/64155
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3e7e9770d935812a1e379acff6be61dad0c76216e85f6fce511883915edd13a9/nodejs/node/issues/64155
og:image:altVersion v26.4.0 Platform macOS 15.x arm64 Subsystem worker_threads What steps will reproduce the bug? Create a worker entry file with a small amount of executable JavaScript and a very large inline...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemathieudutour
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
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
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64155#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64155
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%2F64155
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/64155
Reloadhttps://github.com/nodejs/node/issues/64155
Reloadhttps://github.com/nodejs/node/issues/64155
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues644 (644)https://github.com/nodejs/node/issues
Pull requests679 (679)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/64155
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64155
#66707https://github.com/nodejs/node/pull/66707
Worker with large inline source map aborts process in V8 HandleDebugMagicCommentshttps://github.com/nodejs/node/issues/64155#top
#66707https://github.com/nodejs/node/pull/66707
v8 engineIssues and PRs related to the V8 dependency.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v8%20engine%22
https://github.com/mathieudutour
mathieudutourhttps://github.com/mathieudutour
on Jun 26, 2026https://github.com/nodejs/node/issues/64155#issue-4753605405
https://github.com/Archkon
Archkonhttps://github.com/Archkon
on Jul 3, 2026https://github.com/nodejs/node/issues/64155#issuecomment-4877262055
Renegade334https://github.com/Renegade334
v8 engineIssues and PRs related to the V8 dependency.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v8%20engine%22
on Jul 7, 2026https://github.com/nodejs/node/issues/64155#event-27681799126
https://github.com/eliau2005
eliau2005https://github.com/eliau2005
on Sep 24, 2026https://github.com/nodejs/node/issues/64155#issuecomment-5823527619
https://github.com/eliau2005
eliau2005https://github.com/eliau2005
on Sep 27, 2026https://github.com/nodejs/node/issues/64155#issuecomment-5858597568
https://chromium-review.googlesource.com/c/v8/v8/+/8472768https://chromium-review.googlesource.com/c/v8/v8/+/8472768
https://issues.chromium.org/issues/566467883https://issues.chromium.org/issues/566467883
hubothttps://github.com/hubot
on Oct 13, 2026https://github.com/nodejs/node/issues/64155#event-33115244955
[parser] Create debug magic comment values as source substringshttps://github.com/v8/v8/commit/8dcf14f490c20b23b90f9f4af56d52abdd933a0c
8dcf14fhttps://github.com/v8/v8/commit/8dcf14f490c20b23b90f9f4af56d52abdd933a0c
https://github.com/eliau2005
eliau2005https://github.com/eliau2005
on Oct 13, 2026https://github.com/nodejs/node/issues/64155#issuecomment-6148028772
v8/v8@8dcf14f490c2https://github.com/v8/v8/commit/8dcf14f490c2
#66707https://github.com/nodejs/node/pull/66707
hubothttps://github.com/hubot
on Oct 15, 2026https://github.com/nodejs/node/issues/64155#event-33346832812
Revert "[parser] Create debug magic comment values as source substrings"https://github.com/v8/v8/commit/bc3ebe078ce7ece54f418e5c0fe35834346d1923
bc3ebe0https://github.com/v8/v8/commit/bc3ebe078ce7ece54f418e5c0fe35834346d1923
hubothttps://github.com/hubot
on Oct 26, 2026https://github.com/nodejs/node/issues/64155#event-34247219821
Reland "[parser] Create debug magic comment values as source substrings"https://github.com/v8/v8/commit/5ba8aab1ec1bf4376a16fa263be52e8752bbc761
5ba8aabhttps://github.com/v8/v8/commit/5ba8aab1ec1bf4376a16fa263be52e8752bbc761
eliau2005https://github.com/eliau2005
on Oct 29, 2026https://github.com/nodejs/node/issues/64155#event-34635630276
deps: V8: backport 5ba8aab1ec1bhttps://github.com/eliau2005/node/commit/69c6070601652ef95db943871f2a8d6f1e665bce
69c6070https://github.com/eliau2005/node/commit/69c6070601652ef95db943871f2a8d6f1e665bce
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64155
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64155
v8 engineIssues and PRs related to the V8 dependency.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v8%20engine%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.