https://bugs.winehq.org/show_bug.cgi?id=40330
--- Comment #12 from Austin English austinenglish@gmail.com --- Though after getting it to build, running wine fails; looks like the preloader interferes with ASAN: ==9822==Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING. ==9822==ASan shadow was supposed to be located in the [0x1ffff000-0x3fffffff] range. ==9822==Process memory map follows: 0x00010000-0x68000000 0x7c000000-0x7c002000 /var/lib/jenkins/home/workspace/wine-gcc-asan/loader/wine 0x7c002000-0x7c003000 /var/lib/jenkins/home/workspace/wine-gcc-asan/loader/wine 0x7c003000-0x7c004000 /var/lib/jenkins/home/workspace/wine-gcc-asan/loader/wine 0x7c400000-0x7c402000 /var/lib/jenkins/home/workspace/wine-gcc-asan/loader/wine-preloader 0x7c403000-0x7c404000 /var/lib/jenkins/home/workspace/wine-gcc-asan/loader/wine-preloader
I tried the LD_PRELOAD workaround: export ASAN_OPTIONS=halt_on_error=0 export LD_PRELOAD="/usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libasan.so.4 /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/32/libasan.so.4"
as well as -fsanitize-recover=address, but none of those helped. From a quick glance at ASAN bugs, sounds like it's a WONTFIX.