Skip to content

Commit

Permalink
[GLUTEN-6091][CH] Avoid using LD_PRELOAD in child process (#6092)
Browse files Browse the repository at this point in the history
[CH] Avoid using LD_PRELOAD in child process
  • Loading branch information
baibaichen authored Jun 14, 2024
1 parent 284b304 commit a36d307
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpp-ch/local-engine/Common/CHUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
}

Expand Down
4 changes: 4 additions & 0 deletions cpp-ch/local-engine/Functions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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_OBJECTS:gluten_spark_functions_obj>)

target_link_libraries(gluten_spark_functions_obj PRIVATE ${PRIVATE_LIBS})
Expand Down

0 comments on commit a36d307

Please sign in to comment.