United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7049928 VM crashes with "assert(_adapter != NULL) failed: must have" at methodOop.cpp:63
JDK-7049928 : VM crashes with "assert(_adapter != NULL) failed: must have" at methodOop.cpp:63

Details
Type:
Bug
Submit Date:
2011-05-31
Status:
Resolved
Updated Date:
2012-12-05
Project Name:
JDK
Resolved Date:
2011-06-04
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs21,7
Fixed Versions:
hs21 (b15)

Related Reports
Backport:
Backport:
Backport:
Duplicate:
Relates:
Relates:

Sub Tasks

Description
VM could crash with:
;; Using jvm: "/export/local/common/jdk/baseline/solaris-i586/jre/lib/i386/client/libjvm.so"
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jprt/P1/B/091209.jcoomes/source/src/share/vm/oops/methodOop.cpp:63), pid=11648, tid=47
#  assert(_adapter != NULL) failed: must have
#
# JRE version: 7.0-b144
# Java VM: Java HotSpot(TM) Client VM (21.0-b15-internal-201105280912.jcoomes.hs21-b15-snapshot-fastdebug compiled mode, sharing solaris-x86 )
# Core dump written. Default location: /export/local/51227.HSX.PIT.VM+solaris-i586_vm__client_comp_nsk.stress.testlist/results/ResultDir/jck12a004/core or core.11648
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

                                    

Comments
EVALUATION

This appear to have been introduced by 7033141:

# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/methodOop.cpp:68
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jprt/P1/B/225952.jcoomes/source/src/share/vm/oops/methodOop.cpp:68), pid=6785, tid=42
#  assert(_adapter != NULL) failed: must have
#
# JRE version: 7.0-b143
# Java VM: Java HotSpot(TM) Client VM (21.0-b14-internal-201105212259.jcoomes.hsx-rt-coleenp-7033-fastdebug compiled mode solaris-x86 )
# Core dump written. Default location: /net/smite.us.oracle.com/export/ws/hsx/core or core.6785 (max size 2048 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again
#

The previous bits in hsx-rt passed with a full code cache message.
                                     
2011-05-31
EVALUATION

This line was a mistake.   It should be changed back.

--- old/src/share/vm/oops/methodOop.cpp	Thu May 19 17:39:32 2011
+++ new/src/share/vm/oops/methodOop.cpp	Thu May 19 17:39:17 2011
@@ -717,7 +720,7 @@
   // called from the vtable.  We need adapters on such methods that get loaded
   // later.  Ditto for mega-morphic itable calls.  If this proves to be a
   // problem we'll make these lazily later.
-  (void) make_adapters(h_method, CHECK);
+  if (UseCompiler) (void) make_adapters(h_method, CHECK);
 
   // ONLY USE the h_method now as make_adapter may have blocked
                                     
2011-06-01
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9dd6c4ba364f
                                     
2011-06-02
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/deaa3ce90583
                                     
2011-06-04
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/9dd6c4ba364f
                                     
2011-06-09
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/deaa3ce90583
                                     
2011-06-09



Hardware and Software, Engineered to Work Together