René's URL Explorer Experiment


Title: worker_threads Worker exit aborts (SIGABRT) when a native addon (fsevents) has an in-flight napi_threadsafe_function — napi_release_threadsafe_function / uv_mutex_lock · Issue #65100 · nodejs/node · GitHub

Open Graph Title: worker_threads Worker exit aborts (SIGABRT) when a native addon (fsevents) has an in-flight napi_threadsafe_function — napi_release_threadsafe_function / uv_mutex_lock · Issue #65100 · nodejs/node

X Title: worker_threads Worker exit aborts (SIGABRT) when a native addon (fsevents) has an in-flight napi_threadsafe_function — napi_release_threadsafe_function / uv_mutex_lock · Issue #65100 · nodejs/node

Description: Version v24.15.0 through v24.19.0 (tested v24.15.0, v24.16.0, v24.19.0 — all crash). Does NOT reproduce on v24.11.0 or v24.11.1. Platform macOS 15.6.1 (24G90), Apple Silicon (arm64) Subsystem worker_threads, N-API (napi_threadsafe_functi...

Open Graph Description: Version v24.15.0 through v24.19.0 (tested v24.15.0, v24.16.0, v24.19.0 — all crash). Does NOT reproduce on v24.11.0 or v24.11.1. Platform macOS 15.6.1 (24G90), Apple Silicon (arm64) Subsystem worke...

X Description: Version v24.15.0 through v24.19.0 (tested v24.15.0, v24.16.0, v24.19.0 — all crash). Does NOT reproduce on v24.11.0 or v24.11.1. Platform macOS 15.6.1 (24G90), Apple Silicon (arm64) Subsystem worke...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"worker_threads Worker exit aborts (SIGABRT) when a native addon (fsevents) has an in-flight napi_threadsafe_function — napi_release_threadsafe_function / uv_mutex_lock","articleBody":"### Version\nv24.15.0 through v24.19.0 (tested v24.15.0, v24.16.0, v24.19.0 — all crash).\nDoes NOT reproduce on v24.11.0 or v24.11.1.\n\n### Platform\nmacOS 15.6.1 (24G90), Apple Silicon (arm64)\n\n### Subsystem\nworker_threads, N-API (napi_threadsafe_function)\n\n### What steps will reproduce the bug?\n\nMinimal repro repo: https://github.com/mastoj/node24-fsevents-worker-threads-abort\n\n1. `npm install`\n2. `node main.mjs 50`\n\n`main.mjs` spawns 50 `worker_threads.Worker`s sequentially. Each worker\n(`worker.mjs`) does:\n\n```js\nimport { createRequire } from \"node:module\";\nconst require = createRequire(import.meta.url);\nconst fsevents = require(\"fsevents\");\n\nfsevents.watch(process.argv[2], () => {});\n\nsetTimeout(() => process.exit(0), 5);\n```\n\ni.e. it starts a native `fsevents` watch (which registers a\n`napi_threadsafe_function` under the hood) and exits the worker shortly\nafter, without explicitly stopping the watcher first.\n\n### How often does it reproduce? Is there a required condition?\n\n100% reproducible on Node.js v24.15.0+ on macOS. Crashes on the very first\nworker. 0% reproducible on Node.js v24.11.0/v24.11.1 (ran 50 workers cleanly).\n\n### What is the expected behavior?\n\nAll workers start, watch, and exit cleanly with code 0:\n```\nworker 0 exited with code 0\n...\nworker 49 exited with code 0\ndone, no crash across 50 workers\n```\n(This is what actually happens on v24.11.0.)\n\n### What do you see instead?\n\nThe whole process aborts with SIGABRT (exit code 134) on the very first\nworker — before any of the `console.log` lines are even printed, since the\nabort takes down the entire process (all worker threads share one OS\nprocess).\n\n```\n$ node main.mjs 50\nAbort trap: 6\n$ echo $?\n134\n```\n\nmacOS crash reporter consistently shows the same stack trace on the\n\"WorkerThread\":\n\n```\n__pthread_kill\npthread_kill\nabort\nuv_mutex_lock\nnapi_release_threadsafe_function\nfse_instance_destroy\nnapi_env__::CallIntoModule\u003c...>\nnode_napi_env__::CallFinalizer(void (*)(napi_env__*, void*, void*), void*, void*)\nv8impl::Reference::Finalize()\nnode_napi_env__::DeleteMe()\nnode::Environment::CloseHandle\u003c...>\nuv_run\nnode::Environment::RunCleanup()\nnode::FreeEnvironment(node::Environment*)\nnode::worker::Worker::Run()\nnode::worker::Worker::StartThread(...)::$_0::__invoke(void*)\n_pthread_start\nthread_start\n```\n\ni.e. during worker-thread `Environment` teardown, `napi_release_threadsafe_function`\nattempts `uv_mutex_lock` while finalizing `fsevents`' native threadsafe\nfunction, and this ends in `abort()` instead of a clean/graceful teardown.\n\n### Additional context\n\nThis was originally found as a crash inside a real-world Next.js 16.3.0\nmonorepo build (`next build --turbopack`), where Next's build worker threads\ntransitively load `fsevents` (via `chokidar`/`watchpack`) and exit shortly\nafter doing their work. The exact same crash signature (same stack trace)\nwas observed across 15+ independent crash reports collected via macOS's\ncrash reporter during real builds, before being reduced to this minimal,\nNext.js-free, `fsevents`-only reproduction.\n\nIt doesn't reproduce in a fresh `create-next-app` project (which doesn't\nhappen to have an active `fsevents` watcher inside its build workers) —\nonly projects where a native addon with an in-flight\n`napi_threadsafe_function` is active in a worker thread at worker-exit\ntime.","author":{"url":"https://github.com/mastoj","@type":"Person","name":"mastoj"},"datePublished":"2026-08-07T10:17:29Z","url":"https://github.com/nodejs/node/issues/65100"}

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:41667bb2-2cad-86d9-d126-e5670eb40656
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD74E:2C75BB:42FDED:5AC759:6AFBED20
html-safe-nonce373048ddd86cac072c7c98c125cd8bc855a97b5bf966d37b3d6d78e1468de277
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzRFOjJDNzVCQjo0MkZERUQ6NUFDNzU5OjZBRkJFRDIwIiwidmlzaXRvcl9pZCI6IjQyNTUyNTEyMjg0MDI2NDIyMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd00de0576e141d79ab31d24b4918ebd3711ef2aeb346baa5b47489b8b80b70f8
hovercard-subject-tagissue:5089136508
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/65100/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4edf0c24ed305feae99c9d009e6d7573de57d134f25db6ed5065137f6f4c1e4b/nodejs/node/issues/65100
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4edf0c24ed305feae99c9d009e6d7573de57d134f25db6ed5065137f6f4c1e4b/nodejs/node/issues/65100
og:image:altVersion v24.15.0 through v24.19.0 (tested v24.15.0, v24.16.0, v24.19.0 — all crash). Does NOT reproduce on v24.11.0 or v24.11.1. Platform macOS 15.6.1 (24G90), Apple Silicon (arm64) Subsystem worke...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemastoj
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/65100#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65100
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%2F65100
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/65100
Reloadhttps://github.com/nodejs/node/issues/65100
Reloadhttps://github.com/nodejs/node/issues/65100
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/65100
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65100
#65967https://github.com/nodejs/node/pull/65967
worker_threads Worker exit aborts (SIGABRT) when a native addon (fsevents) has an in-flight napi_threadsafe_function — napi_release_threadsafe_function / uv_mutex_lockhttps://github.com/nodejs/node/issues/65100#top
#65967https://github.com/nodejs/node/pull/65967
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
node-apiIssues and PRs related to Node-API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22node-api%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/mastoj
mastojhttps://github.com/mastoj
on Aug 7, 2026https://github.com/nodejs/node/issues/65100#issue-5089136508
https://github.com/mastoj/node24-fsevents-worker-threads-aborthttps://github.com/mastoj/node24-fsevents-worker-threads-abort
https://github.com/g0rdonL
g0rdonLhttps://github.com/g0rdonL
on Aug 9, 2026https://github.com/nodejs/node/issues/65100#issuecomment-5231647223
https://github.com/mastoj/node24-fsevents-worker-threads-aborthttps://github.com/mastoj/node24-fsevents-worker-threads-abort
trivikrhttps://github.com/trivikr
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
on Aug 18, 2026https://github.com/nodejs/node/issues/65100#event-29596785620
jimmyhmillerhttps://github.com/jimmyhmiller
on Sep 9, 2026https://github.com/nodejs/node/issues/65100#event-30838333266
node-api: avoid TSFN mutex reentry during teardownhttps://github.com/jimmyhmiller/node/commit/6a8d45720dc7fc6ed16e964867e5c5ba80da2456
6a8d457https://github.com/jimmyhmiller/node/commit/6a8d45720dc7fc6ed16e964867e5c5ba80da2456
legendecashttps://github.com/legendecas
node-apiIssues and PRs related to Node-API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22node-api%22
on Sep 10, 2026https://github.com/nodejs/node/issues/65100#event-30930347601
github-project-automationhttps://github.com/apps/github-project-automation
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
on Sep 10, 2026https://github.com/nodejs/node/issues/65100
github-project-automationhttps://github.com/apps/github-project-automation
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
on Sep 10, 2026https://github.com/nodejs/node/issues/65100#event-30930455992
legendecashttps://github.com/legendecas
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
on Sep 10, 2026https://github.com/nodejs/node/issues/65100#event-30930350794
legendecashttps://github.com/legendecas
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
on Sep 10, 2026https://github.com/nodejs/node/issues/65100
xynnthincchttps://github.com/xynnthincc
on Oct 15, 2026https://github.com/nodejs/node/issues/65100#event-33296541798
fix: use worker threads for Turbopack's PostCSS runtimehttps://github.com/xynnthincc/portfolio/commit/dc5de0ce1049602ee4f11c6e8bf99b2323d62207
dc5de0chttps://github.com/xynnthincc/portfolio/commit/dc5de0ce1049602ee4f11c6e8bf99b2323d62207
sebaldhttps://github.com/sebald
on Oct 22, 2026https://github.com/nodejs/node/issues/65100#event-33932651285
fix(DST-1904): limit worker threads to Vercel preview and production …https://github.com/marigold-ui/marigold/commit/3285a22b3c9e72dbc1fdfb3f190afdf902242137
3285a22https://github.com/marigold-ui/marigold/commit/3285a22b3c9e72dbc1fdfb3f190afdf902242137
aromkohttps://github.com/aromko
on Oct 22, 2026https://github.com/nodejs/node/issues/65100#event-33933144142
fix(DST-1904): run docs loaders in worker threads on Vercel (#5988)https://github.com/marigold-ui/marigold/commit/33fbb5af8a25b1845c692b456bece738ebe60d0e
#5988https://github.com/marigold-ui/marigold/pull/5988
33fbb5ahttps://github.com/marigold-ui/marigold/commit/33fbb5af8a25b1845c692b456bece738ebe60d0e
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#65967https://github.com/nodejs/node/pull/65967
on Oct 31, 2026https://github.com/nodejs/node/issues/65100#event-34793714929
github-project-automationhttps://github.com/apps/github-project-automation
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
on Oct 31, 2026https://github.com/nodejs/node/issues/65100
opensource-fork-synchttps://github.com/apps/opensource-fork-sync
on Oct 31, 2026https://github.com/nodejs/node/issues/65100#event-34795203639
node-api: fix crash on TSFN finalization reentrance at shutdownhttps://github.com/cla7aye15I4nd/opensource-nodejs__node/commit/e97c75e15482eba7a4208e68a763fc0a0fcc9ee9
e97c75ehttps://github.com/cla7aye15I4nd/opensource-nodejs__node/commit/e97c75e15482eba7a4208e68a763fc0a0fcc9ee9
aduh95https://github.com/aduh95
on Nov 11, 2026https://github.com/nodejs/node/issues/65100#event-35823365076
node-api: fix crash on TSFN finalization reentrance at shutdownhttps://github.com/nodejs/node/commit/f2c56a628f21beda38db55100d61f01e8abb2f95
f2c56a6https://github.com/nodejs/node/commit/f2c56a628f21beda38db55100d61f01e8abb2f95
node-api: fix crash on TSFN finalization reentrance at shutdownhttps://github.com/nodejs/node/commit/ae36323cf88594f1e2e4b87e2a053eda6e93497e
ae36323https://github.com/nodejs/node/commit/ae36323cf88594f1e2e4b87e2a053eda6e93497e
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65100
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65100
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
node-apiIssues and PRs related to Node-API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22node-api%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
Node-API Team Projecthttps://github.com/orgs/nodejs/projects/11
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.