HOOK getenv 函数之后,出现的问题什么原因?

HOOK getenv 函数,编译正常,打日志,说明己经HOOK成功。

但是APP出现间歇性闪退。

Apr 30 22:59:41 iPhone SpringBoard[21596] : Forcing crash report of <FBApplicationProcess: 0x137637320; XXXXXXX;
pid: 24425> (reason: 1, description: com.XXXXXXX failed to launch after 20.00s (launchIntent: foreground-interactive))
Apr 30 22:59:41 iPhone ReportCrash[24448] : MS:Notice: Injecting: (null) [ReportCrash] (1242.13)
Apr 30 22:59:41 iPhone diagnosticd[398] : error evaluating process info - pid: 24425, punique: 24425
Apr 30 22:59:41 iPhone SpringBoard[21596] : Finished crash reporting.
Apr 30 22:59:41 iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.XXXXX.XXXX[0x86db][24425]) : Service exited due to signal: Killed: 9
Apr 30 22:59:41 iPhone ReportCrash[24448] : report not saved because the limit of 25 for 109_XXXXXX logs has been reached.
Apr 30 22:59:41 iPhone ReportCrash[24448] : Notice: This report is abbreviated for syslog inclusion because it could not be saved to disk.
Symbolication may be possible by manually cleaning up and including the Binary Image section of a full report from this same device – good luck!
Apr 30 22:59:41 iPhone ReportCrash[24448] : Process: XXXXXXX [24425]
Path: /var/mobile/Containers/Bundle/Application/BE45487B-041C-49B8-AABE-ABEFD321493C/XXXXXXXX.app/XXXXXXXXX
OS Version: iOS 9.2.1 (13D15)
Apr 30 22:59:41 iPhone ReportCrash[24448] : Exception Type: 00000020
Exception Codes: 0x000000008badf00d
Exception Note: SIMULATED (this is NOT a crash)
Highlighted by Thread: 0
Apr 30 22:59:41 iPhone ReportCrash[24448] : Application Specific Information:
com.XXXXXX.XXXXX failed to launch after 20.00s (launchIntent: foreground-interactive)

Elapsed total CPU time (seconds): 2.670 (user 2.670, system 0.000), 7% CPU 
Elapsed application CPU time (seconds): 0.254, 1% CPU

Apr 30 22:59:41 iPhone ReportCrash[24448] : Thread 0 name: Dispatch queue: com.apple.main-thread

Exception Codes: 0x000000008badf00d
Exception Note: SIMULATED (this is NOT a crash)

app启动太慢被系统干掉了

多谢老大,这么晚回复,