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

[macos_aarch64] java/foreign/TestUpcall.java crashes with SIGBUS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b23
    • CPU:
      aarch64
    • OS:
      os_x

      Description

      java/foreign/TestUpcall.java fails intermittently:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGBUS (0xa) at pc=0x00000001098c11e0, pid=97243, tid=24835
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0) (build 17-internal+0-LTS-2021-04-13-2249517.mikael.vidstedt.jdk)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (17-internal+0-LTS-2021-04-13-2249517.mikael.vidstedt.jdk, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Problematic frame:
      # V [libjvm.dylib+0x8c11e0] _ZN21MarkActivationClosure12do_code_blobEP8CodeBlob+0x3c
      #
      # Core dump will be written. Default location: core.97243
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      ...

      Stack: [0x000000016dedc000,0x000000016e0df000], sp=0x000000016e0dba90, free space=2046k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x8c11e0] _ZN21MarkActivationClosure12do_code_blobEP8CodeBlob+0x3c
      V [libjvm.dylib+0x8febf8] _ZN10JavaThread11nmethods_doEP15CodeBlobClosure+0x84
      V [libjvm.dylib+0x401760] _ZN14HandshakeState18process_self_innerEv+0x18c
      V [libjvm.dylib+0x4015c0] _ZN14HandshakeState15process_by_selfEv+0x48
      V [libjvm.dylib+0x8327d0] _ZN18SafepointMechanism25process_if_requested_slowEP10JavaThread+0x54
      V [libjvm.dylib+0x8fe638] _ZN10JavaThread44check_safepoint_and_suspend_for_native_transEPS_+0x24
      V [libjvm.dylib+0x923adc] _ZN19ProgrammableInvoker13invoke_nativeEPFvPhES0_P10JavaThread+0x118
      V [libjvm.dylib+0x923c28] PI_invokeNative+0x104
      J 2860 jdk.internal.foreign.abi.ProgrammableInvoker.invokeNative(JJ)V jdk.incubator.foreign@17-internal (0 bytes) @ 0x0000000119290b50 [0x0000000119290ac0+0x0000000000000090]
      C 0x0000000000000000

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J 2860 jdk.internal.foreign.abi.ProgrammableInvoker.invokeNative(JJ)V jdk.incubator.foreign@17-internal (0 bytes) @ 0x0000000119290b50 [0x0000000119290ac0+0x0000000000000090]
      J 3409 c1 jdk.internal.foreign.abi.ProgrammableInvoker.invokeMoves([Ljava/lang/Object;[Ljdk/internal/foreign/abi/Binding$VMStore;[Ljdk/internal/foreign/abi/Binding$VMLoad;)Ljava/lang/Object; jdk.incubator.foreign@17-internal (595 bytes) @ 0x00000001121e698c [0x00000001121e1280+0x000000000000570c]
      J 3595 c2 java.lang.invoke.LambdaForm$DMH+0x0000000800c35400.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (20 bytes) @ 0x000000011947c008 [0x000000011947bfc0+0x0000000000000048]
      j java.lang.invoke.LambdaForm$MH+0x00000008010a9400.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+177 java.base@17-internal
      J 2675 c1 java.lang.invoke.LambdaForm$MH+0x0000000800cb4800.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (70 bytes) @ 0x000000011213fa8c [0x000000011213edc0+0x0000000000000ccc]
      J 3589 c2 java.lang.invoke.MethodHandle.invokeWithArguments([Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (32 bytes) @ 0x000000011947c6ec [0x000000011947c540+0x00000000000001ac]
      J 3431 c1 jdk.internal.foreign.abi.ProgrammableInvoker.invokeInterpBindings([Ljava/lang/Object;Ljava/lang/invoke/MethodHandle;Ljava/util/Map;Ljava/util/Map;)Ljava/lang/Object; jdk.incubator.foreign@17-internal (240 bytes) @ 0x0000000111deeccc [0x0000000111dee0c0+0x0000000000000c0c]
      J 3429 c2 java.lang.invoke.LambdaForm$DMH+0x0000000800c35800.invokeVirtual(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (22 bytes) @ 0x00000001193f620c [0x00000001193f61c0+0x000000000000004c]
      j java.lang.invoke.LambdaForm$MH+0x000000080117e400.invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+184 java.base@17-internal
      J 3436 c2 TestUpcall.testUpcalls(Ljava/lang/String;LCallGeneratorHelper$Ret;Ljava/util/List;Ljava/util/List;)V (159 bytes) @ 0x000000011941f344 [0x000000011941ccc0+0x0000000000002684]
      J 2331 c1 jdk.internal.reflect.GeneratedMethodAccessor1.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (90 bytes) @ 0x00000001120523ec [0x0000000112051d40+0x00000000000006ac]
      J 2471 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@17-internal (10 bytes) @ 0x00000001120a527c [0x00000001120a5140+0x000000000000013c]
      J 2240 c1 org.testng.internal.MethodInvocationHelper.invokeMethod(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (239 bytes) @ 0x0000000112008b90 [0x0000000112006ac0+0x00000000000020d0]
      J 2786 c1 org.testng.internal.Invoker.invokeMethod(Ljava/lang/Object;Lorg/testng/ITestNGMethod;[Ljava/lang/Object;ILorg/testng/xml/XmlSuite;Ljava/util/Map;Lorg/testng/ITestClass;[Lorg/testng/ITestNGMethod;[Lorg/testng/ITestNGMethod;Lorg/testng/internal/ConfigurationGroupMethods;Lorg/testng/internal/Invoker$FailureContext;)Lorg/testng/ITestResult; (1242 bytes) @ 0x0000000112175790 [0x0000000112174040+0x0000000000001750]
      J 2785 c1 org.testng.internal.Invoker.invokeTestMethod(Ljava/lang/Object;Lorg/testng/ITestNGMethod;[Ljava/lang/Object;ILorg/testng/xml/XmlSuite;Ljava/util/Map;Lorg/testng/ITestClass;[Lorg/testng/ITestNGMethod;[Lorg/testng/ITestNGMethod;Lorg/testng/internal/ConfigurationGroupMethods;Lorg/testng/internal/Invoker$FailureContext;)Lorg/testng/ITestResult; (37 bytes) @ 0x00000001121726c4 [0x00000001121724c0+0x0000000000000204]
      j org.testng.internal.Invoker.invokeTestMethods(Lorg/testng/ITestNGMethod;Lorg/testng/xml/XmlSuite;Ljava/util/Map;Lorg/testng/internal/ConfigurationGroupMethods;Ljava/lang/Object;Lorg/testng/ITestContext;)Ljava/util/List;+675
      j org.testng.internal.TestMethodWorker.invokeTestMethods(Lorg/testng/ITestNGMethod;Ljava/lang/Object;Lorg/testng/ITestContext;)V+19
      j org.testng.internal.TestMethodWorker.run()V+60
      j org.testng.TestRunner.privateRun(Lorg/testng/xml/XmlTest;)V+358
      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@17-internal
      j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+146 java.base@17-internal
      j jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 java.base@17-internal
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+59 java.base@17-internal
      j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
      j java.lang.Thread.run()V+11 java.base@17-internal
      v ~StubRoutines::call_stub

      siginfo: si_signo: 10 (SIGBUS), si_code: 1 (BUS_ADRALN), si_addr: 0x0000000119290a58

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              akozlov Anton Kozlov
              Reporter:
              mikael Mikael Vidstedt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: