pyhttpd: Generate core dumps on crash and show them in the ci eventually.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yann Ylavic
2023-06-28 15:20:40 +00:00
parent 56c4cfc4a7
commit 773ddc5a4a
2 changed files with 7 additions and 1 deletions

View File

@ -113,6 +113,7 @@ if ! test -v SKIP_TESTING; then
# Try to keep all potential coredumps from all processes
sudo sysctl -w kernel.core_uses_pid=1 2>/dev/null || true
ulimit -c unlimited 2>/dev/null || true
if ! test -v NO_TEST_FRAMEWORK; then
if test -v WITH_TEST_SUITE; then
@ -292,7 +293,7 @@ if ! test -v SKIP_TESTING; then
fi
fi
for core in `ls test/perl-framework/t/core{,.*} 2>/dev/null`; do
for core in `ls test/perl-framework/t/core{,.*} test/gen/apache/core{,.*} 2>/dev/null`; do
gdb -ex 'thread apply all backtrace full' -batch ./httpd "$core"
RV=5
done