malloc_history cannot examine process xxxxxx because the process does not exist in iOS

杀马特。学长 韩版系。学妹 提交于 2019-12-22 10:33:50

问题


I added the below environment variables to my Project and set their values to YES.

NSDebugEnabled NSZombieEnabled MallocStackLogging MallocStackLoggingNoCompact

I followed the Procedures in http://www.cocoadev.com/index.pl?DebuggingAutorelease

I was able to find the Problem based on the Log generated. My doubt is when I tried to find the stack trace to find where the object was allocated, I got the below information:

malloc_history cannot examine process 6963 because the process does not exist.

Am I missing anything here?

Below is the Log Created:

UPDATE:

I found the below link to be a good source of information on this:

strange GDB error unable to trace

I am yet to test this.


回答1:


I've found for myself, that malloc_history is unable to track memory log of the device while successfully tracking the simulators memory log. Try to simulate the problem on simulator and then use the malloc_history tool. (at least I've found it as the only way yet)




回答2:


Synatax:

Shell malloc_history process_id memory_address

Keep the track of processid Use the one when application starts.



来源:https://stackoverflow.com/questions/7741985/malloc-history-cannot-examine-process-xxxxxx-because-the-process-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!