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

com/sun/jdi/PopAndInvokeTest.java fails with NativeMethodException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • core-svc
    • b20
    • aarch64
    • linux

      The following test failed in the JDK21 CI:

      com/sun/jdi/PopAndInvokeTest.java

      Here's a snippet from the log file:

      ----------System.out:(18/1082)----------
      vmOpts: '-Xmx768m -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/19/36/bundles/linux-aarch64/jdk-19_linux-aarch64_bin.tar.gz/jdk-19 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S43793/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c3c67266-0d6b-489e-b298-99eac7c63975/runs/526c12d3-0a58-4a90-bbe8-db640a8ad765/testoutput/test-support/jtreg_open_test_jdk_jdk_jdi/tmp -ea -esa'
      javaOpts: '-XX:+CreateCoredumpOnCrash -XX:+UseZGC'
      JVM version:21-ea
      JDI version: 21.0
      JVM description: Java Debug Interface (Reference Implementation) version 21.0
      Java Debug Wire Protocol (Reference Implementation) version 21.0
      JVM Debug Interface version 21.0
      JVM version 21-ea (Java HotSpot(TM) 64-Bit Server VM, mixed mode, sharing)
          debuggee: Howdy!
      Debugger: Popped back to the call to A()
      Debugger: Doing invoke
          debuggee: invokee
      Debugger: invoke done
      Debugger: Resuming debuggee
          debuggee: in A
      Debugger: Suspending debuggee
          debuggee: in waiter
      Debugger: Popping frame for waiter
      ----------System.err:(16/883)----------
      [1ms] run args: [PopAndInvokeTarg]
      com.sun.jdi.NativeMethodException
      at jdk.jdi/com.sun.tools.jdi.StackFrameImpl.pop(StackFrameImpl.java:401)
      at jdk.jdi/com.sun.tools.jdi.ThreadReferenceImpl.popFrames(ThreadReferenceImpl.java:560)
      at PopAndInvokeTest.runOnce(PopAndInvokeTest.java:165)
      at PopAndInvokeTest.runTests(PopAndInvokeTest.java:114)
      at TestScaffold.startTests(TestScaffold.java:434)
      at PopAndInvokeTest.main(PopAndInvokeTest.java:91)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:1592)

      JavaTest Message: Test threw exception: com.sun.jdi.NativeMethodException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: com.sun.jdi.NativeMethodException

      Please note this is not the same failure mode as:

      JDK-8305632 Test com/sun/jdi/PopAndInvokeTest.java fails with OpaqueFrameException

      which occurs with Loom.

            cjplummer Chris Plummer
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: