You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2022/07/12 11:51:41 UTC

[doris] branch master updated: [enhancement](be) be asan add asan_suppr.conf to ignore known leak. (#10768)

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

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 89bec9b56a [enhancement](be) be asan add asan_suppr.conf to ignore known leak. (#10768)
89bec9b56a is described below

commit 89bec9b56ad912612084be33eb58613e968a2542
Author: Lei Zhang <10...@qq.com>
AuthorDate: Tue Jul 12 19:51:34 2022 +0800

    [enhancement](be) be asan add asan_suppr.conf to ignore known leak. (#10768)
---
 .gitignore           |  1 -
 be/CMakeLists.txt    |  1 +
 bin/start_be.sh      |  3 +++
 conf/asan_suppr.conf | 19 +++++++++++++++++++
 4 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index db334043c4..a10326bc75 100644
--- a/.gitignore
+++ b/.gitignore
@@ -43,7 +43,6 @@ docs/.temp
 
 # output, thirdparty, extension
 output/
-conf/
 rpc_data/
 thirdparty/src
 thirdparty/installed
diff --git a/be/CMakeLists.txt b/be/CMakeLists.txt
index 3f822b7008..1791458aff 100644
--- a/be/CMakeLists.txt
+++ b/be/CMakeLists.txt
@@ -815,6 +815,7 @@ install(FILES
 install(FILES
     ${BASE_DIR}/../conf/be.conf
     ${BASE_DIR}/../conf/odbcinst.ini
+    ${BASE_DIR}/../conf/asan_suppr.conf
     DESTINATION ${OUTPUT_DIR}/conf)
 
 get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
diff --git a/bin/start_be.sh b/bin/start_be.sh
index a121b47f75..74e1b49c14 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -125,6 +125,9 @@ export ODBCSYSINI=$DORIS_HOME/conf
 # support utf8 for oracle database
 export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
 
+#filter known leak for lsan.
+export LSAN_OPTIONS=suppressions=${DORIS_HOME}/conf/asan_suppr.conf
+
 while read line; do
     envline=$(echo $line | sed 's/[[:blank:]]*=[[:blank:]]*/=/g' | sed 's/^[[:blank:]]*//g' | egrep "^[[:upper:]]([[:upper:]]|_|[[:digit:]])*=")
     envline=$(eval "echo $envline")
diff --git a/conf/asan_suppr.conf b/conf/asan_suppr.conf
new file mode 100644
index 0000000000..254e6901ac
--- /dev/null
+++ b/conf/asan_suppr.conf
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# This is a known leak.
+leak:brpc
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org