Title: Segmentation fault on worker exit · Issue #63540 · nodejs/node · GitHub
Open Graph Title: Segmentation fault on worker exit · Issue #63540 · nodejs/node
X Title: Segmentation fault on worker exit · Issue #63540 · nodejs/node
Description: Version v26.2.0 Platform Darwin Mohameds-Mini.lan 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:26 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T8132 arm64 Subsystem No response What steps will reproduce the bug? package.json: ...
Open Graph Description: Version v26.2.0 Platform Darwin Mohameds-Mini.lan 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:26 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T8132 arm64 Subsystem No response What step...
X Description: Version v26.2.0 Platform Darwin Mohameds-Mini.lan 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:26 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T8132 arm64 Subsystem No response What step...
Opengraph URL: https://github.com/nodejs/node/issues/63540
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Segmentation fault on worker exit","articleBody":"### Version\n\nv26.2.0\n\n### Platform\n\n```text\nDarwin Mohameds-Mini.lan 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:26 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T8132 arm64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\npackage.json:\n\n```json\n{\n \"type\": \"module\",\n \"dependencies\": {\n \"better-sqlite3\": \"12.10.0\",\n \"typeorm\": \"1.0.0\"\n }\n}\n```\n\nmain.js:\n\n```js\nimport { Worker } from \"worker_threads\";\nconst worker = new Worker(\"./job.js\", {});\n```\n\njob.js:\n\n```js\nimport { isMainThread } from \"worker_threads\";\n\nimport { DataSource } from \"typeorm\";\n\nasync function main() {\n const ds = await new DataSource({\n type: \"better-sqlite3\",\n database: 'test.db',\n }).initialize();\n throw new Error(\"test failure\");\n}\n\nif (!isMainThread) await main();\n```\n\nRun `node main.js`\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\nDoes not crash with segmentation fault.\n\n### What do you see instead?\n\nSegmentation fault.\n\n### Additional information\n\n```\nThread 7 Crashed:: WorkerThread\n0 ??? \t 0x1272b6e88 ???\n1 node \t 0x102675db4 v8::internal::GlobalHandles::InvokeFirstPassWeakCallbacks() + 376\n2 node \t 0x1026e8538 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*) + 820\n3 node \t 0x1026f4bd8 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags, v8::internal::PerformHeapLimitCheck, v8::internal::PerformIneffectiveMarkCompactCheck)::$_1::operator()() const + 512\n4 node \t 0x1026f49c0 void heap::base::Stack::SetMarkerAndCallbackImpl\u003cv8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags, v8::internal::PerformHeapLimitCheck, v8::internal::PerformIneffectiveMarkCompactCheck)::$_1\u003e(heap::base::Stack*, void*, void const*) + 40\n5 node \t 0x102efa7a0 PushAllRegistersAndIterateStack + 40\n6 node \t 0x1026e5970 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags, v8::internal::PerformHeapLimitCheck, v8::internal::PerformIneffectiveMarkCompactCheck) + 400\n7 node \t 0x1026a0ea0 v8::internal::CppHeap::StartDetachingIsolate() + 76\n8 node \t 0x1026f00d8 v8::internal::Heap::StartTearDown() + 32\n9 node \t 0x102649110 v8::internal::Isolate::Deinit() + 168\n10 node \t 0x102648f88 v8::internal::Isolate::Deinitialize(v8::internal::Isolate*) + 100\n11 node \t 0x1023be838 node::MultiIsolatePlatform::DisposeIsolate(v8::Isolate*) + 28\n12 node \t 0x10242a83c node::worker::WorkerThreadData::~WorkerThreadData() + 208\n13 node \t 0x1024277ac node::worker::Worker::Run() + 736\n14 node \t 0x10242ab98 node::worker::Worker::StartThread(v8::FunctionCallbackInfo\u003cv8::Value\u003e const\u0026)::$_0::__invoke(void*) + 80\n15 libsystem_pthread.dylib \t 0x185225c58 _pthread_start + 136\n16 libsystem_pthread.dylib \t 0x185220c1c thread_start + 8\n```","author":{"url":"https://github.com/mohd-akram","@type":"Person","name":"mohd-akram"},"datePublished":"2026-05-24T15:22:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/63540/node/issues/63540"}
| 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:b6be5837-cf99-359b-b0bb-1ebc71095c0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C2C:C61B2:2F363E:429CC4:6A4C9F27 |
| html-safe-nonce | 79a31624fefe2dc57b70f55ba7f235448af655ca8dcae3351b98e7bbe020a97c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzJDOkM2MUIyOjJGMzYzRTo0MjlDQzQ6NkE0QzlGMjciLCJ2aXNpdG9yX2lkIjoiODk2MzE0NDExNzk4MjczODMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8f9509c4cecaa792e37a9a10a11c572e2c2456aa1ecdd74fb0e3efa5dd3584f8 |
| hovercard-subject-tag | issue:4512039879 |
| 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/nodejs/node/63540/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da9856d1170e3f8de727b9b931477355ef2a3088865016672127b0276727905e/nodejs/node/issues/63540 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da9856d1170e3f8de727b9b931477355ef2a3088865016672127b0276727905e/nodejs/node/issues/63540 |
| og:image:alt | Version v26.2.0 Platform Darwin Mohameds-Mini.lan 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:26 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T8132 arm64 Subsystem No response What step... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohd-akram |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width