Skip to content

Commit 7cf4066

Browse files
authored
explicitly link libresolv for all variants of cmsRun
1 parent 6ba135d commit 7cf4066

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

FWCore/Framework/bin/BuildFile.xml

Lines changed: 15 additions & 14 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"/>
@@ -29,20 +44,6 @@
2944
</bin>
3045

3146
<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>
4647
<use name="tbb"/>
4748
<use name="boost"/>
4849
<use name="boost_program_options"/>

0 commit comments

Comments
 (0)