]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
github: Try to avoid crashes by LeakSanitizer
authorTobias Brunner <tobias@strongswan.org>
Thu, 6 Oct 2022 08:22:49 +0000 (10:22 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 6 Oct 2022 09:11:35 +0000 (11:11 +0200)
There are spurious crashes after test runs (during the reporting phase
of LeakSanitizer) that are triggered by seemingly unrelated code changes.
It seems to be related to how glibc handles dynamic TLS allocations.

.github/workflows/linux.yml

index a807ef98b479a7134f706cf95661fa8f957b0563..cd1dc7bb604e404dd465c5c5b1b340fd0ebdf7dd 100644 (file)
@@ -53,6 +53,8 @@ jobs:
       MONOLITHIC: ${{ matrix.monolithic || 'no' }}
       CC: ${{ matrix.compiler || 'gcc' }}
       TEST: ${{ matrix.test }}
+      # LSan causes spurious SIGSEGV after tests due to DTLS handling by glibc
+      ASAN_OPTIONS: intercept_tls_get_addr=0
     steps:
       - uses: actions/checkout@v2
       - uses: actions/cache@v2