Closed liuxuan30 closed 6 years ago
UPDATE: I tried to open some apps to see, and sometimes, it will print like this:
Mar 24 13:55:59 Xuans-iPhone Fruit(TestTweak.dylib)[939] <Notice>: ******AnalysisManager****** -[AnalysisManager testCrash]:50 try to get testIds: <OS_xpc_uint64: <uint64: 0x1c002d320>: 1>
Mar 24 13:55:59 Xuans-iPhone Fruit(TestTweak.dylib)[939] <Notice>: ******AnalysisManager****** -[AnalysisManager testCrash]:51 test crash done
So it more seems like a overflow issue, I created a NSmutableSet membe while it points to a OS_xpc_uint64
@coolstar are you able to reproduce it? As it's a very important bug.
many thanks to @stek29 pointing out that I didn't specify
ADDITIONAL_OBJCFLAGS = -fobjc-arc
in my makefile, so the set is deallocated. turning it on and it works fine then.
Just trying to test my tweak from iOS10 to Electra 1.0.4 with latest tweak injector, however after open an app a few seconds, it crashed with some log like this:
Crash log:
MyTweak is my test tweak from iOS10.
I don't have better logs shows why TweakInject.dylib Received signal 11, so I printed my logs to locate, it shows it will stuck on one line that if I tried to access a NSMutableSet like:
It's reproducible with a very simple test tweak, the source code is here: TestTweak.zip Just modify Makefile to point to the correct theos path. It only prints log
and the app hangs, later it crashed
the test tweak is very simple: