Closed matthiaskrgr closed 10 months ago
I can't get clang (v 5.0.1) to reproduce the reports, gcc with asan and ubsan does not report the errors for 001.
make CC=clang D=asan,ubsan EXTRA_CFLAGS='-fno-omit-frame-pointer -fsanitize-address-use-after-scope -fno-optimize-sibling-calls'
this works but prints
==25070==Your application is linked against incompatible ASan runtimes.
with mkfs test-mkfs
and the test fails. I found a suggestion to use LD_PRELOAD with the asan libraries, but this detects leaks in make
. I think this should work without such tweaks, any help is appreciated. I'm going to continue with gcc
asan, having clang
could increase the coverage.
Clang 17 stll complains about the incompatible asan runtimes. Gcc + asan does not report the alignment problems or others I see in the list. This report is old so I'll close it but some new tests report asan problems, for that please open new reports.
compiled with
clang 4.0
CFLAGS:-g3 -O0 -Wall -fno-omit-frame-pointer -fsanitize-address-use-after-scope -fno-optimize-sibling-calls -fsanitize=address,undefined
based on master branch / btrfs progs 4.10.1 / 15d37febbce1255c1042764690a5e5375d014616 run command (as root):UBSAN_OPTIONS=print_stacktrace=1 make test -k
mkfs-tests-results.txt
[...]