Recently our build server started to have problems building packages (e.g. gtk3 and linux) in i686 chroots. Bash would seemingly randomly complain about unexpected EOF and also crash in malloc. A simple test is "valgrind bash" which immediately crashes. Eventually I reduced it to the kernel and bisected it to commit 885bad1e5 (x86/fpu: Fix invalid FPU ptrace state after execve()) which was introduced to the stable tree in 4.8.12. Reverting this commit makes things work again. Both the build server and my laptop (where I could reproduce the issue) use Skylake CPUs. Frustratingly, I could not reproduce the issue in a VM running on the build server. kernel 4.8.13-1-ARCH (Arch Linux)
I am also having issues with this, having my 32-bit hello world program crashing valgrind. Please see my ticket on the valgrind bugzilla: https://bugs.kde.org/show_bug.cgi?id=375171
Our build server is also running a Skylake processor (Xeon E3-1275 v5).
We are seeing the problem on both i5-6500u and i7-6600u, haven't tested on any other Skylake CPUs.
(In reply to pnyberg from comment #3) > We are seeing the problem on both i5-6500u and i7-6600u, haven't tested on > any other Skylake CPUs. Sorry, we are seeing it on i5-6200U and i7-6600U.
Still relevant as of 4.9.9.
Seems this got fixed in 4.9.11 (commit 724aedaa5ca6dfa31e54864f03215cce7ed663a0). Thanks.