BishopFox / bfinject

Dylib injection for iOS 11.0 - 11.1.2 with LiberiOS and Electra jailbreaks
Apache License 2.0
625 stars 151 forks source link

mach_vm_map(size=6123749376) failed (error code=3) #41

Open xPreeks opened 6 years ago

xPreeks commented 6 years ago

[bfinject4realz] Calling dlopen() at 0x180cdee7c... [bfinject4realz] Returned from 'dlopen' [bfinject4realz] ERROR: dlopen() failed to load the dylib.returned 0x0 (FAILURE) [bfinject4realz] Calling dlerror() at 0x180cdeccc... [bfinject4realz] Returned from 'dlerror' 4bd5fbead65852c23bb3956d335cfa55 -(4117,0x1b358ab40) malloc: *** mach_vm_map(size=6123749376) failed (error code=3) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug [bfinject4realz] dlerror() returned: (null) App: https://itunes.apple.com/de/app/sparkasse-ihre-mobile-filiale/id320599923?mt=8 App only opens if Tweak Mode is disabled

almightywizard commented 5 years ago

Hi @xPreeks I got the exact issue here. Bfinject stuck at [+] Signing injectable .dylib with Team ID TW66A342VK and platform entitlements...

When I manually run "bfinject4realz PID bfdecrypt.dylib", I get the same error.

[bfinject4realz] Returned from 'dlerror' 3262e1c3(682,0x1b27b4b80) malloc: *** mach_vm_map(size=6092734464) failed (error code=3)

Are you able to figure out the issue?

xPreeks commented 5 years ago

@almightywizard If you're trying to decrypt an app, use Clutch instead of bfdecrypt if you get this error. I've successfully got Clutch working on iOS 12 using this method https://github.com/KJCracks/Clutch/issues/233#issuecomment-473621234

almightywizard commented 5 years ago

I have been using bfinject for a very long time but I encounter this memory issue only recently. Is Clutch stable? I'm currently on iOS 11.2.2. If Clutch is stable I might consider upgrading to 12.1.2.

xPreeks commented 5 years ago

Clutch should work on iOS 11 too. Don’t update with futurerestore rn. The iOS 12.2 SEP is causing a bootloop after 14 days.

almightywizard commented 5 years ago

Can confirm esterTion's solution works.

On top of that, I use the bfinject from klmitchell2's fork and it worked as well in tweak disabled mode.