From: Wuweijia <wuw...@hu...> - 2019-04-23 12:37:58
|
Hi On the Android OS, there is a question about the linker program with vaglrind memcheck; The 1st experiment, the libc module do call the dlopen function to load some shared object, before the linker call the pre_init functions ( before transfer the cpu control to the main ), and then the valgrind can not trace malloc leak; The second experiment, the libc module do not call the dlopen function to load some shared object, before the linker call the pre_init functions ( before transfer the cpu control to the main ), and then the valgrind can trace malloc leak; I want to know why , and how to make valgrind can trace memory leak, while the libc module call the dlopen function to load some so, before the linker call the pre-init functions. If you want to add some args to trace, Please email me. Valgrind version 3.14. BR Owen |