You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to record a unit test built with asan. But rr record fails with following log:
(rr) c
Continuing.
==3841388==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
Program received signal SIGKILL, Killed.
0x00007f457c74bffb in ?? () from /usr/lib64/libclang_rt.asan-x86_64.so
However, the runtime asan has been linked to my binary
Hello, I tried to reproduce it like shown in following block.
Is using ASAN_OPTIONS=verify_asan_link_order=0 working for you?
git checkout 5.6.0
git show d12f8ffb004 | patch -p1
git show 2979c60ef | patch -p1
#apt install libclang-rt-14-dev
cat <<EOF > my_test.cpp
int main() { return 0; }
EOF
clang++ -g -fsanitize=address -shared-libsan -fno-omit-frame-pointer my_test.cpp -o my_test
export LD_LIBRARY_PATH=/usr/lib/llvm-14/lib/clang/14.0.6/lib/linux
bin/rr record /tmp/rr-3730/my_test
rr: Saving execution to trace directory `.../my_test-6'.
==940172==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
ASAN_OPTIONS=verify_asan_link_order=0 bin/rr record /tmp/rr-3730/my_test
rr: Saving execution to trace directory `.../my_test-7'.
bin/rr replay -a my_test-7
I need to record a unit test built with asan. But
rr record
fails with following log:However, the runtime asan has been linked to my binary
I have tried to LD_PRELOAD the asan library, which doesn't work as well. Refering to #1690 (comment) , I didn't see the log. My rr version is 5.6.0.
Am I missing anything? Thx~
The text was updated successfully, but these errors were encountered: