Skip to content

Commit 639c551

Browse files
authored
Merge pull request #48181 from smuzaffar/san-gcc13-fix
[xSAN]Explicitly link against libresolv for Sanitizer IB
2 parents d5884f4 + 7cf4066 commit 639c551

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

FWCore/Framework/bin/BuildFile.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<!--
2+
Starting with GLIBC version 2.34, the dn_expand function, previously found in libresolv.so,
3+
was moved to libc.so. This function is used internally by the getaddrinfo() system call.
4+
In our setup, we are using EL8 image. However, due to compatibility issues between
5+
newer libasan.so in GCC 13.1 and the older images, the linker does not link with libresolv.so.
6+
This results in crashes in getaddrinfo().
7+
To address this, we explicitly link libresolv.so to all variants of cmsRun for
8+
xASAN integration builds targeting el8_amd64_gcc13/14
9+
-->
10+
<ifrelease name="ASAN|UBSAN">
11+
<ifarchitecture name="el8_amd64_gcc1[34]">
12+
<use name="resolv"/>
13+
</ifarchitecture>
14+
</ifrelease>
15+
116
<bin name="cmsRunGlibC" file="cmsRun.cpp">
217
<use name="roothistmatrix"/>
318
<use name="tbb"/>

0 commit comments

Comments
 (0)