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

yiguolei pushed a commit to branch dev-1.1.2
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/dev-1.1.2 by this push:
     new 682fc9797e [improvement](start_script) add ASAN and UBSAN env in 
start_be.sh #12014
682fc9797e is described below

commit 682fc9797e4a6c9ecf939e6c48b4b4f630424f26
Author: Yongqiang YANG <[email protected]>
AuthorDate: Wed Aug 24 08:43:00 2022 +0800

    [improvement](start_script) add ASAN and UBSAN env in start_be.sh #12014
    
    Neither asan nor ubsan does not generate core file by default,
    however, we need core file to analyze problems detected by asan and ubsan.
---
 bin/start_be.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/start_be.sh b/bin/start_be.sh
index 17d3406e4e..ca9bdd483f 100755
--- a/bin/start_be.sh
+++ b/bin/start_be.sh
@@ -113,6 +113,10 @@ else
     LIMIT="/bin/limit3 -c 0 -n 65536"
 fi
 
+## set asan and ubsan env to generate core file
+export 
ASAN_OPTIONS=symbolize=1:abort_on_error=1:disable_coredump=0:unmap_shadow_on_exit=1
+export UBSAN_OPTIONS=print_stacktrace=1
+
 if [ ${RUN_DAEMON} -eq 1 ]; then
     nohup $LIMIT ${DORIS_HOME}/lib/doris_be "$@" >> $LOG_DIR/be.out 2>&1 < 
/dev/null &
 else


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

Reply via email to