Title: node --report-on-process-timeout writes truncated report when a Worker is blocked · Issue #66303 · nodejs/node · GitHub
Open Graph Title: node --report-on-process-timeout writes truncated report when a Worker is blocked · Issue #66303 · nodejs/node
X Title: node --report-on-process-timeout writes truncated report when a Worker is blocked · Issue #66303 · nodejs/node
Description: Version main Platform All Subsystem report What steps will reproduce the bug? import { Worker } from 'node:worker_threads'; new Worker(`require('node:child_process').execFileSync('sleep', ['30']);`, { eval: true }); Run with $ node --pro...
Open Graph Description: Version main Platform All Subsystem report What steps will reproduce the bug? import { Worker } from 'node:worker_threads'; new Worker(`require('node:child_process').execFileSync('sleep', ['30']);`...
X Description: Version main Platform All Subsystem report What steps will reproduce the bug? import { Worker } from 'node:worker_threads'; new Worker(`require('node:child_process').execFileSync(...
Opengraph URL: https://github.com/nodejs/node/issues/66303
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"node --report-on-process-timeout writes truncated report when a Worker is blocked","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nAll\n```\n\n### Subsystem\n\nreport\n\n### What steps will reproduce the bug?\n\n```js\nimport { Worker } from 'node:worker_threads';\n\nnew Worker(`require('node:child_process').execFileSync('sleep', ['30']);`, { eval: true });\n```\n\nRun with\n```console\n$ node --process-timeout=1s --report-on-process-timeout repro.js\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nA complete, valid JSON report is written. Blocked Workers could be left out or marked as unresponsive. A stuck Worker is exactly the case where you'd want the report. The forced-exit message should also start on its own line.\n\n\n### What do you see instead?\n\n```console\n(node:2291000) Process timed out after 1s (--process-timeout). Exiting with code 124.\nMain thread was not executing JavaScript.\nResources keeping the event loop alive:\n Worker (thread 1, name 'WorkerThread')\n\nWriting Node.js report to file: report.20260925.212601.2291000.0.001.json(node:2291000) The process did not finish exiting within 5000ms after --process-timeout expired. Forcing exit.\n```\n\n```console\n$ node -e \"JSON.parse(require('fs').readFileSync('report.20260925.212601.2291000.0.001.json'))\"\nSyntaxError: Expected property name or '}' in JSON at position 8192 (line 338 column 9)\n```\n\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-09-25T21:33:21Z","url":"https://github.com/nodejs/node/issues/66303"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55eddd76-1ddc-763c-2a7a-109337cbf0f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E0E:24FFEE:A12BD:DC393:6AED336E |
| html-safe-nonce | ae4a89a906873d22a39e7cdf1e54d20aed1cde99313b50888b4950997ff9d208 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTBFOjI0RkZFRTpBMTJCRDpEQzM5Mzo2QUVEMzM2RSIsInZpc2l0b3JfaWQiOiI4OTQwMzQ1NjkzOTgwOTMwOTI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8d9e7c24d47b4751bcbbf85ece6340f89df17dfb568f5e281bb8ca3cfeb59b52 |
| hovercard-subject-tag | issue:5588788302 |
| 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/66303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9654f445f0accac6f2c7180ac288a0329dcf0b2e2f7eb05ecb1cd6d6acfb40f5/nodejs/node/issues/66303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9654f445f0accac6f2c7180ac288a0329dcf0b2e2f7eb05ecb1cd6d6acfb40f5/nodejs/node/issues/66303 |
| og:image:alt | Version main Platform All Subsystem report What steps will reproduce the bug? import { Worker } from 'node:worker_threads'; new Worker(`require('node:child_process').execFileSync('sleep', ['30']);`... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| 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 | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width