You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2020/02/20 14:36:46 UTC

svn commit: r1874256 - in /httpd/httpd/trunk: .travis.yml test/travis_run_linux.sh

Author: jorton
Date: Thu Feb 20 14:36:46 2020
New Revision: 1874256

URL: http://svn.apache.org/viewvc?rev=1874256&view=rev
Log:
Add gcc 9 job, enable enhanced malloc debugging for pool-debug job.

Modified:
    httpd/httpd/trunk/.travis.yml
    httpd/httpd/trunk/test/travis_run_linux.sh

Modified: httpd/httpd/trunk/.travis.yml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/.travis.yml?rev=1874256&r1=1874255&r2=1874256&view=diff
==============================================================================
--- httpd/httpd/trunk/.travis.yml (original)
+++ httpd/httpd/trunk/.travis.yml Thu Feb 20 14:36:46 2020
@@ -82,8 +82,6 @@ matrix:
            SKIP_TESTING=1
       addons:
         apt:
-          sources:
-            - ubuntu-toolchain-r-test
           packages:
             - gcc-8
             - libtool-bin
@@ -98,6 +96,27 @@ matrix:
             - libjansson-dev
             - libpcre2-dev
     # -------------------------------------------------------------------------
+    - name: Linux Ubuntu, GCC 9 maintainer-mode w/-Werror
+      env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror CC=gcc-9"
+           SKIP_TESTING=1
+      addons:
+        apt:
+          sources:
+            - sourceline: 'ppa:ubuntu-toolchain-r/test'
+          packages:
+            - gcc-9
+            - libtool-bin
+            - libapr1-dev
+            - libaprutil1-dev
+            - perl-doc
+            - lua5.3-dev
+            - libbrotli-dev
+            - libcurl4-openssl-dev
+            - libsystemd-dev
+            - libnghttp2-dev
+            - libjansson-dev
+            - libpcre2-dev
+    # -------------------------------------------------------------------------
     # MFLAGS= works around https://bz.apache.org/bugzilla/show_bug.cgi?id=63942
     - if: branch != 2.4.x
       name: Linux Ubuntu, Regenerate ap_expr
@@ -136,9 +155,9 @@ matrix:
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu, APR 1.7.0 --enable-pool-debug, APR-util 1.6.1
       env: APR_VERSION=1.7.0 APR_CONFIG="--enable-pool-debug"
-           APU_VERSION=1.6.1
-           APU_CONFIG="--with-crypto"
+           APU_VERSION=1.6.1 APU_CONFIG="--with-crypto"
            CONFIG="--enable-mods-shared=reallyall"
+           TEST_MALLOC=1
     # -------------------------------------------------------------------------
     - name: Linux Ubuntu, litmus WebDAV tests
       env: CONFIG="--enable-dav --enable-dav-fs"

Modified: httpd/httpd/trunk/test/travis_run_linux.sh
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/travis_run_linux.sh?rev=1874256&r1=1874255&r2=1874256&view=diff
==============================================================================
--- httpd/httpd/trunk/test/travis_run_linux.sh (original)
+++ httpd/httpd/trunk/test/travis_run_linux.sh Thu Feb 20 14:36:46 2020
@@ -29,6 +29,12 @@ make $MFLAGS
 if ! test -v SKIP_TESTING; then
     set +e
 
+    if test -v TEST_MALLOC; then
+        # Enable enhanced glibc malloc debugging, see mallopt(3)
+        export MALLOC_PERTURB_=65 MALLOC_CHECK_=3
+        export LIBC_FATAL_STDERR_=1
+    fi
+
     if test -v TEST_UBSAN; then
         export UBSAN_OPTIONS="log_path=$PWD/ubsan.log"
     fi
@@ -58,10 +64,19 @@ if ! test -v SKIP_TESTING; then
         grep -C5 'Segmentation fault' test/perl-framework/t/logs/error_log
         RV=2
     fi
+
     if test -v TEST_UBSAN && ls ubsan.log.* &> /dev/null; then
         cat ubsan.log.*
         RV=3
     fi
 
+    # With LIBC_FATAL_STDERR_/MALLOC_CHECK_ glibc will abort when
+    # malloc errors are detected.  This should get caught by the
+    # segfault grep above, but in case it is not, catch it here too:
+    if grep 'glibc detected' test/perl-framework/t/logs/error_log; then
+        grep -C20 'glibc detected' test/perl-framework/t/logs/error_log
+        RV=4
+    fi
+
     exit $RV
 fi