JDK-6992035 : assert(k->is_klass()) failed: cast to Klass
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-14
  • Updated: 2012-02-01
  • Resolved: 2010-12-20
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 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Description
Test
	java/dyn/MethodHandlesTest.java

crashes with
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jprt/P1/B/163806.jcoomes/source/src/share/vm/oops/klass.hpp:483), pid=27116, tid=1087732032
#  assert(k->is_klass()) failed: cast to Klass

V  [libjvm.so+0xb6fa1c];;  VMError::report(outputStream*)+0x116c
V  [libjvm.so+0xb6fdec];;  VMError::report_and_die()+0x2dc
V  [libjvm.so+0x58ba74];;  report_vm_error(char const*, int, char const*, char const*)+0x84
V  [libjvm.so+0x341da7];;  Klass::cast(klassOopDesc*)+0x87
V  [libjvm.so+0x717715];;  jni_GetObjectClass+0x145
J  java.lang.Object.getClass()Ljava/lang/Class;
j  java.util.Arrays.copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;+3
j  java.util.ArrayList.grow(I)V+38

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  java.lang.Object.getClass()Ljava/lang/Class;
j  java.util.Arrays.copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;+3
j  java.util.ArrayList.grow(I)V+38
J  java.util.ArrayList.add(Ljava/lang/Object;)Z
j  org.junit.internal.runners.statements.RunAfters.evaluate()V+86
...

Comments
EVALUATION This seems to be a duplicate of 7007377. I couldn't reproduce any crash on vm-amd64-05 with 7007377 applied.
20-12-2010

PUBLIC COMMENTS I think that one is because of using UseParallelOldGC. UseSerialGC is the only GC that works reliably with JSR 292, yet.
14-10-2010