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…
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 fil…