This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] [test] [ubsan] Mark failing tests as unsupported for mingw configs
ClosedPublic

Authored by mstorsjo on Apr 12 2023, 1:28 PM.

Details

Summary

All of these are already unsupported for MSVC style configs. For
some cases, simplify the regex to match any windows triple, while
for others, mention windows-msvc and windows-gnu specifically,
if they are separate cases that happen to fail for different reasons.

-fsanitize=function is unsupported both in mingw and MSVC modes.

The vptr tests expect to get demangled C++ type info names, but
Itanium C++ typenames don't get demangled by ubsan on Windows.

The test that tries to build a .so doesn't work as such on
Windows.

While mingw toolchains do support weak symbols, the relevant
sanitizer symbols aren't made weak on Windows.

Diff Detail

Event Timeline

mstorsjo created this revision.Apr 12 2023, 1:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 1:28 PM
Herald added subscribers: Enna1, dberris. · View Herald Transcript
mstorsjo requested review of this revision.Apr 12 2023, 1:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 1:28 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
alvinhochun added inline comments.Apr 19 2023, 6:14 AM
compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp
10

Is this something that should be fixable? If so, maybe add a FIXME and use XFAIL instead?

compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp
50

Same as above,

mstorsjo added inline comments.Apr 19 2023, 9:04 AM
compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp
10

It’s maybe fixable, yes (I’ve got a PoC, but I’m not sure if I’m violating some layering there etc, so I wanted to hold off of trying to sort that out for now.)

I guess an XFAIL and fixme comment might be in order here.

compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp
50

This one is trickier than the one above; my PoC that hardwires itanium unwinding failed on other nontrivial shell constructs here, so it’s less clear than the other one.

mstorsjo updated this revision to Diff 514987.Apr 19 2023, 9:15 AM

Changed two cases into XFAIL with FIXME comments.

vitalybuka accepted this revision.Apr 19 2023, 10:53 AM
This revision is now accepted and ready to land.Apr 19 2023, 10:53 AM
This revision was landed with ongoing or failed builds.Apr 19 2023, 1:07 PM
This revision was automatically updated to reflect the committed changes.