Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GLUTEN-6091][CH] Avoid using LD_PRELOAD in child process #6092

Merged
merged 5 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading