Open
Description
Hello,
I am calling to the function __sanitizer_symbolize_pc
several times from my application and it is leaking memory.
I have executed also your tests inside an endless loop and they are also leaking memory:
#include <sanitizer/common_interface_defs.h>
int main() {
void *PC = __builtin_return_address(0);
char PcDescr[1024];
for(;;){
__sanitizer_symbolize_pc(PC, "%p %F %L", PcDescr, sizeof(PcDescr));
}
return 0;
}
I also detected __sanitizer_symbolize_global
. I haven't tested the rest of the API.
Is there any other way that I can use to avoid this problem? I need to extract the function and the source file from the PC.
Thanks.