Skip to content

Commit

Permalink
[libc++] Add a CI job running MSAN
Browse files Browse the repository at this point in the history
For some reason, we've been going without a MSAN CI job, even though
even run-buildbot defined a generic-msan job. This must have been an
oversight that went unnoticed. Thanks to @EricWF for the catch.

Differential Revision: https://reviews.llvm.org/D120851
  • Loading branch information
ldionne committed Mar 31, 2022
1 parent 7f07600 commit cb055e5
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libcxx/utils/ci/buildkite-pipeline.yml
Expand Up @@ -276,6 +276,20 @@ steps:
limit: 2
timeout_in_minutes: 120

- label: "MSAN"
command: "libcxx/utils/ci/run-buildbot generic-msan"
artifact_paths:
- "**/test-results.xml"
- "**/*.abilist"
agents:
queue: "libcxx-builders"
os: "linux"
retry:
automatic:
- exit_status: -1 # Agent was lost
limit: 2
timeout_in_minutes: 120

# Tests with the various supported ways to build libc++.
- label: "Bootstrapping build"
command: "libcxx/utils/ci/run-buildbot bootstrapping-build"
Expand Down
3 changes: 3 additions & 0 deletions libunwind/test/forceunwind.pass.cpp
Expand Up @@ -9,6 +9,9 @@

// REQUIRES: linux

// TODO: Figure out why this fails with Memory Sanitizer.
// XFAIL: msan

// Basic test for _Unwind_ForcedUnwind.
// See libcxxabi/test/forced_unwind* tests too.

Expand Down
3 changes: 3 additions & 0 deletions libunwind/test/libunwind_01.pass.cpp
@@ -1,6 +1,9 @@
// TODO: Investigate these failures on x86_64 macOS back deployment
// UNSUPPORTED: target=x86_64-apple-darwin{{.+}}

// TODO: Figure out why this fails with Memory Sanitizer.
// XFAIL: msan

#include <libunwind.h>
#include <stdlib.h>
#include <string.h>
Expand Down
3 changes: 3 additions & 0 deletions libunwind/test/libunwind_02.pass.cpp
@@ -1,3 +1,6 @@
// TODO: Figure out why this fails with Memory Sanitizer.
// XFAIL: msan

#include <assert.h>
#include <stdlib.h>
#include <unwind.h>
Expand Down
4 changes: 4 additions & 0 deletions libunwind/test/remember_state_leak.pass.sh.s
@@ -1,4 +1,8 @@
# REQUIRES: target={{x86_64-.+-linux-gnu}}

// Inline assembly isn't supported by Memory Sanitizer
// UNSUPPORTED: msan

# RUN: %{build} -no-pie
# RUN: %{run}

Expand Down
3 changes: 3 additions & 0 deletions libunwind/test/signal_frame.pass.cpp
Expand Up @@ -12,6 +12,9 @@
// TODO: Investigate this failure on macOS
// XFAIL: target={{.+}}-apple-darwin{{.+}}

// TODO: Figure out why this fails with Memory Sanitizer.
// XFAIL: msan

// UNSUPPORTED: libunwind-arm-ehabi

// The AIX assembler does not support CFI directives, which
Expand Down
3 changes: 3 additions & 0 deletions libunwind/test/signal_unwind.pass.cpp
Expand Up @@ -10,6 +10,9 @@
// Ensure that the unwinder can cope with the signal handler.
// REQUIRES: linux && (target={{aarch64-.+}} || target={{x86_64-.+}})

// TODO: Figure out why this fails with Memory Sanitizer.
// XFAIL: msan

#include <assert.h>
#include <dlfcn.h>
#include <signal.h>
Expand Down
3 changes: 3 additions & 0 deletions libunwind/test/unwind_leaffunction.pass.cpp
Expand Up @@ -10,6 +10,9 @@
// Ensure that leaf function can be unwund.
// REQUIRES: linux && (target={{aarch64-.+}} || target={{x86_64-.+}})

// TODO: Figure out why this fails with Memory Sanitizer.
// XFAIL: msan

#include <assert.h>
#include <dlfcn.h>
#include <signal.h>
Expand Down

0 comments on commit cb055e5

Please sign in to comment.