facebook / fishhook

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

iOS 13Crash #74

Open JeroldLiu777 opened 4 years ago

JeroldLiu777 commented 4 years ago

0 perform_rebinding_with_section (fishhook.c:105) 1 perform_rebinding_with_section (fishhook.c:99) 2 rebind_symbols_for_image (fishhook.c:172) 3 _rebind_symbols_for_image (fishhook.c:180)

JeroldLiu777 commented 4 years ago

latest version fishhook.c

swolchok commented 4 years ago

Can you please provide a full stacktrace (bt all in the debugger), the exact fishhook commit hash you are using, and more information about where and how often this repros? (simulator, device, both)

jobsyu commented 4 years ago

bt all warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.

canran commented 3 years ago

we get the same crash, the log is

Hardware Model: iPhone11,6 Code Type: ARM-64 (Native) OS Version: iPhone OS 13.6.1 (17G80) Exception Type: SIGBUS Exception Codes: BUS_ADRALN at 0x0000000109e247c0 Crashed Thread: 0

Thread 0 Crashed: 0 appname 0x0000000104eb2c70 _perform_rebinding_with_section + 304 1 appname 0x0000000104eb2a2c _rebind_symbols_for_image + 416 2 libdyld.dylib 0x00000001b6bfcee0 0x00000001b6bee000 + 61152 5 appname 0x0000000104ed4630 COOMDetector::startVMStackMonitor(unsigned long) + 180 6 appname 0x0000000104eeb664 -[OOMDetector startVMStackMonitor:logUUID:] + 312 7 appname 0x0000000104ea8e60 -[OOMDetectorManager startSigkill] + 776 8 appname 0x0000000104edc6e4 ___24+[appname startWithAppKey:]_block_invoke.121 + 1260 9 libdispatch.dylib 0x00000001b6a9e134 0x00000001b6a9c000 + 8496 18 libdyld.dylib 0x00000001b6bef384 0x00000001b6bee000 + 4992

Thread 0 crashed with ARM 64 Thread State: x0: 000000000000000000 x1: 0x0000000105560b77 x2: 0x0000000109e915b0 x3: 000000000000000000 x4: 000000000000000000 x5: 000000000000000000 x6: 0x0000000109d18000 x7: 0x0000000000000480 x8: 0x0000000104ed39b0 x9: 0x0000000109e24000 x10: 0x0000000104ed39b0 x11: 0x00000001f915f210 x12: 0x00000001b6bfb248 x13: 0x00000000000000c2 x14: 0x0000000000000094 x15: 0x00000000000038ad x16: 0x00000001b6b00770 x17: 0x00000001f915e858 x18: 000000000000000000 x19: 0x0000000000000018 x20: 000000000000000000 x21: 0x0000000109d18470 x22: 0x000000028107b220 x23: 0x0000000109e915b7 x24: 0x00000000000000f8 x25: 0x0000000109e73a54 x26: 0x00000000c0000000 x27: 0x0000000281d0e3a0 x28: 0x0000000000000002 fp: 0x000000016bc926f0 lr: 0x0000000104eb2c00
sp: 0x000000016bc92680 pc: 0x0000000104eb2c70 _perform_rebinding_with_section + 304

JohnWong commented 3 years ago

Is this issue fixed by https://github.com/facebook/fishhook/pull/66 ?

JacobHearst commented 2 years ago

@JohnWong I am still seeing this issue (albeit on macos 12.4) after #66

canran commented 2 years ago

您好,您的邮件已经收到,我将尽快查看,辛苦啦