DavidGoldman / InspectiveC

objc_msgSend hook for debugging/inspection purposes.
GNU General Public License v3.0
713 stars 115 forks source link

Example project crashed when use the libinspectivec.dylib made by myself #17

Open zfn-zz opened 7 years ago

zfn-zz commented 7 years ago

I'm using the latest theos and building with make package FINALPACKAGE=1. iPhone 5c, iOS 9.0.1, iOS 9.0 SDK

zfn-zz commented 7 years ago

I got some logs : Feb 15 13:57:33 iPhone SpringBoard[1995] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Example.dylib Feb 15 13:57:33 iPhone SpringBoard[1995] : [InspectiveC] Loading - Directory is "/var/mobile/Documents" Feb 15 13:57:33 iPhone SpringBoard[1995] : MS:Error: unable to open() binary file Feb 15 13:57:33 iPhone SpringBoard[1995] : MS:Error: failure to check FridaLoader.dylib Feb 15 13:57:33 iPhone SpringBoard[1995] : MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/introspy.dylib Feb 15 13:57:33 iPhone diagnosticd[181] : error evaluating process info - pid: 1995, puniqueid: 1995 Feb 15 13:57:33 iPhone com.apple.xpc.launchd[1] (com.apple.SpringBoard[1995]) : Service exited due to signal: Bus error: 10 Feb 15 13:57:33 iPhone com.apple.xpc.launchd[1] (com.apple.SpringBoard) : Service only ran for 0 seconds. Pushing respawn out by 5 seconds. Feb 15 13:57:33 iPhone ReportCrash[1998] : MS:Notice: Injecting: (null) [ReportCrash] (1240.10)

DavidGoldman commented 7 years ago

Do you have a stack trace? Do the other versions work?

zfn-zz commented 7 years ago

I got a stack trace from Xcode. stack.txt But I don't know how to resolve it. What other versions mean?

DavidGoldman commented 7 years ago

Hmm, that's hard to read because it's not symbolicated. Kinda looks like infinite recursion, but it's hard to tell what's causing it. Can you try installing the debs found in this repo?

zfn-zz commented 7 years ago

The debs in stable_debs works well.But I want to add something to this project,so I'm trying to compile it by myself.I tried using lldb to debug it and found that the crash occurred during the loading dylib phase.

DavidGoldman commented 7 years ago

Does it work if you use a different SDK version? Maybe try using the old Theos? Maybe also try adding libinspectivec_LDFLAGS += -Wl,-segalign,4000 to the Makefile?