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

com/sun/jdi/ForceEarlyReturnTest.java did not get expected exception: class com.sun.jdi.NativeMethodException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 24
    • core-svc
    • aarch64
    • os_x

      The following test failed in the JDK24 CI:

      com/sun/jdi/ForceEarlyReturnTest.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(7/250)----------
      command: driver ForceEarlyReturnTest NATIVE
      reason: User specified action: run driver ForceEarlyReturnTest NATIVE
      started: Sat Oct 05 13:01:44 GMT 2024
      Mode: agentvm
      Agent id: 23
      finished: Sat Oct 05 13:01:56 GMT 2024
      elapsed time (seconds): 11.733
      ----------configuration:(12/1494)----------

      <snip>

      ----------System.err:(23/1550)----------
      [0ms] run args: [-Djava.library.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-24+19-2111/macosx-aarch64-debug.test/jdk/jtreg/native, ForceEarlyReturnTestTarg, NATIVE]
      [11700ms] failure: forceEarlyReturn() did not get expected exception: class com.sun.jdi.NativeMethodException
      at java.base/java.lang.Thread.getStackTrace(Thread.java:2390)
      at TestScaffold.failure(TestScaffold.java:491)
      at ForceEarlyReturnTest.runTests(ForceEarlyReturnTest.java:239)
      at TestScaffold.startTests(TestScaffold.java:468)
      at ForceEarlyReturnTest.main(ForceEarlyReturnTest.java:147)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      java.lang.Exception: ForceEarlyReturnTest failed
      at ForceEarlyReturnTest.runTests(ForceEarlyReturnTest.java:259)
      at TestScaffold.startTests(TestScaffold.java:468)
      at ForceEarlyReturnTest.main(ForceEarlyReturnTest.java:147)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1576)

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

      ----------System.out:(24/2741)----------
      vmOpts: '-Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/22/36/bundles/macos-aarch64/jdk-22_macos-aarch64_bin.tar.gz/jdk-22.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/7a20d425-e769-4142-b5c1-e3cc2d88e03e-S37452/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c0258011-7854-47a9-8c4c-de6e0199a382/runs/c0bc67b6-6a12-4271-8be2-e0780f277773/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa'
      javaOpts: '-Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:-UseCompressedOops'
      JVM version:24-ea
      JDI version: 24.0
      JVM description: Java Debug Interface (Reference Implementation) version 24.0
      Java Debug Wire Protocol (Reference Implementation) version 24.0
      JVM Debug Interface version 24.0
      JVM version 24-ea (Java HotSpot(TM) 64-Bit Server VM, compiled mode, sharing)
      WARNING: A restricted method in java.lang.System has been called
      WARNING: java.lang.System::loadLibrary has been called by ForceEarlyReturnTestTarg in an unnamed module (file:/System/Volumes/Data/mesos/work_dir/slaves/7a20d425-e769-4142-b5c1-e3cc2d88e03e-S37452/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c0258011-7854-47a9-8c4c-de6e0199a382/runs/c0bc67b6-6a12-4271-8be2-e0780f277773/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/classes/3/com/sun/jdi/ForceEarlyReturnTest.d/)
      WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
      WARNING: Restricted methods will be blocked in a future release unless native access is enabled

          debuggee: Howdy!
          debuggee: args[0]: NATIVE
          debuggee: test mode: NATIVE
      Debuggee stack before forceEarlyReturn():
      frame[0]: java.util.concurrent.ConcurrentHashMap$BaseIterator.<init>(java.util.concurrent.ConcurrentHashMap$Node[], int, int, int, java.util.concurrent.ConcurrentHashMap) (bci:6) (ConcurrentHashMap.java:3439)
      frame[1]: java.util.concurrent.ConcurrentHashMap$ValueIterator.<init>(java.util.concurrent.ConcurrentHashMap$Node[], int, int, int, java.util.concurrent.ConcurrentHashMap) (bci:8) (ConcurrentHashMap.java:3480)
      frame[2]: java.util.concurrent.ConcurrentHashMap$ValuesView.iterator() (bci:30) (ConcurrentHashMap.java:4749)
      frame[3]: jdk.internal.loader.NativeLibraries.find(java.lang.String) (bci:23) (NativeLibraries.java:102)
      frame[4]: java.lang.ClassLoader.findNative(java.lang.ClassLoader, java.lang.Class, java.lang.String, java.lang.String) (bci:9) (ClassLoader.java:2454)
      frame[5]: ForceEarlyReturnTestTarg.loopOrSleep() (bci:58) (ForceEarlyReturnTest.java:87)
      frame[6]: ForceEarlyReturnTestTarg.main(java.lang.String[]) (bci:69) (ForceEarlyReturnTest.java:105)
      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: ForceEarlyReturnTest failed


      test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: ForceEarlyReturnTest failed

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: