Sample Header Ad - 728x90

Why pgrep hangs when clang AddressSanitizer library is preloaded using LD_PRELOAD?

1 vote
0 answers
275 views
I noticed that when I set LD_PRELOAD env. variable to libclang_rt.asan-x86_64.so pgrep hangs. Why is this happening and how to avoid this? senx:/$ time pgrep anything real 0m0,022s user 0m0,001s sys 0m0,020s senx:/$ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so.4 senx:/$ time pgrep anything real 0m0,076s user 0m0,033s sys 0m0,027s senx:/$ export LD_PRELOAD=/usr/lib/llvm-10/lib/clang/10.0.0/lib/linux/libclang_rt.asan-x86_64.so senx:/$ time pgrep anything ^C real 0m33,077s user 0m0,010s sys 0m0,010s
Asked by senx (171 rep)
Jun 1, 2021, 09:20 AM
Last activity: Jun 2, 2021, 05:59 AM