https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71615 --- Comment #3 from Mianzhi Wang <wangmianzhi1 at linuxmail dot org> --- The bug disappears on an i7 3700k with the identical OS, GCC, and valgrind. Should be something related to the AMD CPU.