Finding · Homebrew · macOS · Node.js
Homebrew: upgrading a library under a pinned formula breaks every new process, while running services look healthy
brew pin keeps a formula at its version, but not the libraries it links. When a batch upgrade bumped one of those libraries to a new shared-library version, every new process of the pinned node@22 died at launch. Running services kept the old library loaded and kept passing health checks. Homebrew's only signal was a mild "Not upgrading 1 pinned dependent" warning, and one common setting removes even that.
Ryan McMillan · Found Sep 23, 2026 · Published Nov 28, 2026
Affected
- Tool
- Homebrew on Apple silicon (behavior also confirmed in its source, November 2026)
- Pinned formula
- node@22 22.23.2_1, which /opt/homebrew/bin/node pointed to
- Library
- simdutf 9.1.0 to 9.2.0 (libsimdutf.35.dylib to libsimdutf.36.dylib)
- Trigger
- An upgrade batch that includes a library a pinned formula links against
- Admin rights
- Not needed
01
What happens
A pinned formula is never upgraded or rebuilt, but the libraries it links are ordinary formulae and upgrade with everything else. The pinned binary loads them through Homebrew's opt links, such as /opt/homebrew/opt/simdutf/lib/libsimdutf.35.dylib.
simdutf 9.2.0 changed its shared-library version from .35 to .36. After the upgrade, the opt link pointed at 9.2.0, which has no libsimdutf.35.dylib, so every new node@22 process aborted at launch when the dynamic linker couldn't find it. Because /opt/homebrew/bin/node pointed at the pinned node@22, that meant every new Node process on the machine: scheduled jobs, command-line tools and agent helpers.
Services that were already running were fine. They had loaded the old library before the upgrade and kept it mapped, so their health checks stayed green. Service health alone could not show the problem.
Homebrew does look for this, but only partly. Before upgrading, it lists outdated dependents of what it is upgrading and prints Warning: Not upgrading 1 pinned dependent: for pinned ones. That says the dependent is being skipped, not that it is about to break. Its later check for broken linkage only covers dependents of formulae from third-party taps; core libraries such as simdutf are left to Homebrew's own CI. And with HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 set, a common choice for controlled batch upgrades, the dependent check is skipped entirely.
02
Evidence
- Incident, September 23, 2026: a batch of 14 unpinned formulae on a Mac mini included simdutf 9.1.0 to 9.2.0. From about 20:51 to 20:55 local time, every new Node process failed with a dynamic-linker abort for the missing
libsimdutf.35.dylib. - Running services: the long-running services kept the same process IDs and kept returning HTTP 200 on their health checks throughout. No job logged a failure in that window.
- Recovery: pointing simdutf's
optlink back at the retained 9.1.0 keg madenode -e 1start again, and a fullbrew linkage --testpassed. - Permanent fix: node@22 was later upgraded to 22.23.3, whose bottle links the new library, together with the simdutf relink, and both were re-pinned.
- Homebrew's source (
Library/Homebrew/upgrade.rb): pinned outdated dependents produce the "Not upgrading N pinned dependent" warning; the post-upgrade broken-linkage check runs over dependents of non-core formulae only ("Don't need to check core formulae because we do so at CI time"); andHOMEBREW_NO_INSTALLED_DEPENDENTS_CHECKreturns before any dependent is computed.
03
Reproduce
You can see the exposure without breaking anything:
- 01List pinned formulae:
brew list --pinned. - 02For each one, list the Homebrew libraries its binaries load:
otool -L $(brew --prefix node@22)/bin/node | grep /opt/homebrew/opt/. Every line is a library that can change underneath the pin. - 03Check whether any of those libraries is outdated:
brew outdated. If one is, compare its current dylib names in$(brew --prefix <library>)/libwith the new version's; a different number in the file name means the pinned binary will no longer find it. - 04Preview the batch with
brew upgrade --dry-run <formulae>and look forNot upgrading … pinned dependent. That line is the only warning you will get.
04
Fix and cautions
Before a batch: run brew uses --installed <library> for every library in it. If a dependent is pinned, hold that library back, or upgrade it together with the pinned formula (whose new bottle links the new library) and re-pin both.
After a batch: start a fresh process of every pinned runtime, for example $(brew --prefix node@22)/bin/node -e 1, and run brew linkage --test with no arguments. Don't rely on service health checks; running services can't see it.
If it already broke and the old keg is still installed: point the library's opt link back at the old version. brew link always relinks the newest installed version, and brew pin won't pin an older one while a newer keg exists, so it takes two manual links:
brew unlink simdutf
ln -sfn ../Cellar/simdutf/9.1.0 /opt/homebrew/opt/simdutf
ln -sfn ../../../Cellar/simdutf/9.1.0 /opt/homebrew/var/homebrew/pinned/simdutf
$(brew --prefix node@22)/bin/node -e 1 && brew linkage --test node@22The second link is Homebrew's internal pin record, so treat it as a stopgap. When you later upgrade the pinned formula, run brew unpin <library> and brew link --overwrite <library> in the same change, retest, and re-pin both. Keep old kegs (HOMEBREW_NO_INSTALL_CLEANUP=1) during batches so this rollback is possible.
05
Not tested
- One incident, on one Mac mini, with node@22 and simdutf. Any pinned formula that links a library whose shared-library version changes should behave the same way.
- My notes from that day don't record whether the "Not upgrading 1 pinned dependent" warning was printed, or whether the batch ran with
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECKset. - The description of Homebrew's checks comes from reading its source as of November 2026, not from a separate reproduction in a test prefix. Homebrew changes often.
- The manual pin link relies on Homebrew's internal layout under
var/homebrew/pinned, which isn't a documented interface.
06
Prior work checked
- Homebrew FAQ: pinningCovers the opposite case, a pinned formula that others depend on. Says nothing about libraries changing underneath a pinned formula.
- Homebrew/brew #60: preventing formula updates from breaking their dependenciesA 2016 discussion where maintainers described dependency upgrades breaking dependents as "basically by design". The general risk is known; the pin-specific gaps above aren't covered there.
- Homebrew source: Library/Homebrew/upgrade.rbWhere the pinned-dependent warning, the non-core-only linkage check and the dependents-check opt-out live.
- Homebrew manual: environment variablesDocuments HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK as possibly causing "more breakage", without mentioning pinned formulae.
Know of earlier write-ups? Tell me and I'll credit them here.
Updates
- Nov 28, 2026Published.