Skip to content

Commit 6ba135d

Browse files
committed
[xSAN]Explicitly link against libresolv for el8/gcc13|4 Sanitizer IB
1 parent ea8a8a7 commit 6ba135d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

FWCore/Framework/bin/BuildFile.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@
2929
</bin>
3030

3131
<bin name="cmsRun" file="cmsRun.cpp">
32+
<!--
33+
Starting with GLIBC version 2.34, the dn_expand function, previously found in libresolv.so,
34+
was moved to libc.so. This function is used internally by the getaddrinfo() system call.
35+
In our setup, we are using EL8 image. However, due to compatibility issues between
36+
newer libasan.so in GCC 13.1 and the older images, the linker does not link with libresolv.so.
37+
This results in crashes in getaddrinfo().
38+
To address this, we explicitly link libresolv.so for xASAN integration builds targeting
39+
el8_amd64_gcc13/14.
40+
-->
41+
<ifrelease name="ASAN|UBSAN">
42+
<ifarchitecture name="el8_amd64_gcc1[34]">
43+
<use name="resolv"/>
44+
</ifarchitecture>
45+
</ifrelease>
3246
<use name="tbb"/>
3347
<use name="boost"/>
3448
<use name="boost_program_options"/>

0 commit comments

Comments
 (0)