Skip to content

Commit

Permalink
Set JULIA_TEST_TIMEOUT_SIGNUM=11 to catch more coredumps
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jun 29, 2022
1 parent 90c65d4 commit 4f17fc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utilities/test_julia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,17 @@ 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)"
elif [[ "${OS}" == "macos" || "${OS}" == "freebsd" ]]; 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"
Expand Down

0 comments on commit 4f17fc7

Please sign in to comment.