Skip to content

Commit

Permalink
Turn off core dumps before starting the main body of test-release.sh.
Browse files Browse the repository at this point in the history
Summary:
Some of the regression tests, such as those for the various sanitizers,
use huge shadow memory maps (showing up in top as 20 TiB).  If any of
those ever crashes, your test system's disk will be filled up until
everything falls over.  Set the ulimit for core dumps to 0 to prevent
this problem.

Reviewers: hans, tstellar, rovka

Reviewed By: hans

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76191
  • Loading branch information
DimitryAndric committed Apr 15, 2020
1 parent 91f110f commit 9daadce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/utils/release/test-release.sh
Expand Up @@ -484,6 +484,10 @@ function package_release() {
set -e
set -o pipefail

# Turn off core dumps, as some test cases can easily fill up even the largest
# file systems.
ulimit -c 0

if [ "$do_checkout" = "yes" ]; then
export_sources
fi
Expand Down

0 comments on commit 9daadce

Please sign in to comment.