CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Refer https://github.com/google/sanitizers/wiki/AddressSanitizer for details.
You might see an error like this:
==39148==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.
One explanation is, the executable you want to run isn't ASAN enabled, but some or all other components (libraries) it uses are.
To make it run again, you can set:
ASAN_OPTIONS=verify_asan_link_order=0
But in this case ASAN might interfere with other libraries and does not work as expected. Take a closer look into the /etc/ld.so.preload
what kind of other libraries (maybe) are loaded first.
A more robust solution is from the website mentioned above: Run the executable with an
LD_PRELOAD=path/to/asan/runtime/lib
to ensure ASAN is the first library in the list.