Post

Replies

Boosts

Views

Activity

Reply to "Illegal instruction: 4" after porting app to Swift
I bumped into this while adding a static Perl into my App. As an FYI it was a sandbox thing "Process is not in an inherited sandbox": Perl worked fine when called from the App but failed when I poked inside from Terminal and tried to run it while debugging. Spent a good amount of time tracking this down while at the same time making it Fat for Apple Silicon. (Aside: any update on when Perl's (et.al.) removal will be official? ) Process: staticPerl5.30.0 [95059] Path: /Users/USER/Library/Developer/Xcode/DerivedData/Edit_Edge_Data-dpmjxqquuuqzhffrqhwzehmoowtv/Build/Products/Debug/Edit Edge Data.app/Contents/Resources/perlembed/bin/staticPerl5.30.0 Identifier: staticPerl5.30.0 Version: ??? Code Type: X86-64 (Native) Parent Process: bash [13513] Responsible: Terminal [68576] User ID: 502 Date/Time: 2021-05-03 13:42:50.546 -0500 OS Version: macOS 11.3 (20E232) Report Version: 12 Bridge OS Version: 5.3 (18P4556) Anonymous UUID: 88313202-BD67-335F-59FE-96C5DE7681E6 Time Awake Since Boot: 410000 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_INSTRUCTION (SIGILL) Exception Codes: 0x0000000000000001, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Illegal instruction: 4 Termination Reason: Namespace SIGNAL, Code 0x4 Terminating Process: exc handler [95059] Application Specific Information: dyld: launch, running initializers /usr/lib/libSystem.B.dylib Process is not in an inherited sandbox. Application Specific Signatures: Process is not in an inherited sandbox.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21