Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Feb 2019 10:50:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 235611] Using kcov results in lockup
Message-ID:  <bug-235611-227-9pFt1aA1TG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-235611-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-235611-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235611

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

This can be demonstrated:

tuexen@epyc:~ % cat test.c
int main(void)
{
        return (0);
}
tuexen@epyc:~ % cc -fsanitize-coverage=3Dtrace-pc,trace-cmp -o test_1.o -c =
test.c
tuexen@epyc:~ % cc -fsanitize-coverage=3Dtrace-pc,trace-cmp
-fno-sanitize-coverage=3Dtrace-pc,trace-cmp -o test_2.o -c test.c
tuexen@epyc:~ % cc -fsanitize-coverage=3Dtrace-pc,trace-cmp -fno-sanitize=
=3Dall -o
test_3.o -c test.c
tuexen@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@epyc:~ % diff test_1.o test_3.o

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235611-227-9pFt1aA1TG>