JDK-7029815 : JSR 292: Crash in LinkResolver::runtime_resolve_virtual_method with java/dyn/InvokeGenericTest
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs21
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2011-03-22
  • Updated: 2012-02-01
  • Resolved: 2011-04-08
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 :  
Duplicate :  
Duplicate :  
Relates :  
Description
java/dyn tests failed on windows-i586:

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d843a80, pid=22812, tid=6324
#
# JRE version: 7.0-b134
# Java VM: Java HotSpot(TM) Client VM (21.0-b05-internal-<...>.hs21-b05-snapshot compiled mode, sharing windows-x86 )
# Problematic frame:
# V  [jvm.dll+0x53a80]

V  [jvm.dll+0x53a80];;  ?runtime_resolve_virtual_method@LinkResolver@@CAXAAVCallInfo@@VmethodHandle@@VKlassHandle@@VHandle@@2_NPAVThread@@@Z+0x100
V  [jvm.dll+0x54bc4];;  ?resolve_invokevirtual@LinkResolver@@SAXAAVCallInfo@@VHandle@@VconstantPoolHandle@@HPAVThread@@@Z+0xd4
V  [jvm.dll+0x54d18];;  ?resolve_invoke@LinkResolver@@SAXAAVCallInfo@@VHandle@@VconstantPoolHandle@@HW4Code@Bytecodes@@PAVThread@@@Z+0x68
V  [jvm.dll+0x12cfe9];;  ?find_callee_info_helper@SharedRuntime@@CA?AVHandle@@PAVJavaThread@@AAVvframeStream@@AAW4Code@Bytecodes@@AAVCallInfo@@PAVThread@@@Z+0x259
V  [jvm.dll+0x12d679];;  ?find_callee_info@SharedRuntime@@CA?AVHandle@@PAVJavaThread@@AAW4Code@Bytecodes@@AAVCallInfo@@PAVThread@@@Z+0x89
V  [jvm.dll+0x12d9cf];;  ?resolve_sub_helper@SharedRuntime@@CA?AVmethodHandle@@PAVJavaThread@@_N1PAVThread@@@Z+0x11f
V  [jvm.dll+0x12e8d9];;  ?resolve_helper@SharedRuntime@@SA?AVmethodHandle@@PAVJavaThread@@_N1PAVThread@@@Z+0x29
V  [jvm.dll+0x12ecc1];;  ?resolve_virtual_call_C@SharedRuntime@@SAPAEPAVJavaThread@@@Z+0x21
v  ~RuntimeStub::resolve_virtual_call
J  test.java.dyn.JavaDocExamplesTest.testMethodHandlesSummary()V

Test names:
java/dyn/InvokeGenericTest.java
java/dyn/JavaDocExamplesTest.java
java/dyn/InvokeDynamicPrintArgs.java
java/dyn/MethodHandlesTest.java

Comments
EVALUATION Since 6981791 is now pushed to the hotspot-comp repository, and 6981791 fixes the problem, I'm closing this one as a duplicate of 6981791 (it could also be a duplicate of 6986944 but that seems not right to me). Actually I couldn't reproduce the bug with JDK7 b136 anymore but that could be for another reason. Maybe that's because the old java/dyn classes don't exist anymore and the failed test in the VM is now correct. That's very likely it.
08-04-2011

EVALUATION As 7029819, this is (kind of) a duplicate of 6986944: $ ./bin/java -client -Xcomp -XX:+UnlockExperimentalVMOptions -XX:+EnableMethodHandles -cp /java/devtools/share/junit/latest/junit.jar:$HOME/jdk7/jdk7/jdk/ org.junit.runner.JUnitCore test.java.dyn.InvokeGenericTest VM option '+UnlockExperimentalVMOptions' VM option '+EnableMethodHandles' JUnit version 4.4 Java HotSpot(TM) Client VM warning: JSR 292 invokedynamic is disabled in this JVM. Use -XX:+UnlockExperimentalVMOptions -XX:+EnableInvokeDynamic to enable. ..# To suppress the following error report, specify this argument # after -XX: or in .hotspotrc: SuppressErrorAt=/sharedRuntime.cpp:1103 # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/tmp/jprt/P1/B/203836.et151817/source/src/share/vm/runtime/sharedRuntime.cpp:1103), pid=21905, tid=2 # assert(caller_nm->is_method_handle_return(caller_frame.pc())) failed: must be MH call site # # JRE version: 7.0-b134 # Java VM: Java HotSpot(TM) Client VM (21.0-b05-internal-201103182038.et151817.hs21-b05-snapshot-jvmg compiled mode solaris-x86 ) # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /export/twisti/2011-03-18-203836.et151817.hs21-b05-snapshot/hs_err_pid21905.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp #
22-03-2011