Repository navigation
fix: don't kill the primary instance on large second-instance messages - #53157
Merged
Merged
Conversation
#52628) The POSIX process singleton read a second instance's notification into a fixed 32 KiB buffer and gave up as soon as writing to the socket would block. Command lines or additionalData payloads beyond those limits were either silently truncated or, when the write couldn't complete, made the second instance kill the primary process as unresponsive. (cherry picked from commit 1652d8e)
4 tasks done
MarshallOfSound
approved these changes
Aug 25, 2026
|
Release Notes Persisted
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #52628
See that PR for details.
Manual backport notes: same shape as the 43-x-y backport — the only conflict was inside
patches/chromium/feat_add_data_parameter_to_processsingleton.patch(one differing context line inprocess_singleton.hplusmain-only blob hashes defeat the 3-way apply); re-anchored against this branch's Chromium with theprocess_singleton_posix.ccchange byte-identical tomain. Validated locally on Linux:e sync --3clean,lint --patchesclean,e build, theapp.requestSingleInstanceLockspec block (14 passing, including the new long-arguments test), and a manual run of thesingleton-datafixture with a 100 KB argv and 1–2 MBadditionalData(primary stays alive and receives the full payload; with the previous patch the primary dies).Notes: Fixed the primary instance being killed or receiving truncated arguments when a second instance passed a very long command line or large
additionalDatatoapp.requestSingleInstanceLock().