InspectiveC icon indicating copy to clipboard operation
InspectiveC copied to clipboard

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

Open zfn-zz opened this issue 7 years ago • 6 comments

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 avatar Feb 15 '17 05:02 zfn-zz

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

zfn-zz avatar Feb 15 '17 06:02 zfn-zz

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

DavidGoldman avatar Feb 15 '17 15:02 DavidGoldman

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

zfn-zz avatar Feb 16 '17 06:02 zfn-zz

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?

DavidGoldman avatar Feb 16 '17 15:02 DavidGoldman

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.

zfn-zz avatar Feb 16 '17 17:02 zfn-zz

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?

DavidGoldman avatar Feb 16 '17 20:02 DavidGoldman