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

runtime/ErrorHandling/UncaughtNativeExceptionTest.java fails on Windows aarch64

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21, 24
    • hotspot
    • aarch64
    • windows

      runtime/ErrorHandling/UncaughtNativeExceptionTest.java fails on Windows aarch64 as follows

      ```
      #section:testng
      ----------messages:(6/275)----------
      command: testng UncaughtNativeExceptionTest
      reason: User specified action: run testng UncaughtNativeExceptionTest
      started: Wed Aug 14 03:49:40 UTC 2024
      Mode: othervm [test requires --enable-preview]
      finished: Wed Aug 14 03:49:41 UTC 2024
      elapsed time (seconds): 1.803
      ----------configuration:(0/0)----------
      ----------System.out:(46/3966)*----------
      Command line: [D:\\BuildAgent\\work\\a4596779d36397b2\\jbrsdk-24-windows-aarch64-b5\\bin\\java.exe -cp D:\\BuildAgent\\work\\a4596779d36397b2\\JTwork\\classes\\0\\runtime\\ErrorHandling\\UncaughtNativeExceptionTest.d;D:\\BuildAgent\\work\\a4596779d36397b2\\test\\hotspot\\jtreg\\runtime\\ErrorHandling;D:\\BuildAgent\\work\\a4596779d36397b2\\JTwork\\classes\\0\\test\\lib;D:\\BuildAgent\\work\\a4596779d36397b2\\test\\lib;D:\\BuildAgent\\work\\a4596779d36397b2\\jtreg\\lib\\testng-7.3.0.jar;D:\\BuildAgent\\work\\a4596779d36397b2\\jtreg\\lib\\guice-5.1.0.jar;D:\\BuildAgent\\work\\a4596779d36397b2\\jtreg\\lib\\jcommander-1.82.jar;D:\\BuildAgent\\work\\a4596779d36397b2\\jtreg\\lib\\javatest.jar;D:\\BuildAgent\\work\\a4596779d36397b2\\jtreg\\lib\\jtreg.jar -Djbr.catch.SIGABRT=true -Djava.library.path=D:\\BuildAgent\\work\\a4596779d36397b2\\support\\test\\hotspot\\jtreg\\native UncaughtNativeExceptionTest$Crasher ]
      [2024-08-14T03:49:40.852834300Z] Gathering output for process 3268
      [2024-08-14T03:49:40.905347100Z] Waiting for completion for process 3268
      [2024-08-14T03:49:41.629829800Z] Waiting for completion finished for process 3268
      Output and diagnostic info for process 3268 was saved into 'pid-3268-output.log'
      test UncaughtNativeExceptionTest.testNativeExceptionReporting(): failure
      java.lang.RuntimeException: '# A fatal error has been detected.*' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:371)
      at HsErrFileUtils.extractHsErrFileNameFromOutput(HsErrFileUtils.java:37)
      at HsErrFileUtils.openHsErrFileFromOutput(HsErrFileUtils.java:53)
      at UncaughtNativeExceptionTest.testNativeExceptionReporting(UncaughtNativeExceptionTest.java:62)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:588)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
      at java.base/java.util.ArrayList.forEach(ArrayList.java:1597)
      at org.testng.TestRunner.privateRun(TestRunner.java:764)
      at org.testng.TestRunner.run(TestRunner.java:585)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
      at org.testng.SuiteRunner.run(SuiteRunner.java:286)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.runSuites(TestNG.java:1069)
      at org.testng.TestNG.run(TestNG.java:1037)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:102)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:588)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      ===============================================
      runtime/ErrorHandling/UncaughtNativeExceptionTest.java
      Total tests run: 1, Passes: 0, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(16/729)----------
       stdout: [];
       stderr: []
       exitValue = 42

      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:104)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:58)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:588)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      JavaTest Message: Test threw exception: java.lang.Exception: failures: 1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: failures: 1
      ```

      The failure was observed on jdk24, jdk21

      Reproducibility: 100%

            Unassigned Unassigned
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: