Skip to content

Commit c902d3f

Browse files
committed
ci(test): set DYLD_SHARED_REGION=avoid on macOS to dodge dyld shared-cache flake
GitHub macos-15-arm64 runners intermittently kill pre_process at launch with 'dyld cache (null) not loaded: syscall to map cache into shared region failed' (signal 9 / exit 137), failing ~13% of launches on affected VMs. DYLD_SHARED_REGION=avoid makes dyld map dylibs privately instead of via the shared region, bypassing the failing syscall. No-op on Linux.
1 parent 0c56440 commit c902d3f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ jobs:
275275
TEST_PCT: ${{ matrix.debug == 'reldebug' && '-% 20' || '' }}
276276
PRECISION: ${{ matrix.precision != '' && format('--{0}', matrix.precision) || '' }}
277277
CHANGED_FILES: ${{ needs.file-changes.outputs.changed_files }}
278+
# Workaround for an intermittent GitHub macos-15-arm64 runner-image flake
279+
# where pre_process dies at launch with "dyld cache '(null)' not loaded:
280+
# syscall to map cache into shared region failed" (signal 9). Telling dyld
281+
# to avoid the shared region makes it map dylibs privately, sidestepping the
282+
# failing syscall. No-op on Linux (empty value, no dyld).
283+
DYLD_SHARED_REGION: ${{ matrix.os == 'macos' && 'avoid' || '' }}
278284

279285
# ── NVHPC build + test (via docker exec into long-lived container) ──
280286
- name: Build (NVHPC)

0 commit comments

Comments
 (0)