[Bug 235611] Using kcov results in lockup

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Feb 9 10:50:18 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235611

--- Comment #2 from Michael Tuexen <tuexen at freebsd.org> ---
The problem is that calling clang with -fsanitize-coverage=trace-pc,trace-cmp
-fno-sanitize=all does not turn off the coverage sanitizer.

This can be demonstrated:

tuexen at epyc:~ % cat test.c
int main(void)
{
        return (0);
}
tuexen at epyc:~ % cc -fsanitize-coverage=trace-pc,trace-cmp -o test_1.o -c test.c
tuexen at epyc:~ % cc -fsanitize-coverage=trace-pc,trace-cmp
-fno-sanitize-coverage=trace-pc,trace-cmp -o test_2.o -c test.c
tuexen at epyc:~ % cc -fsanitize-coverage=trace-pc,trace-cmp -fno-sanitize=all -o
test_3.o -c test.c
tuexen at epyc:~ % ls -l test_?.o
-rw-r--r--  1 tuexen  wheel  1928 Feb  9 11:44 test_1.o
-rw-r--r--  1 tuexen  wheel  1016 Feb  9 11:44 test_2.o
-rw-r--r--  1 tuexen  wheel  1928 Feb  9 11:44 test_3.o
tuexen at epyc:~ % diff test_1.o test_3.o

So wither this is a bug in clang or you can't use -fno-sanitize=all to turn off
the coverage sanitizers.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list