Skip to content

fix: don't kill the primary instance on large second-instance messages - #53156

Open
VerteDinde wants to merge 1 commit into
43-x-yfrom
manual-bp/43-x-y/52628
Open

fix: don't kill the primary instance on large second-instance messages#53156
VerteDinde wants to merge 1 commit into
43-x-yfrom
manual-bp/43-x-y/52628

Conversation

@VerteDinde

Copy link
Copy Markdown
Member

Backport of #52628

See that PR for details.

Manual backport notes: the only conflict was inside patches/chromium/feat_add_data_parameter_to_processsingleton.patch — this branch's copy differs from main's pre-#52628 copy by one context line (base/functional/callback.h vs callback_helpers.h in process_singleton.h), which together with main-only blob hashes defeats the 3-way apply. Re-anchored the patch against this branch's Chromium; the process_singleton_posix.cc change is byte-identical to main. e sync --3 applies the full series cleanly and lint --patches passes. Not built locally for 43-x-y (no RBE auth on this machine); the identical change was built and exercised on the 42-x-y backport.

Notes: Fixed the primary instance being killed or receiving truncated arguments when a second instance passed a very long command line or large additionalData to app.requestSingleInstanceLock().

#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)
@VerteDinde
VerteDinde requested a review from a team as a code owner August 24, 2026 18:36
@VerteDinde VerteDinde added backport This is a backport PR semver/patch backwards-compatible bug fixes 43-x-y labels Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant