facebook / fishhook

A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.
BSD 3-Clause "New" or "Revised" License
5.17k stars 965 forks source link

iOS 15 crash #85

Open d6638219 opened 3 years ago

d6638219 commented 3 years ago

There's Crash on iOS 15。iPhone7

Exception Type: EXC_BAD_ACCESS (SIGKILL) Exception Subtype: KERN_PROTECTION_FAILURE at 0x00000001d4424da8 VM Region Info: 0x1d4424da8 is in 0x1d44249b8-0x1d4450278; bytes after start: 1008 bytes before end: 177359 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL DATA_CONST 1d43fc5c0-1d44249b8 [ 161K] r--/rw- SM=COW ...k/MediaRemote ---> __DATA_CONST 1d44249b8-1d4450278 [ 174K] r--/rw- SM=COW ...ork/CoreUtils DATA_CONST 1d4450278-1d4453430 [ 12K] r--/rw- SM=COW .../FamilyCircle

Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application:444 exhausted real (wall clock) time allowance of 19.91 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 19.580 (user 14.590, system 4.990), 16% CPU", | "Elapsed application CPU time (seconds): 0.034, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive> Triggered by Thread: 0 perform_rebinding_with_section + 7177404 (fishhook.c:149) perform_rebinding_with_section + 7177312 (fishhook.c:143) rebind_symbols_for_image + 7176556 (fishhook.c:222)

whde commented 3 years ago

在低端设备上似乎是必现崩溃

Rivers007 commented 3 years ago

iPhone8 plus ios15 crash

whde commented 3 years ago

There's Crash on iOS 15。iPhone7

Exception Type: EXC_BAD_ACCESS (SIGKILL) Exception Subtype: KERN_PROTECTION_FAILURE at 0x00000001d4424da8 VM Region Info: 0x1d4424da8 is in 0x1d44249b8-0x1d4450278; bytes after start: 1008 bytes before end: 177359 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL DATA_CONST 1d43fc5c0-1d44249b8 [ 161K] r--/rw- SM=COW ...k/MediaRemote ---> __DATA_CONST 1d44249b8-1d4450278 [ 174K] r--/rw- SM=COW ...ork/CoreUtils DATA_CONST 1d4450278-1d4453430 [ 12K] r--/rw- SM=COW .../FamilyCircle

Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application:444 exhausted real (wall clock) time allowance of 19.91 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 19.580 (user 14.590, system 4.990), 16% CPU", | "Elapsed application CPU time (seconds): 0.034, 0% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive> Triggered by Thread: 0 perform_rebinding_with_section + 7177404 (fishhook.c:149) perform_rebinding_with_section + 7177312 (fishhook.c:143) rebind_symbols_for_image + 7176556 (fishhook.c:222)

try this https://github.com/facebook/fishhook/pull/62

d6638219 commented 3 years ago

@whde You tried, no problem? I tried it, but the hook function won't work.

annyfun commented 3 years ago

@whde You tried, no problem? I tried it, but the hook function won't work.

I tried #87 and #84, it worked on 14.6 and 15.0

d6638219 commented 3 years ago

@annyfun iphone7, I tried, but still crash, The function is sigaction

XuweiQT commented 3 years ago

@whde You tried, no problem? I tried it, but the hook function won't work.

I tried #87 and #84, it worked on 14.6 and 15.0

yes. it‘s ok https://raw.githubusercontent.com/facebook/fishhook/31e51827675cbdee0a8ed2533d1dd700ea4c8306/fishhook.c

maniackk commented 3 years ago

@annyfun iphone7, I tried, but still crash, The function is sigaction

I tried hook int sigaction(int, const struct sigaction * __restrict, struct sigaction * __restrict); use https://github.com/facebook/fishhook/pull/84, it worked on 14.6 and 15.0。

Can you give a demo that hook sigaction ~ thanks~