|
| 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 | + |
1 | 16 | <bin name="cmsRunGlibC" file="cmsRun.cpp"> |
2 | 17 | <use name="roothistmatrix"/> |
3 | 18 | <use name="tbb"/> |
|
29 | 44 | </bin> |
30 | 45 |
|
31 | 46 | <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> |
46 | 47 | <use name="tbb"/> |
47 | 48 | <use name="boost"/> |
48 | 49 | <use name="boost_program_options"/> |
|
0 commit comments