KeDeng has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23038
Change subject: Avoid hooking dl_iterate_phdr on Rocky Linux 9 to prevent ASan crashes ...................................................................... Avoid hooking dl_iterate_phdr on Rocky Linux 9 to prevent ASan crashes In ASan builds on Rocky Linux 9, overriding dl_iterate_phdr can lead to segmentation faults during early runtime initialization due to conflicts with the sanitizer's internal usage of this symbol. This patch introduces a new compile-time macro, __rocky_el9__, to disable the dl_iterate_phdr hook specifically for Rocky Linux 9 environments. The corresponding preprocessor condition has been updated to exclude the hook if __rocky_el9__ is defined, alongside other existing checks for THREAD_SANITIZER and __APPLE__. Relevant references: - https://sourceware.org/bugzilla/show_bug.cgi?id=19509 - https://github.com/google/sanitizers/issues/915 Change-Id: I5043e587c85dc18a37259f49b9c2f2008b3295ee --- M CMakeLists.txt M src/kudu/util/debug/unwind_safeness.cc 2 files changed, 32 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/38/23038/1 -- To view, visit http://gerrit.cloudera.org:8080/23038 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I5043e587c85dc18a37259f49b9c2f2008b3295ee Gerrit-Change-Number: 23038 Gerrit-PatchSet: 1 Gerrit-Owner: KeDeng <[email protected]>
