]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1910668 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Mon, 30 Oct 2023 12:32:42 +0000 (12:32 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 30 Oct 2023 12:32:42 +0000 (12:32 +0000)
pyhttpd: Generate core dumps on crash and show them in the ci eventually.

Reviewed by: ruediger (CI stuff is CTR)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1913435 13f79535-47bb-0310-9956-ffa450edef68

test/pyhttpd/env.py
test/travis_run_linux.sh

index d79ff6f0b0925e7336b3ac100aca2d47f66e324a..1d4e8b1c453d291cac0e9417635ca4b55a1d7ba4 100644 (file)
@@ -575,8 +575,13 @@ class HttpdTestEnv:
         with open(self._test_conf, 'w') as fd:
             fd.write('\n'.join(self._httpd_base_conf))
             fd.write('\n')
+            fd.write(f"CoreDumpDirectory {self._server_dir}\n")
             if self._verbosity >= 2:
                 fd.write(f"LogLevel core:trace5 {self.mpm_module}:trace5 http:trace5\n")
+            if self._verbosity >= 3:
+                fd.write(f"LogLevel dumpio:trace7\n")
+                fd.write(f"DumpIoOutput on\n")
+                fd.write(f"DumpIoInput on\n")
             if self._log_interesting:
                 fd.write(self._log_interesting)
             fd.write('\n\n')
index e953fbd00b3304fb834d94fb1b28ce5893721872..96bfcf74039b6d2b9235601d23b31ca22f5a5252 100755 (executable)
@@ -111,6 +111,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 WITH_TEST_SUITE; then
         make check TESTS="${TESTS}" TEST_CONFIG="${TEST_ARGS}"
@@ -259,7 +260,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