JDK-8087120 : [GCC5] java.lang.StackOverflowError on Zero JVM initialization on non x86 platforms
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u45,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: other,arm
  • Submitted: 2015-06-10
  • Updated: 2016-04-27
  • Resolved: 2015-06-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9 Other
8u101Fixed 9 b70Fixed openjdk7uFixed
Description
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
java.lang.StackOverflowError
	at java.lang.Object.<clinit>(Object.java:41)

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.
Comments
Review thread: http://mail.openjdk.java.net/pipermail/hotspot-dev/2015-June/018884.html
10-06-2015