René's URL Explorer Experiment


Title: [v22.2.0 regression] Some `Worker` use cases are broken · Issue #53011 · nodejs/node · GitHub

Open Graph Title: [v22.2.0 regression] Some `Worker` use cases are broken · Issue #53011 · nodejs/node

X Title: [v22.2.0 regression] Some `Worker` use cases are broken · Issue #53011 · nodejs/node

Description: Version v22.2.0 Platform all Subsystem worker_threads What steps will reproduce the bug? import { Worker, isMainThread } from "worker_threads"; if (isMainThread) { new Worker(import.meta.filename, { env: process.env }); } else { console....

Open Graph Description: Version v22.2.0 Platform all Subsystem worker_threads What steps will reproduce the bug? import { Worker, isMainThread } from "worker_threads"; if (isMainThread) { new Worker(import.meta.filename, ...

X Description: Version v22.2.0 Platform all Subsystem worker_threads What steps will reproduce the bug? import { Worker, isMainThread } from "worker_threads"; if (isMainThread) { new Worker(import.meta....

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[v22.2.0 regression] Some `Worker` use cases are broken","articleBody":"### Version\r\n\r\nv22.2.0\r\n\r\n### Platform\r\n\r\nall\r\n\r\n### Subsystem\r\n\r\nworker_threads\r\n\r\n### What steps will reproduce the bug?\r\n\r\n```js\r\nimport { Worker, isMainThread } from \"worker_threads\";\r\n\r\nif (isMainThread) {\r\n  new Worker(import.meta.filename, { env: process.env });\r\n} else {\r\n  console.log(\"Hello, world!\");\r\n}\r\n\r\n```\r\n`node --expose_gc .\\test.mjs`\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nalways\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\nHello, world!\r\n\r\n### What do you see instead?\r\n\r\n```\r\nnode:internal/worker:221\r\n      throw new ERR_WORKER_INVALID_EXEC_ARGV(this[kHandle].invalidExecArgv);\r\n            ^\r\n\r\nError [ERR_WORKER_INVALID_EXEC_ARGV]: Initiated Worker with invalid execArgv flags: --expose_gc\r\n    at new Worker (node:internal/worker:221:13)\r\n    at file:///F:/babel/test.mjs:4:3\r\n    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)\r\n    at async ModuleLoader.import (node:internal/modules/esm/loader:475:24)\r\n    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:109:5) {\r\n  code: 'ERR_WORKER_INVALID_EXEC_ARGV'\r\n}\r\n```\r\n\r\n### Additional information\r\n\r\nRef: https://github.com/nodejs/node/pull/52827\r\nIt seems that passing execArgv will cause some problems until https://github.com/nodejs/node/issues/41103 is resolved.\r\n\r\nI'm not sure this is a regression, but it could be an unintentional breakage and would be a bit difficult to resolve on the user side since there are no known exec argvs supported by `Worker`.\r\n\r\ncc @theanarkh You may be interested!","author":{"url":"https://github.com/liuxingbaoyu","@type":"Person","name":"liuxingbaoyu"},"datePublished":"2024-05-15T21:26:51Z","url":"https://github.com/nodejs/node/issues/53011"}

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:4fffd8ec-c778-de08-7492-fa4d8568e8c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD9CC:328E29:ED3AD9:1351107:6AED570D
html-safe-nonce69760693dabe8dc7865e70d4fb35f270e72362b75b68199014c507c8c70d3341
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUNDOjMyOEUyOTpFRDNBRDk6MTM1MTEwNzo2QUVENTcwRCIsInZpc2l0b3JfaWQiOiI1MTYyMjUzMzI1MjMwMjMzMzU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac27bfdd88bd0efe7541d2a4f3244680e62c1de8ffb28fc05aa584da46c3a073b0
hovercard-subject-tagissue:2298873553
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/53011/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d5db155cf61fe9ef60dd8843e79e4fab60675374046bb58928f1c46536cb1aac/nodejs/node/issues/53011
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5db155cf61fe9ef60dd8843e79e4fab60675374046bb58928f1c46536cb1aac/nodejs/node/issues/53011
og:image:altVersion v22.2.0 Platform all Subsystem worker_threads What steps will reproduce the bug? import { Worker, isMainThread } from "worker_threads"; if (isMainThread) { new Worker(import.meta.filename, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameliuxingbaoyu
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
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
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/53011#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F53011
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%2F53011
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/53011
Reloadhttps://github.com/nodejs/node/issues/53011
Reloadhttps://github.com/nodejs/node/issues/53011
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests662 (662)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/53011
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/53011
#53029https://github.com/nodejs/node/pull/53029
[v22.2.0 regression] Some Worker use cases are brokenhttps://github.com/nodejs/node/issues/53011#top
#53029https://github.com/nodejs/node/pull/53029
v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v22.x%22
workerIssues and PRs related to the worker_threads module and Worker API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22worker%22
https://github.com/liuxingbaoyu
liuxingbaoyuhttps://github.com/liuxingbaoyu
on May 15, 2024https://github.com/nodejs/node/issues/53011#issue-2298873553
#52827https://github.com/nodejs/node/pull/52827
#41103https://github.com/nodejs/node/issues/41103
@theanarkhhttps://github.com/theanarkh
https://github.com/nicolo-ribaudo
nicolo-ribaudohttps://github.com/nicolo-ribaudo
on May 15, 2024https://github.com/nodejs/node/issues/53011#issuecomment-2113576903
#52827https://github.com/nodejs/node/pull/52827
VoltrexKeyvahttps://github.com/VoltrexKeyva
workerIssues and PRs related to the worker_threads module and Worker API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22worker%22
v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v22.x%22
on May 16, 2024https://github.com/nodejs/node/issues/53011#event-12825082722
https://github.com/bricss
bricsshttps://github.com/bricss
on May 16, 2024https://github.com/nodejs/node/issues/53011#issuecomment-2114978942
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type
process.execArgvhttps://nodejs.org/api/process.html#processexecargv
https://github.com/nicolo-ribaudo
nicolo-ribaudohttps://github.com/nicolo-ribaudo
on May 16, 2024https://github.com/nodejs/node/issues/53011#issuecomment-2115010634
#52827https://github.com/nodejs/node/pull/52827
#52827https://github.com/nodejs/node/pull/52827
https://github.com/bricss
bricsshttps://github.com/bricss
on May 16, 2024https://github.com/nodejs/node/issues/53011#issuecomment-2115179467
https://github.com/theanarkh
theanarkhhttps://github.com/theanarkh
on May 16, 2024https://github.com/nodejs/node/issues/53011#issuecomment-2115942196
invalid argshttps://github.com/nodejs/node/blob/main/src/node_worker.cc#L611
herehttps://github.com/nodejs/node/blob/main/src/node_worker.cc#L559
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#53029https://github.com/nodejs/node/pull/53029
on May 23, 2024https://github.com/nodejs/node/issues/53011#event-12911353719
nodejs-github-bothttps://github.com/nodejs-github-bot
on May 23, 2024https://github.com/nodejs/node/issues/53011#event-12911353800
src: fix execArgv in workerhttps://github.com/nodejs/node/commit/c137d6eb31013f2785db7bcff66bdb8a68799e2b
c137d6ehttps://github.com/nodejs/node/commit/c137d6eb31013f2785db7bcff66bdb8a68799e2b
targoshttps://github.com/targos
on Jun 1, 2024https://github.com/nodejs/node/issues/53011#event-13008628001
src: fix execArgv in workerhttps://github.com/nodejs/node/commit/838fe59787b2cc0770c4f67c34f8a1b40809dddd
838fe59https://github.com/nodejs/node/commit/838fe59787b2cc0770c4f67c34f8a1b40809dddd
soophoohttps://github.com/soophoo
on Jun 20, 2024https://github.com/nodejs/node/issues/53011#event-13234958339
src: fix execArgv in workerhttps://github.com/soophoo/node/commit/fe3abcbfb22ce5244d00172114d9678e5b2ff131
fe3abcbhttps://github.com/soophoo/node/commit/fe3abcbfb22ce5244d00172114d9678e5b2ff131
targoshttps://github.com/targos
on Sep 21, 2024https://github.com/nodejs/node/issues/53011#event-14349101813
src: fix execArgv in workerhttps://github.com/nodejs/node/commit/d53e53699c3a06c8543676e21717e698e5085e06
d53e536https://github.com/nodejs/node/commit/d53e53699c3a06c8543676e21717e698e5085e06
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/53011
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/53011
v22.xIssues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22v22.x%22
workerIssues and PRs related to the worker_threads module and Worker API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22worker%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.