I use address sanitizers to compile my C++ programs (-fsanitize=address -fno-omit-frame-pointer). When I run the binaries it outputs:
==10714==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.
I use address sanitizers to compile my C++ programs (
-fsanitize=address -fno-omit-frame-pointer
). When I run the binaries it outputs:Without those flags, it works correctly.