Hi, Thanks for such good explanation. Currently I am able to see "native heap" tab in ddms and in Logcat MALLOC_DEBUG=1 for Native Executable indicating leak. Could you please suggest/ give some more information about, how to use/ interpret "native heap" block information.
Thank you, Raghu On Sep 24, 3:53 pm, RK <bcsf...@gmail.com> wrote: > Hi all, > I have followed the stpes to set the environment variables: $PATH, and > $ANDROID_PRODUCT_OUT correctly. However, I still can not see both > columns: File, and Line shown in the Native heap tab. Could anyone > give some suggestions? > > I also have a question. > I could see many lines shown in the Native heap tab, as well as the > string like: "/system/bin/sh using MALLOC_DEBUG = 1 (leakchecker)" > shown in the logcat log. > 1. What is the next step for me to find out thememoryleakage? > 2. Does string "/system/bin/sh using MALLOC_DEBUG = 1 (leakchecker)" > mean that /system/bin/sh hasmemoryleak? or it just means that / > system/bin/sh calls malloc() api at some time? > > regards, > RK > > On 8月19日, 下午5時02分, clikx <click...@gmail.com> wrote: > > > > > Hi Fadden, > > > Things seems to be working. Both the coloumns are getting populated > > with file and function names. > > > I have updated following environment variables > > 1. $PATH with ~/open_src/prebuilt/linux-x86/toolchain/arm-eabi-XXX/bin > > 2. $ANDROID_PRODUCT_OUT with ~/open_src/out/target/product/<XXX>/ > > > 'PATH' is used for getting "arm-eabi-addr2line" and > > ANDROID_PRODUCT_OUT for getting the path to /symbol folder. > > > Thanks and Regards > > Supriyo > > > On Aug 19, 12:54 am, fadden <fad...@android.com> wrote: > > > > On Aug 18, 4:49 am, clikx <click...@gmail.com> wrote: > > > > > I am using own tree. > > > ... > > > > I am getting the following error for all the libraries. > > > > 03:48 E/ddm-Addr2Line: Error while trying to start arm-eabi-addr2line > > > > process for library /system/lib/libssl.so > > > > > I am not able to find; which file, the path preferences of "/<path>/ > > > > arm-eabi-addr2line" and "/out/target/product/<prod>/symbols/system/ > > > > lib/" are to be updated. > > > > When I type "which arm-eabi-addr2line", I find it in ./prebuilt/linux- > > > x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-addr2line. Are you setting > > > your path with ". build/envsetup.sh" and an appropriate "lunch" > > > command? > > > > There appears to be an addr2line preference in File->Preferences, but > > > you shouldn't have to mess with that.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---