[compiler-rt] r304673 - Mark sancov test as unsupported on Darwin

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 13 17:58:25 PDT 2017


On Tue, Jun 13, 2017 at 5:53 PM, George Karpenkov <ekarpenkov at apple.com>
wrote:

> I’m confused, all libfuzzer tests pass on my machine.
>

As of now, there is
if (NOT APPLE AND NOT MSVC)

  add_subdirectory(inline-8bit-counters)

endif()
in lib/Fuzzer/test/CMakeLists.txt

If you remove the if(), will these tests still pass?


> I suspect the issue is with older Darwin versions.
> In that case, can we guard against older versions specifically, rather
> than disabling Darwin altogether?
>

Can we stop using old darwin on the bots?


> Also, why the error has only appeared now?
>

This is a new experimental functionality (faster coverage instrumentation;
not feature-complete yet).
I've added -fsanitize-coverage=inline-8bit-counters ~ 10 days ago and a
related test for libFuzzer today.


>
> On Jun 13, 2017, at 4:10 PM, Kostya Serebryany <kcc at google.com> wrote:
>
> also: r305335
>
> On Wed, Jun 7, 2017 at 10:11 PM, George Karpenkov <ekarpenkov at apple.com>
> wrote:
>
>> Weird though, my primary testing platform is a mac… maybe a different
>> version? I’ll take a look.
>> Also section specifier did change between versions.
>>
>> On Jun 7, 2017, at 9:29 PM, Kostya Serebryany <kcc at google.com> wrote:
>>
>> +ekarpenkov@
>>
>> Will it help to use shorter name for this section on Mac?
>>
>> --kcc
>>
>> On Sat, Jun 3, 2017 at 6:56 PM, Vedant Kumar via llvm-commits <
>> llvm-commits at lists.llvm.org> wrote:
>>
>>> Author: vedantk
>>> Date: Sat Jun  3 20:56:44 2017
>>> New Revision: 304673
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=304673&view=rev
>>> Log:
>>> Mark sancov test as unsupported on Darwin
>>>
>>> This test has been failing on all Darwin bots since it was introduced:
>>> http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/32111
>>>
>>> fatal error: error in backend: Global variable '__sancov_gen_' has an
>>> invalid section specifier '__DATA,__sancov_counters': mach-o section
>>> specifier requires a section whose length is between 1 and 16 characters.
>>> Target: x86_64-apple-darwin15.6.0
>>>
>>> Modified:
>>>     compiler-rt/trunk/test/sanitizer_common/TestCases/sanitizer_
>>> coverage_inline8bit_counter.cc
>>>
>>> Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/sanitizer_
>>> coverage_inline8bit_counter.cc
>>> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/s
>>> anitizer_common/TestCases/sanitizer_coverage_inline8bit_coun
>>> ter.cc?rev=304673&r1=304672&r2=304673&view=diff
>>> ============================================================
>>> ==================
>>> --- compiler-rt/trunk/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc
>>> (original)
>>> +++ compiler-rt/trunk/test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc
>>> Sat Jun  3 20:56:44 2017
>>> @@ -1,7 +1,7 @@
>>>  // Tests -fsanitize-coverage=inline-8bit-counters
>>>  //
>>>  // REQUIRES: has_sancovcc,stable-runtime
>>> -// UNSUPPORTED: i386-darwin
>>> +// UNSUPPORTED: i386-darwin, x86_64-darwin
>>>  //
>>>  // RUN: %clangxx -O0 %s -fsanitize-coverage=inline-8bit-counters 2>&1
>>>
>>>
>>>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170613/0372bba0/attachment.html>


More information about the llvm-commits mailing list