Repository navigation
Commit 128ac34
scan: exit by falling off the end, never process.exit (Node 24 shutdown deadlock); bound dep re-scans
candor-spec CI (ubuntu-26.04, Node 24.22.2) hung in conformance PARTs 38, 98 and 104 across six runs
since 2026-11-02, each time with a `node` child (thread name MainThread) left running after its verdict
was written. The cause is upstream nodejs/node#64274: process.exit() disposes the V8 platform while the
isolate is alive and joins its workers, one of which can be parked in
CollectionBarrier::AwaitCollectionBackground waiting for a GC only the joining main thread can run.
Reproduced on macOS / Node 24.13 with --stress-concurrent-allocation: 15/67 gate runs hung before
(sample: main thread in WorkerThreadsTaskRunner::Shutdown -> uv_thread_join), 0/67 after.
Everything after the imports is now the block `scan:`, and every module-level exit is
`{ process.exitCode = N; break scan; }`; the crash handler sets exitCode and returns. A natural exit
disposes the isolate first. The two functions that still call process.exit run before any analysis;
a unit test pins that set and fails on any module-level process.exit (checked against the old file).
The --workspace and --dep-inits child re-scans had no timeout; they now have 600 s, and on expiry the
dependency is named on stderr and handled as one that failed to scan (not chained).
Byte-identity: 90 fixture runs (PART 104 cells + calltarget/sitetable; no policy, binding policy,
zero-rule policy; with and without --json; exit 0/1/2 all exercised) -- rc, stdout, stderr and all
.candor/*.json identical to the previous scan.mjs; the comparison was shown able to fail with a seeded
stderr line.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jaUYop2PEqPfxttcNWPFx1 parent fa6689e commit 128ac34
3 files changed
Lines changed: 111 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | 30 | | |
| |||
0 commit comments