This is a backport PR for branch 42-x-y
VerteDinde

#52992: fix: tear down Node's per-process state before the process exits

Merged
Created: Aug 18, 2026, 5:40:33 PM
Merged: Aug 19, 2026, 2:38:28 AM
1 comments
Target: 42-x-y

Backport of #52856

See that PR for details.

Manual backport notes: include-order conflict only (browser.cc); node::TearDownOncePerProcess() exists in this branch's Node.

Notes: Fixed a possible crash (SIGABRT) during process exit when the process had loaded tls/https shortly before exiting, affecting app.exit() before ready and short-lived ELECTRON_RUN_AS_NODE / child_process.fork() scripts.

Backport Information

Original PR Author
MarshallOfSound
Original PR Status
Merged
Original PR Merged At
Aug 16, 2026, 3:41:11 PM
Original PR Link
GitHubView on GitHub

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron