JDK-8035893 : JVM_GetVersionInfo fails to zero structure
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P3
  • Affected Version: 9
  • Submit Date: 2014-02-26
  • Updated Date: 2015-04-13
  • Resolved Date: 2014-02-28
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9
6u95Resolved 7u80Fixed 8u40Resolved 9 b06Fixed
Related Reports
Relates :  
Description
This is the same issue that had been fixed in jdk native code before (JDK-6989972).
It appears that it still exists in hotspot:


less ./share/vm/prims/jvm.cpp

JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size))
{
  memset(info, 0, sizeof(info_size));

the last line should be
  memset(info, 0, info_size);

Comments
This is apparently the root cause of issue reported from outside. We need to backport this in a timely manner, So I upped the priority to P3 for now.
2014-12-04