Procursus
Procursus copied to clipboard
oslog segfault
When running oslog, it prints out the following text:
root@Campbells-iPhone ~# oslog
Apr 17 22:05:09 Campbells-iPhone: ======
fish: Job 1, 'oslog' terminated by signal SIGSEGV (Address boundary error)
Running with LLDB exposes a call to dyld3::MachOFile::hasLoadCommand:
root@Campbells-iPhone ~# lldb oslog
(lldb) target create "oslog"
Current executable set to 'oslog' (arm64).
(lldb) r
Process 5303 launched: '/var/jb/usr/bin/oslog' (arm64)
Process 5303 stopped
* thread #1, stop reason = EXC_BAD_ACCESS (code=50, address=0x10249782c)
frame #0: 0x000000010249782c dyld`dyld3::MachOFile::hasLoadCommand(unsigned int) const
dyld`dyld3::MachOFile::hasLoadCommand:
-> 0x10249782c <+0>: pacibsp
0x102497830 <+4>: sub sp, sp, #0x90
0x102497834 <+8>: stp x22, x21, [sp, #0x60]
0x102497838 <+12>: stp x20, x19, [sp, #0x70]
Target 0: (oslog) stopped.
@campbellcole bt all
Try otool -L path/to/oslog
It should show the LC_LOAD_COMMANDs