inject_and_interpose
inject_and_interpose copied to clipboard
Crash of Garbage Collection Work Queue if dylib is loaded on 10.8 applications and Garbage Collection is enabled
If application in which we are injecting has following settings on 10.8 OSX Garbage Collection Work Queue will crash.
ARCHS = $(ARCHS_STANDARD_64_BIT) GCC_VERSION = com.apple.compilers.llvmgcc42 GCC_ENABLE_OBJC_GC = required //user defined setting.
On crash it will generate following message,
malloc: Thread::suspend(): unable to suspend a thread: err = 268435459, Thread 0x111000000: _pthread = 0x108129000, _thread = 0x8b07, _stack_base = 0x108129000, enlivening on, 0 local blocks
It will even when injected library has exactly same configuration as of the application in which we are injecting. After injecting play a little bit with application, like for 5-10 seconds.