Description of problem: I tried to build OpenSlide with sanitizers enabled, using OpenSlide's wrapper tool for this. This worked fine on Fedora 39. To reproduce: dnf install -y git-core meson pkg-config python3 python3-requests python3-pyyaml diffutils zlib-devel libpng-devel libjpeg-turbo-devel libtiff-devel openjpeg2-devel gdk-pixbuf2-modules gdk-pixbuf2-devel libdicom-devel libxml2-devel sqlite-devel cairo-devel glib2-devel clang llvm git clone https://github.com/openslide/openslide cd openslide meson setup build cd build ninja test/driver sanitize Version-Release number of selected component: binutils-2.41-34.fc40 Additional info: reporter: libreport-2.17.15 runlevel: N 5 cgroup: 0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-41345979-a590-47c4-9176-4fb5d72f4e29.scope rootdir: / journald_cursor: s=653ac92871be4b06a24448959f584fbd;i=3de6046;b=23e8a6c67db0472084df408f3cc7bd2b;m=925a3edfa8;t=6175de2537565;x=faefe70a6eeca340 type: CCpp kernel: 6.8.7-300.fc40.x86_64 executable: /usr/bin/ld.bfd package: binutils-2.41-34.fc40 reason: ld.bfd killed by SIGSEGV backtrace_rating: 4 crash_function: elf_link_is_defined_archive_symbol cmdline: /usr/bin/ld --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o test/mosaic /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crt1.o /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crti.o /usr/bin/../lib/gcc/x86_64-redhat-linux/14/crtbegin.o -L/usr/bin/../lib/clang/18/lib/x86_64-redhat-linux-gnu -L/usr/bin/../lib/gcc/x86_64-redhat-linux/14 -L/usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/lib -L/usr/lib -plugin /usr/bin/../lib64/LLVMgold.so -plugin-opt=mcpu=x86-64 --whole-archive /usr/bin/../lib/clang/18/lib/x86_64-redhat-linux-gnu/libclang_rt.asan_static.a --no-whole-archive --whole-archive /usr/bin/../lib/clang/18/lib/x86_64-redhat-linux-gnu/libclang_rt.asan.a --no-whole-archive --dynamic-list=/usr/bin/../lib/clang/18/lib/x86_64-redhat-linux-gnu/libclang_rt.asan.a.syms test/mosaic.p/mosaic.c.o --as-needed --no-undefined --no-undefined -z undefs -rpath $'$ORIGIN/../src' -rpath-link /home/bgilbert/openslide/openslide/build/build-qzjtbn88/src --start-group src/libopenslide.so.1.0.0 common/libopenslide-common.a /usr/lib64/libglib-2.0.so /usr/lib64/libcairo.so --end-group --no-as-needed -lpthread -lrt -lm -ldl -lresolv -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/bin/../lib/gcc/x86_64-redhat-linux/14/crtend.o /usr/bin/../lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crtn.o uid: 1000 Truncated backtrace: Thread no. 1 (5 frames) #0 elf_link_is_defined_archive_symbol at ../../bfd/elflink.c:3574 #1 elf_link_add_archive_symbols at ../../bfd/elflink.c:6078 #2 load_symbols at ../../ld/ldlang.c:3098 #3 open_input_bfds at ../../ld/ldlang.c:3587 #5 lang_process at ../../ld/ldlang.c:8115
Created attachment 2030533 [details] File: proc_pid_status
Created attachment 2030534 [details] File: environ
Created attachment 2030536 [details] File: cpuinfo
Created attachment 2030538 [details] File: maps
Created attachment 2030540 [details] File: open_fds
Created attachment 2030542 [details] File: os_info
Created attachment 2030544 [details] File: mountinfo
Created attachment 2030546 [details] File: limits
Created attachment 2030548 [details] File: core_backtrace
Created attachment 2030550 [details] File: dso_list
Created attachment 2030551 [details] File: exploitable
Created attachment 2030552 [details] File: backtrace
If `test/driver sanitize` finishes the build and gets to the "Fetching Aperio/CMU-1.svs" stage, the problem didn't occur.
A workaround is to link with lld instead of ld.bfd.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ffaa95569f