diff --git a/cpp-ch/local-engine/Common/CHUtil.cpp b/cpp-ch/local-engine/Common/CHUtil.cpp index fa6124cf011f..2dd5f67687db 100644 --- a/cpp-ch/local-engine/Common/CHUtil.cpp +++ b/cpp-ch/local-engine/Common/CHUtil.cpp @@ -894,6 +894,9 @@ void BackendInitializerUtil::init(std::string * plan) cleanup_threads, 0, // We don't need any threads one all the parts will be deleted cleanup_threads); + + // Avoid using LD_PRELOAD in child process + unsetenv("LD_PRELOAD"); }); } diff --git a/cpp-ch/local-engine/Functions/CMakeLists.txt b/cpp-ch/local-engine/Functions/CMakeLists.txt index 74697315597b..9e31595e03d5 100644 --- a/cpp-ch/local-engine/Functions/CMakeLists.txt +++ b/cpp-ch/local-engine/Functions/CMakeLists.txt @@ -59,6 +59,10 @@ if(TARGET ch_rust::blake3) list(APPEND PRIVATE_LIBS ch_rust::blake3) endif() +if(TARGET ch_contrib::gwp_asan) + list(APPEND PRIVATE_LIBS ch_contrib::gwp_asan) +endif() + list(APPEND OBJECT_LIBS $) target_link_libraries(gluten_spark_functions_obj PRIVATE ${PRIVATE_LIBS})