Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6875794

Client compiler crashes with "exception happened outside interpreter, nmethods and vtable stubs (1)"

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris

      Description

      Starting from 6u18 the following test case (the same as from 6795465) started to crash when running with client compiler.

      ========= TesterSmall.java ===========

      class TesterSmall_Class_0 {
          static long var_1 = -1;

          public TesterSmall_Class_0()
          {
              long var_2 = TesterSmall_Class_0.var_1 * 1;

              var_2 &= (long)(new byte[(byte)1E10])[(byte)~var_2];
          }
      }

      public class TesterSmall {
          public static void main(String[] args)
          {
              try {
                  TesterSmall_Class_0 t = new TesterSmall_Class_0();
              } catch (Throwable e) {
                System.out.println("Got exception " + e);
              }
          }
      }

      ======================================


      Product bits crash with SIGSEGV, fastdebug bits crash with following assertion:

      > <jdk6u18_JAVA>/bin/java -client -Xcomp TesterSmall

      # A fatal error has been detected by the Java Runtime Environment:#
      # Internal Error (/BUILD_AREA/jdk6_18/hotspot/src/share/vm/runtime/sharedRuntime.cpp:591), pid=25997, tid=2
      # Error: guarantee(cb->is_adapter_blob(),"exception happened outside interpreter, nmethods and vtable stubs (1)")
      #
      # JRE version: 6.0_18-b01
      # Java VM: Java HotSpot(TM) Client VM (16.0-b08-fastdebug compiled mode solaris-sparc )
      # An error report file with more information is saved as:
      # /net/sqenfs-1.sfbay/export1/comp/vm/execution/bugs/jittester/failures/hs16b08/jdk6u18b01/fastdebug/01/6795465/hs_err_pid25997.log

      #

      --------------- T H R E A D ---------------

      Current thread (0x00046400): JavaThread "main" [_thread_in_Java, id=2, stack(0xfd180000,0xfd200000)]

      Stack: [0xfd180000,0xfd200000], sp=0xfd1ff280, free space=1fcfef7ac98k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x101a840];; void VMError::report_and_die()+0x834
      V [libjvm.so+0x541578];; void report_fatal(const char*,int,const char*)+0x70
      V [libjvm.so+0xdfebf0];; unsigned char*SharedRuntime::continuation_for_implicit_exception(JavaThread*,unsigned char*,S
      haredRuntime::ImplicitExceptionKind)+0x278
      V [libjvm.so+0xd37c78];; JVM_handle_solaris_signal+0x77c
      C [libc.so.1+0xc8a20];; __sighndlr+0x14
      C [libc.so.1+0xbd100];; call_user_handler+0x3c0
      C [libc.so.1+0xbd2d4];; sigacthandler+0x54
      J TesterSmall_Class_0.<init>()V
      J TesterSmall.main([Ljava/lang/String;)V
      v ~StubRoutines::call_stub
      V [libjvm.so+0x704338];; void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0xa04
      V [libjvm.so+0x7b40d4];; jni_CallStaticVoidMethod+0x147c
      C [java+0x1f4c]

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              epavlova Ekaterina Pavlova
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: