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

SIGSEGV in SharedRuntime::compute_compiled_exc_handler

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      aarch64
    • OS:
      linux

      Description

      The following test failed in the JDK16 CI:

      java/lang/invoke/VarHandles/VarHandleTestMethodTypeBoolean.java

      Here's a snippet from the log file:

      #section:testng
      ----------messages:(4/423)----------
      command: testng -Djava.lang.invoke.VarHandle.VAR_HANDLE_GUARDS=false -Djava.lang.invoke.VarHandle.VAR_HANDLE_IDENTITY_ADAPT=false VarHandleTestMethodTypeBoolean
      reason: User specified action: run testng/othervm -Djava.lang.invoke.VarHandle.VAR_HANDLE_GUARDS=false -Djava.lang.invoke.VarHandle.VAR_HANDLE_IDENTITY_ADAPT=false VarHandleTestMethodTypeBoolean
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 11.529
      ----------configuration:(0/0)----------
      ----------System.out:(54/3606)----------
      [TestNG] Running:
        java/lang/invoke/VarHandles/VarHandleTestMethodTypeBoolean.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000fffc25628ff8, pid=28568, tid=28590
      #
      # JRE version: Java(TM) SE Runtime Environment (16.0+30) (build 16-ea+30-2117)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (16-ea+30-2117, mixed mode, tiered, compressed oops, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0xb08ff8] SharedRuntime::compute_compiled_exc_handler(CompiledMethod*, unsigned char*, Handle&, bool, bool, bool&)+0xc8
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /scratch/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S12656/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c248630b-0d3e-4690-b2ab-8c031789c86e/runs/2b06dea8-564b-451a-b64f-e548347cc8c9/testoutput/test-support/jtreg_open_test_jdk_java_lang_invoke/scratch/2/core.28568)
      #
      # An error report file with more information is saved as:
      # /scratch/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S12656/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c248630b-0d3e-4690-b2ab-8c031789c86e/runs/2b06dea8-564b-451a-b64f-e548347cc8c9/testoutput/test-support/jtreg_open_test_jdk_java_lang_invoke/scratch/2/hs_err_pid28568.log
      Compiled method (c1) 1060 453 3 java.io.RandomAccessFile::seek (22 bytes)
       total in heap [0x0000fffc09ee9790,0x0000fffc09ee9cc0] = 1328
       relocation [0x0000fffc09ee98e0,0x0000fffc09ee9938] = 88
       main code [0x0000fffc09ee9940,0x0000fffc09ee9b40] = 512
       stub code [0x0000fffc09ee9b40,0x0000fffc09ee9bc8] = 136
       oops [0x0000fffc09ee9bc8,0x0000fffc09ee9bd0] = 8
       metadata [0x0000fffc09ee9bd0,0x0000fffc09ee9bf8] = 40
       scopes data [0x0000fffc09ee9bf8,0x0000fffc09ee9c28] = 48
       scopes pcs [0x0000fffc09ee9c28,0x0000fffc09ee9ca8] = 128
       dependencies [0x0000fffc09ee9ca8,0x0000fffc09ee9cb0] = 8
       nul chk table [0x0000fffc09ee9cb0,0x0000fffc09ee9cc0] = 16
      Compiled method (c1) 1061 453 3 java.io.RandomAccessFile::seek (22 bytes)
       total in heap [0x0000fffc09ee9790,0x0000fffc09ee9cc0] = 1328
       relocation [0x0000fffc09ee98e0,0x0000fffc09ee9938] = 88
       main code [0x0000fffc09ee9940,0x0000fffc09ee9b40] = 512
       stub code [0x0000fffc09ee9b40,0x0000fffc09ee9bc8] = 136
       oops [0x0000fffc09ee9bc8,0x0000fffc09ee9bd0] = 8
       metadata [0x0000fffc09ee9bd0,0x0000fffc09ee9bf8] = 40
       scopes data [0x0000fffc09ee9bf8,0x0000fffc09ee9c28] = 48
       scopes pcs [0x0000fffc09ee9c28,0x0000fffc09ee9ca8] = 128
       dependencies [0x0000fffc09ee9ca8,0x0000fffc09ee9cb0] = 8
       nul chk table [0x0000fffc09ee9cb0,0x0000fffc09ee9cc0] = 16
      Compiled method (c1) 1064 453 3 java.io.RandomAccessFile::seek (22 bytes)
       total in heap [0x0000fffc09ee9790,0x0000fffc09ee9cc0] = 1328
       relocation [0x0000fffc09ee98e0,0x0000fffc09ee9938] = 88
       main code [0x0000fffc09ee9940,0x0000fffc09ee9b40] = 512
       stub code [0x0000fffc09ee9b40,0x0000fffc09ee9bc8] = 136
       oops [0x0000fffc09ee9bc8,0x0000fffc09ee9bd0] = 8
       metadata [0x0000fffc09ee9bd0,0x0000fffc09ee9bf8] = 40
       scopes data [0x0000fffc09ee9bf8,0x0000fffc09ee9c28] = 48
       scopes pcs [0x0000fffc09ee9c28,0x0000fffc09ee9ca8] = 128
       dependencies [0x0000fffc09ee9ca8,0x0000fffc09ee9cb0] = 8
       nul chk table [0x0000fffc09ee9cb0,0x0000fffc09ee9cc0] = 16
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(0/0)----------
      ----------rerun:(39/6530)*----------

      Here's the stack trace for the crashing thread:

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

      Current thread (0x0000fffc20367270): JavaThread "MainThread" [_thread_in_vm, id=28590, stack(0x0000fffbdede0000,0x0000fffbdefe0000)]

      Stack: [0x0000fffbdede0000,0x0000fffbdefe0000], sp=0x0000fffbdefdb890, free space=2030k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xb08ff8] SharedRuntime::compute_compiled_exc_handler(CompiledMethod*, unsigned char*, Handle&, bool, bool, bool&)+0xc8
      V [libjvm.so+0x48dc74] exception_handler_for_pc_helper(JavaThread*, oopDesc*, unsigned char*, nmethod*&) [clone .constprop.0]+0x384
      V [libjvm.so+0x48dd7c] Runtime1::exception_handler_for_pc(JavaThread*)+0x2c
      v ~RuntimeStub::handle_exception_from_callee Runtime1 stub
      J 453 c1 java.io.RandomAccessFile.seek(J)V java.base@16-ea (22 bytes) @ 0x0000fffc09ee9a08 [0x0000fffc09ee9940+0x00000000000000c8]
      j java.util.zip.ZipFile$Source.readAt([BIIJ)I+14 java.base@16-ea
      j java.util.zip.ZipFile$ZipFileInputStream.read([BII)I+76 java.base@16-ea
      j java.util.zip.ZipFile$ZipFileInflaterInputStream.fill()V+32 java.base@16-ea
      j java.util.zip.InflaterInputStream.read([BII)I+100 java.base@16-ea
      j jdk.internal.loader.Resource.getBytes()[B+117 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.defineClass(Ljava/lang/String;Ljdk/internal/loader/Resource;)Ljava/lang/Class;+84 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Ljava/lang/String;)Ljava/lang/Class;+37 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+111 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+3 java.base@16-ea
      j jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36 java.base@16-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@16-ea
      v ~StubRoutines::call_stub
      V [libjvm.so+0x782c60] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x1f0
      V [libjvm.so+0x784128] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Handle, Thread*)+0x174
      V [libjvm.so+0xba9a0c] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x13c
      V [libjvm.so+0xba8abc] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x85c
      V [libjvm.so+0xbaaad8] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x68
      V [libjvm.so+0x578f00] ConstantPool::klass_at_impl(constantPoolHandle const&, int, bool, Thread*)+0x110
      V [libjvm.so+0x77c6c0] InterpreterRuntime::_new(JavaThread*, ConstantPool*, int)+0x70
      j org.testng.TestRunner.createTestMethodWorker(Ljava/util/List;Ljava/util/Map;Ljava/lang/Class;)Lorg/testng/internal/TestMethodWorker;+0
      j org.testng.TestRunner.createClassBasedParallelWorkers(Ljava/util/List;)Ljava/util/List;+438
      j org.testng.TestRunner.createWorkers(Ljava/util/List;)Ljava/util/List;+26
      j org.testng.TestRunner.privateRun(Lorg/testng/xml/XmlTest;)V+320
      j org.testng.TestRunner.run()V+26
      j org.testng.SuiteRunner.runTest(Lorg/testng/TestRunner;)V+1
      j org.testng.SuiteRunner.runSequentially()V+31
      j org.testng.SuiteRunner.privateRun()V+281
      j org.testng.SuiteRunner.run()V+6
      j org.testng.SuiteRunnerWorker.runSuite(Lorg/testng/internal/SuiteRunnerMap;Lorg/testng/xml/XmlSuite;)V+89
      j org.testng.SuiteRunnerWorker.run()V+12
      j org.testng.TestNG.runSuitesSequentially(Lorg/testng/xml/XmlSuite;Lorg/testng/internal/SuiteRunnerMap;ILjava/lang/String;)V+66
      j org.testng.TestNG.runSuitesLocally()Ljava/util/List;+143
      j org.testng.TestNG.run()V+77
      j com.sun.javatest.regtest.agent.TestNGRunner.main(Ljava/lang/ClassLoader;[Ljava/lang/String;)V+290
      j com.sun.javatest.regtest.agent.TestNGRunner.main([Ljava/lang/String;)V+2
      v ~StubRoutines::call_stub
      V [libjvm.so+0x782c60] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x1f0
      V [libjvm.so+0xadfeb0] invoke(InstanceKlass*, methodHandle const&, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*) [clone .constprop.0]+0x460
      V [libjvm.so+0xae0b34] Reflection::invoke_method(oopDesc*, Handle, objArrayHandle, Thread*)+0xf4
      V [libjvm.so+0x83ea40] JVM_InvokeMethod+0x120
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@16-ea
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+146 java.base@16-ea
      j jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base@16-ea
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@16-ea
      j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
      j java.lang.Thread.run()V+11 java.base@16-ea
      v ~StubRoutines::call_stub
      V [libjvm.so+0x782c60] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x1f0
      V [libjvm.so+0x783f90] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x16c
      V [libjvm.so+0x834340] thread_entry(JavaThread*, Thread*)+0x70
      V [libjvm.so+0xbdf69c] JavaThread::thread_main_inner()+0xe8
      V [libjvm.so+0xbe5f08] Thread::call_run()+0x104
      V [libjvm.so+0xa611b8] thread_native_entry(Thread*)+0xf8
      C [libpthread.so.0+0x7d40] start_thread+0xb4

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      v ~RuntimeStub::handle_exception_from_callee Runtime1 stub
      J 453 c1 java.io.RandomAccessFile.seek(J)V java.base@16-ea (22 bytes) @ 0x0000fffc09ee9a08 [0x0000fffc09ee9940+0x00000000000000c8]
      j java.util.zip.ZipFile$Source.readAt([BIIJ)I+14 java.base@16-ea
      j java.util.zip.ZipFile$ZipFileInputStream.read([BII)I+76 java.base@16-ea
      j java.util.zip.ZipFile$ZipFileInflaterInputStream.fill()V+32 java.base@16-ea
      j java.util.zip.InflaterInputStream.read([BII)I+100 java.base@16-ea
      j jdk.internal.loader.Resource.getBytes()[B+117 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.defineClass(Ljava/lang/String;Ljdk/internal/loader/Resource;)Ljava/lang/Class;+84 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Ljava/lang/String;)Ljava/lang/Class;+37 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Ljava/lang/String;Z)Ljava/lang/Class;+111 java.base@16-ea
      j jdk.internal.loader.BuiltinClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+3 java.base@16-ea
      j jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36 java.base@16-ea
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 java.base@16-ea
      v ~StubRoutines::call_stub
      j org.testng.TestRunner.createTestMethodWorker(Ljava/util/List;Ljava/util/Map;Ljava/lang/Class;)Lorg/testng/internal/TestMethodWorker;+0
      j org.testng.TestRunner.createClassBasedParallelWorkers(Ljava/util/List;)Ljava/util/List;+438
      j org.testng.TestRunner.createWorkers(Ljava/util/List;)Ljava/util/List;+26
      j org.testng.TestRunner.privateRun(Lorg/testng/xml/XmlTest;)V+320
      j org.testng.TestRunner.run()V+26
      j org.testng.SuiteRunner.runTest(Lorg/testng/TestRunner;)V+1
      j org.testng.SuiteRunner.runSequentially()V+31
      j org.testng.SuiteRunner.privateRun()V+281
      j org.testng.SuiteRunner.run()V+6
      j org.testng.SuiteRunnerWorker.runSuite(Lorg/testng/internal/SuiteRunnerMap;Lorg/testng/xml/XmlSuite;)V+89
      j org.testng.SuiteRunnerWorker.run()V+12
      j org.testng.TestNG.runSuitesSequentially(Lorg/testng/xml/XmlSuite;Lorg/testng/internal/SuiteRunnerMap;ILjava/lang/String;)V+66
      j org.testng.TestNG.runSuitesLocally()Ljava/util/List;+143
      j org.testng.TestNG.run()V+77
      j com.sun.javatest.regtest.agent.TestNGRunner.main(Ljava/lang/ClassLoader;[Ljava/lang/String;)V+290
      j com.sun.javatest.regtest.agent.TestNGRunner.main([Ljava/lang/String;)V+2
      v ~StubRoutines::call_stub
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@16-ea
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+146 java.base@16-ea
      j jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base@16-ea
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@16-ea
      j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
      j java.lang.Thread.run()V+11 java.base@16-ea
      v ~StubRoutines::call_stub

      siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000000000000000

        Attachments

          Activity

            People

            Assignee:
            dlong Dean Long
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: