From d103e037b728cf115e4032141c3e6358373be35b Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Wed, 29 Jun 2022 22:39:25 +0000 Subject: [PATCH] Set `JULIA_TEST_TIMEOUT_SIGNUM=11` to catch more coredumps X-ref: https://github.com/JuliaLang/julia/pull/45864 --- utilities/test_julia.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utilities/test_julia.sh b/utilities/test_julia.sh index 93677794d..816a1d7a8 100644 --- a/utilities/test_julia.sh +++ b/utilities/test_julia.sh @@ -100,6 +100,9 @@ echo "JL_TERM_TIMEOUT is: ${JL_TERM_TIMEOUT}" # Show our core dump file pattern and size limit if we're going to be recording them if [[ -z "${USE_RR-}" ]]; then + # Tell Julia to send `SIGSEGV` if something times out internally, generating a coredump + export JULIA_TEST_TIMEOUT_SIGNUM=11 + ulimit -c unlimited if [[ "${OS}" == linux* || "${OS}" == "musl" ]]; then echo "Core dump pattern: $(cat /proc/sys/kernel/core_pattern)" @@ -107,6 +110,7 @@ if [[ -z "${USE_RR-}" ]]; then echo "Core dump pattern: $(sysctl -n kern.corefile)" fi echo "Core dump size limit: $(ulimit -c)" + echo "Timeout signal set to: ${JULIA_TEST_TIMEOUT_SIGNUM}" fi echo "--- Run the Julia test suite"