It seems like ASLR is a contributing factor. See the 2021-01-31 entry on https://www.msys2.org/news/ . After adding -Wl,--disable-dynamicbase,--disable-high-entropy-va,--default-image-base-low to LINKFLAGS I couldn't reproduce the issue on four consecutive builds.
My Feb 18 install wasn't affected because, even though I installed it after that announcement, it still had binutils 2.35 for whatever reason.
It seems like ASLR is a contributing factor. See the 2021-01-31 entry on https:/ /www.msys2. org/news/ . After adding -Wl,--disable- dynamicbase, --disable- high-entropy- va,--default- image-base- low to LINKFLAGS I couldn't reproduce the issue on four consecutive builds.
My Feb 18 install wasn't affected because, even though I installed it after that announcement, it still had binutils 2.35 for whatever reason.