Skip to content

Memory Leak #134

Open
Open
@javiertejedorm

Description

@javiertejedorm

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:

https://github.com/llvm/llvm-project/blob/master/compiler-rt/test/sanitizer_common/TestCases/symbolize_pc.cpp

#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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions