[llvm] 9daadce - Turn off core dumps before starting the main body of test-release.sh.
Dimitry Andric via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 11:29:56 PDT 2020
Author: Dimitry Andric
Date: 2020-04-15T20:29:40+02:00
New Revision: 9daadcec81376960f6bbae4a9d381eca69eb9317
URL: https://github.com/llvm/llvm-project/commit/9daadcec81376960f6bbae4a9d381eca69eb9317
DIFF: https://github.com/llvm/llvm-project/commit/9daadcec81376960f6bbae4a9d381eca69eb9317.diff
LOG: Turn off core dumps before starting the main body of test-release.sh.
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
Added:
Modified:
llvm/utils/release/test-release.sh
Removed:
################################################################################
diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 3cd101ea04a8..6b3e6b5453ea 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -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
More information about the llvm-commits
mailing list