Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

segfaults on iOS 15 binaries #29

Description

@lechium

running on any binaries from iOS/tvOS 15 with --swift or --objc flags gets an immediate segfault crash. I think its related to the newer load commands introduced in iOS 13 but didnt get heavily utilized until 15, specifically LC_DYLD_EXPORTS_TRIE and LC_DYLD_CHAINED_FIXUPS

figured adding details from the crash log might help!

Process:               dsdump [2314]
Path:                  /Users/USER/*/dsdump
Identifier:            dsdump
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        zsh [429]
Responsible:           iTerm2 [279]
User ID:               501

Date/Time:             2021-09-23 21:57:53.537 -0700
OS Version:            Mac OS X 10.15.4 (19E266)
Report Version:        12
Anonymous UUID:        7D913AF8-DD55-3534-9C1B-3FEC8697F1F0


Time Awake Since Boot: 14000 seconds

System Integrity Protection: disabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000000002c
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [2314]

VM Regions Near 0x2c:
--> 
    __TEXT                 0000000100000000-0000000100376000 [ 3544K] r-x/r-x SM=COW  /Users/USER/*

Application Specific Information:
dyld2 mode

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   dsdump                        	0x0000000100014779 -[XRMachOLibrary(Opcode) parseDYLDExports] + 34
1   dsdump                        	0x0000000100009819 -[XRMachOLibrary initWithPath:] + 5198
2   dsdump                        	0x0000000100018c46 main + 1258
3   libdyld.dylib                 	0x00007fff72237cc9 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000101304490  rcx: 0x0000000000000000  rdx: 0x000000000000000d
  rdi: 0x0000000101304490  rsi: 0x000000010012bfe1  rbp: 0x00007ffeefbfefd0  rsp: 0x00007ffeefbfef70
   r8: 0x000000000000004f   r9: 0x0000000101307385  r10: 0x0000000100000000  r11: 0x000000010000bb3d
  r12: 0x0000000400010657  r13: 0x00007fff7108be40  r14: 0x000000010052ce18  r15: 0x0000000101304490
  rip: 0x0000000100014779  rfl: 0x0000000000010202  cr2: 0x000000000000002c
  
Logical CPU:     6
Error Code:      0x00000004 (no mapping for user data read)
Trap Number:     14

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions