Repository navigation
Commit 3c7a9f6
committed
[fix](build) Link getentropy compatibility explicitly under ASAN
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
ASAN provides a weak getentropy interceptor that satisfies references from
Abseil before the linker scans the glibc compatibility archive. The Doris
implementation is not extracted, and on glibc 2.17 the interceptor calls a
null real_getentropy pointer during Arrow Flight initialization.
Move the existing implementation into glibc-compatibility-explicit while
preserving the sys/random.h guard, the ARM ASAN memcpy exclusion, and the
vendored source's Clang conversion-warning policy.
### Release note
Fix an ASAN crash when initializing Arrow Flight on glibc 2.17 systems.
### Check List (For Author)
- Test: Manual before/after reproducer using the actual compatibility CMake targets and Abseil with Clang 20.1.8 on CentOS 7/glibc 2.17. ASAN_UT, ASAN+UBSAN and Debug passed entropy and boundary/error checks; ELF requirements remain at or below GLIBC_2.17. ARM and missing-header CMake branches verified by configuration. RemoteDorisV2ReaderTest.* could not build because the local libarrow_compute.a dependency is missing.
- Behavior changed: Yes, the existing getentropy compatibility implementation is always linked when sys/random.h is available.
- Does this need documentation: No1 parent 73be014 commit 3c7a9f6
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
83 | 80 | | |
84 | 81 | | |
85 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| |||
0 commit comments