I have a macbook w/Apple Silicon M2 Max running Sonoma 14.3.1.
I ran brew install ffmpeg
last December 2023 and it installed and ran fine.
Two days ago I installed an unrelated package (poppler
) and brew
autoupdated ffmpeg
to 7.0_1. I used ffmpeg
today and it promptly exits with Killed: 9
. The console crash log has this:
Process: ffmpeg [88823]
Path: /opt/homebrew/*/ffmpeg
Identifier: ffmpeg
Version: ???
Code Type: ARM-64 (Native)
Parent Process: bash [765]
Responsible: Terminal [508]
User ID: 501
Date/Time: 2024-05-17 21:23:26.0687 -0400
OS Version: macOS 14.3.1 (23D60)
Report Version: 12
Anonymous UUID: 881A4D97-C368-79E6-6A3D-F87897FDEAAE
Time Awake Since Boot: 3200000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes: UNKNOWN_0x32 at 0x0000000103c28000
Exception Codes: 0x0000000000000032, 0x0000000103c28000
Termination Reason: Namespace CODESIGNING, Code 2 Invalid Page
I ran codesign -vvv
hoping I’d see a bad sig but it doesn’t look that way. Note also I did not have to manually sign anything (or invoke sudo codesign
) when I first installed it with brew
.
$ codesign -vvv /opt/homebrew/Cellar/ffmpeg/7.0_1/bin/ffmpeg
/opt/homebrew/Cellar/ffmpeg/7.0_1/bin/ffmpeg: valid on disk
/opt/homebrew/Cellar/ffmpeg/7.0_1/bin/ffmpeg: satisfies its Designated Requirement
So I tried to resign it anyway:
sudo codesign -v --force --deep --sign - /opt/homebrew/Cellar/ffmpeg/7.0_1/bin/ffmpeg
/opt/homebrew/Cellar/ffmpeg/7.0_1/bin/ffmpeg: replacing existing signature
/opt/homebrew/Cellar/ffmpeg/7.0_1/bin/ffmpeg: signed Mach-O thin (arm64) [ffmpeg-5555494469e4341a87b53884a2fd20c8bcdb3000]
Still getting EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
.
I also upgraded postgres from 16.0 to 16.3 using brew
and that put new postgres executables on the machine but no problem launching those. In the course of autoupdating, brew
also installed python 3.12. I have python pinned to 3.10, but I can manually (no symlink to homebrew/bin) run the 3.12 binary and that works too.
Any ideas on how to remediate?