JDK-6425203 : JCK-Runtime-15a java.lang.Class.GetGeneric tests throw VM Hotspot Crash and core dump using java_g
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 5.0u7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-05-12
  • Updated: 2014-02-27
  • Resolved: 2006-08-09
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.
Other
5.0u10 b01Fixed
Description
JCK-Runtime-15a
JAVA: 1.5.0_07-b03-debug mixed mode

The following two JCK15a tests fail in debug mode for 5u7b3, b2 and b1.
They pass when not running with java_g.

javasoft.sqe.tests.api.java.lang.Class.GetGenericInterfacesTests
javasoft.sqe.tests.api.java.lang.Class.GetGenericSuperclass

They fail with exit code 6. And core is dumped for both testcases.

# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  Internal Error (/BUILD_AREA/jdk1.5.0_07/hotspot/src/share/vm/oops/instanceKlass.hpp, 472 [ Patched ]), pid=14338, tid=1
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03-debug mixed mode)
#
# Error: assert(k->klass_part()->oop_is_instance(),"cast to instanceKlass")

I have attached the  hotspot.log, hs_err_pid14338.log and .jtr reports for both tests.
I have also attached a script lang_generic to repdroduce one of the failures.

I tested on Solaris 10 u1 b19a, SLES 9_X86 and RHEL3.0AS_X86.

Comments
EVALUATION This is the same bug as 5080479 See evaluation there.
12-05-2006

SUGGESTED FIX If a customer or SQA requests a backport the code is here. file:///net/prt-archiver.sfbay/data/archived_workspaces/main/rt_baseline/2004/20040816174842.jl34465.bug.5080479.alt1/workspace/webrevs/webrev-2004.08.16/index.html
12-05-2006