Repository navigation
Description
Random tests in the Node.js suite (linux-x64 / nn-test / Run Node.js Tests) die with a silent SIGABRT — no stderr, no stack — and pass 9/9 on the --measure-flakiness rerun, which still fails the job. The victim is a different test each time but always one that loads tls/https and exits quickly.
Test: any short parallel/test-tls-* / parallel/test-https-* (seen: test-tls-get-ca-certificates-extra, test-tls-get-ca-certificates-extra-empty, test-https-argument-of-creating)
Job: linux-x64 / nn-test / Run Node.js Tests (script/node-spec-runner.js)
Platform: linux x64 (the bug is cross-platform, this is just where we run the suite)
Frequency: 3 of the last 34 completed nn-test jobs (2026-08-14 → 08-16), all on unrelated PR branches, each failed 1 out of 10 on rerun. Locally ~1 in 30k test processes at -j128; ELECTRON_RUN_AS_NODE=1 electron -e "require('tls')" hits it ~1 in 700.
Error / signal: severity: crashed / exitcode: -6, or from test/common/child_process.js: status = null, signal = SIGABRT with empty --- stderr --- / --- stdout ---.
Failing runs:
- https://github.com/electron/electron/actions/runs/31939048118/job/95146708674 (
test-tls-get-ca-certificates-extra) - https://github.com/electron/electron/actions/runs/31934729186/job/95136834082 (
test-https-argument-of-creating) - https://github.com/electron/electron/actions/runs/31909127762/job/95072968384 (
test-tls-get-ca-certificates-extra-empty)
Cause: since Node 24.9 (nodejs/node#59856) require('tls') starts a uv_thread that loads the CA certificates and then takes per_process::cli_options_mutex. Node joins it in node::TearDownOncePerProcess(), which we never call, so if the process exits first the static mutex is destroyed by exit() under the thread and libuv's uv_mutex_lock abort()s. Core from a local repro:
main thread: crashing thread:
exit() → _dl_fini (static dtors) abort()
__libc_start_main uv_mutex_lock() deps/uv/src/unix/thread.c:366
node::crypto::LoadCACertificates() src/crypto/crypto_context.cc:934
Not limited to ELECTRON_RUN_AS_NODE: require('node:tls'); app.exit() before ready in the browser process aborts ~1 in 5. All of 41–44-x-y ship Node 24.18 and are affected.
Activity