Skip to content

fix: terminate immediately on asar integrity violation - #53438

Merged
MarshallOfSound merged 3 commits into
45-x-yfrom
trop/45-x-y-bp-fix-terminate-immediately-on-asar-integrity-violation-1788411332359
Sep 3, 2026
Merged

MarshallOfSound merged 3 commits into
45-x-yfrom
trop/45-x-y-bp-fix-terminate-immediately-on-asar-integrity-violation-1788411332359

Conversation

@trop

@trop trop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #53433

See that PR for details.

Notes: Fixed an intermittent crash (access violation) on Windows when an ASAR integrity violation is detected, so the process now exits with code 1 as intended.

trop Bot and others added 3 commits September 3, 2026 04:55
The JS-side asar integrity check ends the process via
process.reallyExit(1), which bottoms out in libc exit(). That runs
atexit handlers and static destructors on the main thread while
Chromium's threads are still live, and on Windows intermittently
dies with an access violation (0xC0000005) before reaching
ExitProcess, so the process exits with the wrong code. Terminate
via base::Process::TerminateCurrentProcessImmediately instead so
nothing else runs and exit code 1 is preserved.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PBKD1L6FXPM4TQBiNcicTj

Co-authored-by: Claude <[email protected]>
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 3, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 3, 2026 05:06
@MarshallOfSound
MarshallOfSound merged commit e04b349 into 45-x-y Sep 3, 2026
94 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-terminate-immediately-on-asar-integrity-violation-1788411332359 branch September 3, 2026 06:03
@release-clerk

release-clerk Bot commented Sep 3, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed an intermittent crash (access violation) on Windows when an ASAR integrity violation is detected, so the process now exits with code 1 as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant