on-internet
← Community

getting malloc debug for specific android program

Stack Overflow ·

I want to get the back trace dump (malloc debug) of an android device. Im doing this via ADB terminal access, linux platform, root do i need to restart the target progam first only then the kill -47 <pid> to get the back trace heap dump will success? for now the steps i did was: on terminal 1: setprop libc.debug.malloc.options "backtrace leak_track verbose guard" on terminal 1: setprop libc.debug.malloc.program <target native program> (example audioserver) on terminal 2: logcat | grep malloc_debug on terminal 3: ps -ef | grep <target native program> (example audioserver) on terminal 1: kill -4

Comments

Sign in or sign up to comment and upvote.

No comments yet.