[PATCH] D76191: Turn off core dumps before starting the main body of test-release.sh.

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 15 03:43:33 PDT 2020


dim created this revision.
dim added reviewers: hans, tstellar, rovka.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D76191

Files:
  llvm/utils/release/test-release.sh


Index: llvm/utils/release/test-release.sh
===================================================================
--- llvm/utils/release/test-release.sh
+++ llvm/utils/release/test-release.sh
@@ -484,6 +484,10 @@
 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76191.250410.patch
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200315/18d5d07c/attachment.bin>


More information about the llvm-commits mailing list