Skip to content

Commit e5116b6

Browse files
Rollup merge of #43536 - alexcrichton:privileged, r=TimNN
Flag docker invocations as --privileged on CI When upgrading to LLVM 5.0 it was found that the leak sanitizer tests were failing with fatal errors, but they were passing locally when run. Turns out it looks like they may be using new ptrace-like syscalls so the docker container now needs `--privileged` when executing to complete the test.
2 parents a3eadd7 + b121689 commit e5116b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ci/docker/run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ else
6767
args="$args --env SCCACHE_DIR=/sccache --volume $HOME/.cache/sccache:/sccache"
6868
fi
6969

70+
# Run containers as privileged as it should give them access to some more
71+
# syscalls such as ptrace and whatnot. In the upgrade to LLVM 5.0 it was
72+
# discovered that the leak sanitizer apparently needs these syscalls nowadays so
73+
# we'll need `--privileged` for at least the `x86_64-gnu` builder, so this just
74+
# goes ahead and sets it for all builders.
75+
args="$args --privileged"
76+
7077
exec docker \
7178
run \
7279
--volume "$root_dir:/checkout:ro" \

0 commit comments

Comments
 (0)