This is an automated email from the ASF dual-hosted git repository.

laiyingchun pushed a commit to branch v2.5
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/v2.5 by this push:
     new ca4039372 fix(ASAN): avoid reporting false 'odr-violation' issues 
(#1611) (#1646)
ca4039372 is described below

commit ca40393727a460795b362648a947c172544a8ee0
Author: Dan Wang <[email protected]>
AuthorDate: Wed Oct 18 15:12:51 2023 +0800

    fix(ASAN): avoid reporting false 'odr-violation' issues (#1611) (#1646)
    
    https://github.com/apache/incubator-pegasus/issues/1645
    
    This patch is to disable AddressSanitizerOneDefinitionRuleViolation, see
    https://github.com/google/sanitizers/issues/1017 for details.
    
    This PR is to cherry-pick #1611 into v2.5 to solve issue #1645.
---
 run.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/run.sh b/run.sh
index 75b688a8a..2c47df75d 100755
--- a/run.sh
+++ b/run.sh
@@ -26,6 +26,8 @@ export BUILD_LATEST_DIR=${BUILD_ROOT_DIR}/latest
 export REPORT_DIR="$ROOT/test_report"
 export THIRDPARTY_ROOT=$ROOT/thirdparty
 export 
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:${BUILD_LATEST_DIR}/output/lib:${THIRDPARTY_ROOT}/output/lib:${LD_LIBRARY_PATH}
+# Disable AddressSanitizerOneDefinitionRuleViolation, see 
https://github.com/google/sanitizers/issues/1017 for details.
+export ASAN_OPTIONS=detect_odr_violation=0
 
 function usage()
 {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to