There are many similar named packages for libasan (the address sanitizer for gcc and clang):
$ apt-cache search libasan | grep -v dbg | grep -v cross
libasan2 - AddressSanitizer -- a fast memory error detector
libasan3 - AddressSanitizer -- a fast memory error detector
libasan4 - AddressSanitizer -- a fast memory error detector
libasan0 - AddressSanitizer -- a fast memory error detector
(Output is from Ubuntu 17.10. Ubuntu 18.04 also has libasan5
.)
- What is the difference between these packages?
- Which one should I install?
The different packages are for different versions of gcc:
To find out that information, you can look at the packages details:
apt-cache show libsan0
The version that matches the gcc version that you used to compile the program.