Bug#836864: libasan3: -fsanitize=address -static-libasan doesn't always work
Package: libasan3
Version: 6.2.0-3
Severity: normal
While -fsanitize=address -static-libasan works on a simple .c file,
it no longer works in a more complex case. To reproduce, build MPFR
(e.g. 3.1.4) with:
./configure CC=gcc-6 CFLAGS="-fsanitize=address -static-libasan"
make
make check
All the tests fail with the error:
Your application is linked against incompatible ASan runtimes.
There's no reason why the ASan runtimes should be incompatible.
"gcc-6 -fsanitize=address -static-libasan" has been used everywhere!
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libasan3 depends on:
ii gcc-6-base 6.2.0-3
ii libc6 2.24-2
ii libgcc1 1:6.2.0-3
ii libstdc++6 6.2.0-3
libasan3 recommends no packages.
libasan3 suggests no packages.
-- no debconf information
Reply to: