]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1884306, r1885626 from trunk:
authorYann Ylavic <ylavic@apache.org>
Sun, 17 Jan 2021 22:46:45 +0000 (22:46 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 17 Jan 2021 22:46:45 +0000 (22:46 +0000)
ci: generate as many core files as there are crashes.

Get Lua dev package from liblua5.3-dev.

Call sysctl though sudo.

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

.travis.yml
test/travis_run_linux.sh

index 899b4268a72d72863128f79dd92c71487e18cae8..673a9e3efa1cefd36b5a36873dc886e37afac5c2 100644 (file)
@@ -19,7 +19,7 @@ addons:
       - libapr1-dev
       - libaprutil1-dev
       - perl-doc
-      - lua5.3-dev
+      - liblua5.3-dev
       - libbrotli-dev
       - libcurl4-openssl-dev
       - libsystemd-dev
@@ -136,7 +136,7 @@ jobs:
             - libapr1-dev
             - libaprutil1-dev
             - perl-doc
-            - lua5.3-dev
+            - liblua5.3-dev
             - libbrotli-dev
             - libcurl4-openssl-dev
             - libsystemd-dev
@@ -158,7 +158,7 @@ jobs:
             - libapr1-dev
             - libaprutil1-dev
             - perl-doc
-            - lua5.3-dev
+            - liblua5.3-dev
             - libbrotli-dev
             - libcurl4-openssl-dev
             - libsystemd-dev
@@ -180,7 +180,7 @@ jobs:
             - libapr1-dev
             - libaprutil1-dev
             - perl-doc
-            - lua5.3-dev
+            - liblua5.3-dev
             - libbrotli-dev
             - libcurl4-openssl-dev
             - libsystemd-dev
@@ -285,7 +285,7 @@ jobs:
             - libapr1-dev
             - libaprutil1-dev
             - perl-doc
-            - lua5.3-dev
+            - liblua5.3-dev
             - libbrotli-dev
             - libcurl4-openssl-dev
             - libsystemd-dev
index ed1da70e4047908b519262e87c5c77add51d8561..d86b751bea2cb217e3ac71f97a8898123e6ced17 100755 (executable)
@@ -81,6 +81,9 @@ if ! test -v SKIP_TESTING; then
         export ASAN_OPTIONS="log_path=$PWD/asan.log"
     fi
 
+    # Try to keep all potential coredumps from all processes
+    sudo sysctl -w kernel.core_uses_pid=1 2>/dev/null || true
+
     if test -v WITH_TEST_SUITE; then
         make check TESTS="${TESTS}" TEST_CONFIG="${TEST_ARGS}"
         RV=$?
@@ -95,7 +98,7 @@ if ! test -v SKIP_TESTING; then
 
     # Skip further testing if a core dump was created during the test
     # suite run above.
-    if test $RV -eq 0 -a -f test/perl-framework/t/core; then
+    if test $RV -eq 0 && ls test/perl-framework/t/core test/perl-framework/t/core.* &>/dev/null; then
         RV=4
     fi            
     
@@ -157,6 +160,10 @@ if ! test -v SKIP_TESTING; then
         gdb -ex 'thread apply all backtrace' -batch ./httpd test/perl-framework/t/core
         RV=5
     fi
+    for core in test/perl-framework/t/core.*; do
+        gdb -ex 'thread apply all backtrace' -batch ./httpd "$core"
+        RV=5
+    done
 
     exit $RV
 fi