Disable stack-check of ASAN

This commit is contained in:
obdev 2024-12-06 14:16:36 +00:00 committed by ob-robot
parent f06dba66da
commit 3a2cf7177c
2 changed files with 5 additions and 5 deletions

View File

@ -264,11 +264,11 @@ if (OB_USE_CLANG)
set(_CMAKE_TOOLCHAIN_LOCATION "${DEVTOOLS_DIR}/bin")
if (OB_USE_ASAN)
ob_define(CMAKE_ASAN_FLAG "-fstack-protector-strong -fsanitize=address -fno-optimize-sibling-calls -fsanitize-blacklist=${ASAN_IGNORE_LIST}")
ob_define(CMAKE_ASAN_FLAG "-mllvm -asan-stack=0 -fsanitize=address -fno-optimize-sibling-calls -fsanitize-blacklist=${ASAN_IGNORE_LIST}")
endif()
if (OB_USE_LLD)
set(LD_OPT "-fuse-ld=${DEVTOOLS_DIR}/bin/ld.lld")
set(LD_OPT "-fuse-ld=${DEVTOOLS_DIR}/bin/ld.lld -Wno-unused-command-line-argument")
set(REORDER_COMP_OPT "-ffunction-sections -fdebug-info-for-profiling")
set(REORDER_LINK_OPT "-Wl,--no-rosegment,--build-id=sha1 ${HOTFUNC_OPT}")
set(OB_LD_BIN "${DEVTOOLS_DIR}/bin/ld.lld")

View File

@ -359,9 +359,9 @@ int ObLLVMDIHelper::create_array_type(ObLLVMDIType &base_type, int64_t count,
if (OB_ISNULL(jc_)) {
ret = OB_NOT_INIT;
LOG_WARN("jc is NULL", K(ret));
} else if (OB_ISNULL(subrange = jc_->dbuilder_.getOrCreateSubrange(0, count))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("subrange is NULL", K(ret));
} else if (OB_ISNULL(subrange = jc_->dbuilder_.getOrCreateSubrange(0, count))) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("subrange is NULL", K(ret));
} else if (OB_ISNULL(base_type.get_v())) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("base type is NULL", K(ret));