Closed Bug 2091274 Opened 12 days ago Closed 12 days ago

Nightly 20261109214446 fails to start on macOS 27.0.1: dyld rejects libnss3.dylib ("mis-aligned LINKEDIT string pool")

Categories

(Firefox Build System :: General, defect)

ARM64
macOS
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 2091305

People

(Reporter: zcorpan, Unassigned)

Details

(Keywords: regression)

Firefox Nightly 162.0a1 (build ID 20261109214446, https://hg.mozilla.org/mozilla-central/rev/d1b813e0d2387b5e453e10f4be3b88523c447d15) doesn't start on macOS 27.0.1 (26A434, arm64). Clicking the icon does nothing, and a fresh install of the same build fails in the same way. Earlier Nightly 162 builds started fine.

Info below was gathered using Claude:

Running the binary from a terminal prints:

$ "/Applications/Firefox Nightly.app/Contents/MacOS/firefox" --version
XPCOMGlueLoad error for file /Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib:
dlopen(/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib, 0x0109): tried: '/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' (mis-aligned LINKEDIT string pool, fileOffset=0x00290804), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' (no such file), '/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' (mis-aligned LINKEDIT string pool, fileOffset=0x00290804)
Couldn't load XPCOM.

In this build's libnss3.dylib, LC_SYMTAB stroff is 0x290804 (arm64) and 0x2af9e4 (x86_64), both 4 mod 8. Firefox 159.0.1's libnss3.dylib also has a 4 mod 8 stroff (0x2858a4) and starts fine. A local arm64 build from mozilla-central (around November 9) has an 8-aligned stroff (0x2fb748) and starts fine.

Also seeing this on macOS 27.2 also with 162.0a1 (build ID 20261109214446) :

❯ /Applications/Firefox\ Nightly.app/Contents/MacOS/firefox
XPCOMGlueLoad error for file /Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib:
dlopen(/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib, 0x0109): tried: '/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' (mis-aligned LINKEDIT string pool, fileOffset=0x00290804), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' (no such file), '/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' (mis-aligned LINKEDIT string pool, fileOffset=0x00290804)
Couldn't load XPCOM.

Looking at the rust bug 157750 I can see a similar non-8 byte alignment of stroff:

❯ otool -l    '/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' | grep 'stroff'
  stroff 2816484
  stroff 2689028

Build 20261109092106 worked on the same machine and has:

❯ otool -l    '/Applications/Firefox Nightly.app/Contents/MacOS/libnss3.dylib' | grep 'stroff'
  stroff 2816400
  stroff 2721816

Which is 8-byte aligned

Status: NEW → RESOLVED
Closed: 12 days ago
Duplicate of bug: 2091305
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.