Skip to content

Fix headless macOS FVP runs under Bash 3.2 - #46

Merged
MatthiasHertelArm merged 1 commit into
Arm-Examples:mainfrom
annietllnd:fix/macos-fvp-empty-arrays
Nov 13, 2026
Merged

MatthiasHertelArm merged 1 commit into
Arm-Examples:mainfrom
annietllnd:fix/macos-fvp-empty-arrays

Conversation

@annietllnd

Copy link
Copy Markdown
Contributor

A headless FVP run using the Bash 3.2 shipped with macOS exits with NAME[@]: unbound variable before launching the model. With set -u, Bash 3.2 treats the empty NAME and PORTS arrays as unset when no GDB port is requested.

Expand these optional Docker arguments only when populated, preserving argument boundaries and quoting for debug runs. Add a comment explaining the Bash compatibility requirement.

Validation:

  • /bin/bash -n .vscode/fvp.sh and git diff --check pass.
  • On macOS Bash 3.2.57, reproduced the original headless failure and ran the complete fixed wrapper with a stub Docker executable. Confirmed headless execution, paths containing spaces, GDB container naming and port forwarding, and preservation of an explicit remote-access setting.
  • Ran the fixed wrapper with Docker and a Corstone-300 Ethos-U55 FVP: the 7608-byte mixed ExecuTorch model returned the expected ten output values and Test_result: PASS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants