Turn off core dumps before starting the main body of test-release.sh.
authorDimitry Andric <dimitry@andric.com>
Wed, 15 Apr 2020 18:29:20 +0000 (20:29 +0200)
committerDimitry Andric <dimitry@andric.com>
Wed, 15 Apr 2020 18:29:40 +0000 (20:29 +0200)
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

llvm/utils/release/test-release.sh

index 3cd101e..6b3e6b5 100755 (executable)
@@ -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