ProcursusTeam / Procursus

Modern *OS Bootstrap
https://apt.procurs.us
BSD Zero Clause License
860 stars 126 forks source link

oslog segfault #1385

Open campbellcole opened 1 year ago

campbellcole commented 1 year ago

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.
Cryptiiiic commented 1 year ago

@campbellcole bt all

badger200 commented 1 year ago

Try otool -L path/to/oslog

It should show the LC_LOAD_COMMANDs