Skip to content

Commit 67f5359

Browse files
committed
MDBF-1185: msan - clang 22 - need libunwind
The mariadbd --bootstrap still caused a large stack trace on exit similar to the problem that existed in clang-20. Unlike clang-20 the libunwind becomes hard linked to the generated executable. As the libunwind19 is a SONAME compatible library it is replaced so the test MSAN execution can occur.
1 parent 08a2190 commit 67f5359

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

ci_build_images/msan.fragment.Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ RUN . /etc/os-release \
6262
&& cd .. \
6363
&& rm -rf -- *
6464

65-
RUN if [ "${CLANG_VERSION}" -le 20 ]; then \
66-
for f in "$MSAN_LIBDIR"/libunwind*; do mv "$f" "$f"-disable; done \
65+
RUN for f in "$MSAN_LIBDIR"/libunwind*; do mv "$f" "$f"-disable; done; \
66+
if [ "${CLANG_VERSION}" -ge 22 ]; then \
67+
apt-get -y install libunwind-19; \
6768
fi
68-
# libunwrap move/disable because of https://github.com/llvm/llvm-project/issues/128621
69+
# libunwind move/disable because of https://github.com/llvm/llvm-project/issues/128621
70+
# libunwind-19 meets ABI compatibility as its now linked to built executables.
6971

7072
COPY msan.instrumentedlibs.sh /msan-build
7173
RUN ./msan.instrumentedlibs.sh

0 commit comments

Comments
 (0)