[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-980-gc055f1acd

git at osgeo.org git at osgeo.org
Sat Jun 17 20:46:10 PDT 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  c055f1acdd1af5a03408c1b67743abc3b4bdf7a8 (commit)
      from  b0388921dcea093d370fddc45b3259610f34153a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c055f1acdd1af5a03408c1b67743abc3b4bdf7a8
Author: Regina Obe <lr at pcorp.us>
Date:   Sat Jun 17 23:38:09 2023 -0400

    FIX GHA clang failures for clang  14
    
    - remove  explicit conversion, seems to cause clang 14 to fail
    - base path of LD_PRELOAD based on major version of clang
      instead of hard-coded 11
    
    Closes #5400

diff --git a/ci/github/run_usan_clang.sh b/ci/github/run_usan_clang.sh
index 70652ba0b..296c44ffc 100644
--- a/ci/github/run_usan_clang.sh
+++ b/ci/github/run_usan_clang.sh
@@ -1,8 +1,12 @@
 #!/usr/bin/env bash
 set -e
-
+CLANG_FULL_VER=`clang --version`
+echo $CLANG_FULL_VER
+echo `cat /etc/os-release`
+export CLANG_VER=`clang --version | perl -lne 'print $1 if /version (\d+)/'`
+echo "Clang major version is: $CLANG_VER"
 # Enable undefined behaviour sanitizer using traps
-CFLAGS_USAN="-g3 -O0 -mtune=generic -fno-omit-frame-pointer -fsanitize=undefined,implicit-conversion -fsanitize-undefined-trap-on-error -fno-sanitize-recover=implicit-conversion"
+CFLAGS_USAN="-g3 -O0 -mtune=generic -fno-omit-frame-pointer -fsanitize=undefined -fsanitize-undefined-trap-on-error -fno-sanitize-recover"
 LDFLAGS_STD="-Wl,-Bsymbolic-functions -Wl,-z,relro"
 
 # Sanitizer options to continue avoid stopping the runs on leaks (expected on postgres binaries)
@@ -10,7 +14,8 @@ export ASAN_OPTIONS=halt_on_error=false,leak_check_at_exit=false,exitcode=0
 export MSAN_OPTIONS=halt_on_error=false,leak_check_at_exit=false,exitcode=0
 
 #Run postgres preloading sanitizer libs
-LD_PRELOAD=/usr/lib/clang/11/lib/linux/libclang_rt.asan-x86_64.so \
+LD_PRELOAD=/usr/lib/clang/${CLANG_VER}/lib/linux/libclang_rt.asan-x86_64.so
+
 /usr/local/pgsql/bin/pg_ctl -c -o '-F' -l /tmp/logfile start
 
 

-----------------------------------------------------------------------

Summary of changes:
 ci/github/run_usan_clang.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list