]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Add printing USAN stack trace on github actions
authorArne Schwabe <arne@rfc2549.org>
Mon, 30 Jan 2023 17:29:35 +0000 (18:29 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 1 Feb 2023 16:25:33 +0000 (17:25 +0100)
This allows identifying the source of undefined behaviour more easily
from the github action logs.

Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20230130172936.3444840-4-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26102.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
.github/workflows/build.yaml

index 6adb69563d0653518ca427324eb81af643c07e76..132624547cd3ce30eb418d7a3ce64315215dae9d 100644 (file)
@@ -242,6 +242,9 @@ jobs:
 
     name: "clang-asan - ${{matrix.os}} - ${{matrix.ssllib}}"
 
+    env:
+      UBSAN_OPTIONS: print_stacktrace=1
+
     runs-on: ${{matrix.os}}
     steps:
       - name: Install dependencies
@@ -291,6 +294,7 @@ jobs:
       LDFLAGS: ${{ matrix.ldflags }}
       OPENSSL_CFLAGS: "-I/usr/local/opt/${{matrix.libdir}}/include"
       OPENSSL_LIBS: "-L/usr/local/opt/${{matrix.libdir}}/lib -lcrypto -lssl"
+      UBSAN_OPTIONS: print_stacktrace=1
     steps:
       - name: Install dependencies
         run: brew install openssl@1.1 openssl@3 lzo lz4 man2html cmocka libtool automake autoconf libressl
@@ -400,6 +404,7 @@ jobs:
       CFLAGS: ${{ matrix.cflags }}
       LDFLAGS: ${{ matrix.ldflags }}
       CC: ${{matrix.cc}}
+      UBSAN_OPTIONS: print_stacktrace=1
 
     steps:
       - name: Install dependencies