[PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 21 10:47:22 PST 2016


On Thu, Jan 21, 2016 at 1:44 PM, Alexey Samsonov <vonosmas at gmail.com> wrote:

>
> On Thu, Jan 21, 2016 at 10:20 AM, Nico Weber <thakis at chromium.org> wrote:
>
>> On Thu, Jan 21, 2016 at 1:19 PM, Alexey Samsonov <vonosmas at gmail.com>
>> wrote:
>>
>>>
>>> On Wed, Jan 20, 2016 at 12:42 PM, Nico Weber <thakis at chromium.org>
>>> wrote:
>>>
>>>> thakis added a comment.
>>>>
>>>> After some more debugging, the only thing in this test that's still
>>>> faiilng on Windows is the "unsigned-integer-overflow:do_overflow"
>>>> suppression -- when llvm-symbolizer gets symbols from PDBs it currently
>>>> requires the DIA SDK. If that's not found at cmake time, then
>>>> llvm-symbolizer silently can't symbolize executables with pdb debug info.
>>>>
>>>> The test should probably have some "REQUIRES: symbols" thingie. (I'll
>>>> also fix llvm not finding the DIA SDK in our build setup, but the test will
>>>> still fail for others who don't have that.)
>>>>
>>>
>>> Interesting, thanks for digging into this! IIRC the story with Dwarf
>>> support on Windows (both producing it by Clang and consuming it by
>>> llvm-symbolizer) got slightly better recently. Maybe, we can add a compiler
>>> flag to force Clang emit Dwarf data on Windows in our compiler-rt test
>>> suites?
>>>
>>
>> It isn't heavily tested and it'd require using lld instead of link. I
>> think it's possible. But most clients probably use PDBs for now, so maybe
>> testing that is better, not sure.
>>
>
> Oh, ok, let's not depend on lld then. So, we need to either determine if
> DIA SDK is available at compiler-rt configure time, or teach
> llvm-symbolizer.exe to tell us that (as we support standalone compiler-rt
> build)...
>

Maybe the lit config file could compile a small program with clang-cl and
then run it through llvm-symbolizer and see if a symbol is returned?


>
>
>>
>>
>>>
>>>
>>>>
>>>>
>>>> Repository:
>>>>   rL LLVM
>>>>
>>>> http://reviews.llvm.org/D15363
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Alexey Samsonov
>>> vonosmas at gmail.com
>>>
>>
>>
>
>
> --
> Alexey Samsonov
> vonosmas at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160121/ec069d92/attachment.html>


More information about the cfe-commits mailing list