More info on the VM problem: it disappears when compiled with -O1. Sounds like it may be some undefined behavior, which may have been fixed in the mean time?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862576

- Bert -