JDK-7166498 : JVM crash in ClassVerifier
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6u31
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86
  • Submitted: 2012-05-04
  • Updated: 2013-07-18
  • Resolved: 2012-06-16
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 JDK 8 Other
7u40Fixed 8Fixed hs23.2Fixed
Description
See the attached log.

The crash happened in NetBeans when the user invoked Clean action on 2-3 projects and then tried cancelling the project scanning and NetBeans crashed. Not reproducible.

Original NetBeans bug:
http://netbeans.org/bugzilla/show_bug.cgi?id=211698

Stack frames with resolved symbols:

Stack: [0x09390000,0x09590000],  sp=0x0958e174,  free space=2040k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x29370];; 
?verify_switch@ClassVerifier@@AAEXPAVRawBytecodeStream@@IPADPAVStackMapFrame@@PAVStackMapTable@@PAVThread@@@Z+0x1b0
V  [jvm.dll+0x2cd92];; 
?verify_method@ClassVerifier@@AAEXVmethodHandle@@PAVThread@@@Z+0x1b22
V  [jvm.dll+0x2d87a];;  ?verify_class@ClassVerifier@@QAEXPAVThread@@@Z+0xba
V  [jvm.dll+0x2d9bc];; 
?verify@Verifier@@SA_NVinstanceKlassHandle@@W4Mode@1@_NPAVThread@@@Z+0xcc
V  [jvm.dll+0x77012];; 
?verify_code@instanceKlass@@CA_NVinstanceKlassHandle@@_NPAVThread@@@Z+0x32
V  [jvm.dll+0x7be68];; 
?link_class_impl@instanceKlass@@CA_NVinstanceKlassHandle@@_NPAVThread@@@Z+0x2b8
V  [jvm.dll+0x7eca7];; 
?initialize_impl@instanceKlass@@CAXVinstanceKlassHandle@@PAVThread@@@Z+0x37
V  [jvm.dll+0x7f066];;  ?initialize@instanceKlass@@UAEXPAVThread@@@Z+0x36
V  [jvm.dll+0xb2999];; 
?find_class_from_class_loader@@YAPAV_jclass@@PAUJNIEnv_@@VsymbolHandle@@EVHandle@@2EPAVThread@@@Z+0x59
V  [jvm.dll+0xba9ff];;  _JVM_FindClassFromClassLoader@20+0xcf
C  [java.dll+0x13bc]  Java_java_lang_Class_forName0+0xbe;; 
_Java_java_lang_Class_forName0@20+0xbe
j 
java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
j 
java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+32
J 
org.netbeans.modules.java.source.indexing.APTUtils.lookupProcessors(Ljava/lang/ClassLoader;Z)Ljava/util/Collection;

Comments
Hard to write regression test. Hard to reproduce/verify.
25-06-2013

EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/e17b61ba7bb3
29-06-2012

EVALUATION http://hg.openjdk.java.net/hsx/hsx23.2/hotspot/rev/1bc0c1354c4d
07-06-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/e17b61ba7bb3
07-06-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/e17b61ba7bb3
04-06-2012