[llvm-bugs] [Bug 45831] New: fsanitize-coverage=trace-pc incompatible with -fsanitze=bounds and -fsanitize=thread

via llvm-bugs llvm-bugs at lists.llvm.org
Thu May 7 09:11:44 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45831

            Bug ID: 45831
           Summary: fsanitize-coverage=trace-pc incompatible with
                    -fsanitze=bounds and -fsanitize=thread
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: arnd at linaro.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

clang disables '-fsanitize-coverage=trace-pc' whenever '-fsanitize=bounds' or
'-fsanitize=thread' are also passed, but the Linux kernel tries to use both
together:

$ clang-11 -Werror=unused-command-line-argument -fsanitize-coverage=trace-pc
-fsanitize=bounds -fsanitize=thread -xc /dev/null 
clang: error: argument unused during compilation:
'-fsanitize-coverage=trace-pc' [-Werror,-Wunused-command-line-argument]

According to the discussion at
https://lore.kernel.org/lkml/20200505142341.1096942-1-arnd@arndb.de/T/
we really want to use them -fsanitize-coverage=trace-pc together with one or
both of the other two, as we do with gcc. So far we have not been able to
determine whether disallowing the combination is an intentional restriction or
just a mistake in the handling of the command line arguments.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200507/854d1a1c/attachment.html>


More information about the llvm-bugs mailing list