This is an upstream bug for https://bugzilla.redhat.com/show_bug.cgi?id=1206656
A Zero JVM product build on non-x86 platforms fails with java.lang.StackOverflowError on java -version:
$ ./jdk8.build/images/j2sdk-image/bin/java -version
Error occurred during initialization of VM
We know this happens on armv7hl, s390/s390x systems with GCC 5. It was originally discovered with JDK 8, but since JDK 9 has the same code it's affected as well.