Trying to debug an asan (address sanitizer) double free memory issue. I got this stack: Might be some global object or something, cannot figure out a way under debugger to detect the instance. Setting a breakpoint on __asan::ReportGenericError does not help. Answer Looking in the stack it can be seen that the type involved (in destruction) is std::pair<std::string, std::list<>>. Looking
Tag: address-sanitizer
bpftrace: uprobe target file does not exist or is not executable
I want to use bpftrace to trace functions inside libasan library, which is inside /usr/lib/x86_64-linux-gnu/. However sudo bpftrace -e ‘uretprobe:/usr/lib/x86_64-linux-gnu/libasan.so.4: __interceptor_malloc { printf(“pid: %d, malloc %pn”, pid, retval); }’ gives error: uprobe target file ‘/usr/lib/x86_64-linux-gnu/libasan.so.4’ does not exist or is not executable I have tried: export LD_LIBRARY_PATH=”/lib:/usr/lib:/usr/local/lib” but it does not help. How can make the library executable for bpftrace?