This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Skip ClangdVFSTest.TestStackOverflow when address sanitizer is used
ClosedPublic

Authored by bjope on Mar 20 2020, 3:23 PM.

Details

Summary

The ClangdVFSTest.TestStackOverflow unittest does not seem to work
when building the test with address sanitizer activated. Afaict the
goal is to get a constexpr depth error, rather than stack overflow.
But with asan instrumentation we do get stack overflow complaints
from asan. As a workaround this patch simply disables the test case,
when being built with address sanitizer activated.

Diff Detail

Event Timeline

bjope created this revision.Mar 20 2020, 3:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 20 2020, 3:23 PM
bjope added a comment.Mar 20 2020, 3:27 PM

I don't know if this is a good solution. But we've had problems with our downstream bots that builds llvm with asan, and runs check-all, for awhile (probably since we merged https://reviews.llvm.org/D50993).

sammccall accepted this revision.Mar 21 2020, 2:02 AM

This makes sense to me. We set the thread stack size to clang::DesiredStackSize which is an empirical hardcoded number tuned for a regular build, not asan.

Thanks, and sorry for the problems!

This revision is now accepted and ready to land.Mar 21 2020, 2:02 AM
This revision was automatically updated to reflect the committed changes.