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

jdk/jshell/Test8294583.java fails on some platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • tools
    • b27

      JDK-8294583 added a new test that does `--enable-preview` to access new language constructs. Unfortunately, this test also enables Loom, which on some platforms like x86_32 uses the 1:1 fallback emulation, which does not support JVMTI. JShell apparently uses JDI -> JDWP -> JVMTI to work, and thus the test fails.

      ```
      $ CONF=linux-x86-server-fastdebug make run-test TEST=jdk/jshell/Test8294583.java
      ...
      FailOverExecutionControlProvider: FAILED: 2:jdi --
        Exception: java.lang.IllegalArgumentException: ERROR: JDWP unable to access JVMTI Version 1 (0x30010000), is your J2SE a 1.5 or newer version? JNIEnv's GetEnv() returned -3

                        jdk.jshell/jdk.jshell.execution.JdiInitiator.listenTarget(JdiInitiator.java:201)
                        jdk.jshell/jdk.jshell.execution.JdiInitiator.<init>(JdiInitiator.java:111)
                        jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.create(JdiDefaultExecutionControl.java:103)
                        jdk.jshell/jdk.jshell.execution.JdiExecutionControlProvider.generate(JdiExecutionControlProvider.java:152)
                        jdk.jshell/jdk.jshell.spi.ExecutionControl.generate(ExecutionControl.java:179)

      at jdk.jshell/jdk.jshell.execution.FailOverExecutionControlProvider.generate(FailOverExecutionControlProvider.java:139)
      at jdk.jshell/jdk.jshell.spi.ExecutionControl.generate(ExecutionControl.java:179)
      at jdk.jshell/jdk.jshell.spi.ExecutionControl.generate(ExecutionControl.java:296)
      at jdk.jshell/jdk.jshell.JShell.<init>(JShell.java:136)
      ... 35 more
      Caused by: java.lang.IllegalArgumentException: ERROR: JDWP unable to access JVMTI Version 1 (0x30010000), is your J2SE a 1.5 or newer version? JNIEnv's GetEnv() returned -3

      at jdk.jshell/jdk.jshell.execution.JdiInitiator.listenTarget(JdiInitiator.java:201)
      at jdk.jshell/jdk.jshell.execution.JdiInitiator.<init>(JdiInitiator.java:111)
      at jdk.jshell/jdk.jshell.execution.JdiDefaultExecutionControl.create(JdiDefaultExecutionControl.java:103)
      at jdk.jshell/jdk.jshell.execution.JdiExecutionControlProvider.generate(JdiExecutionControlProvider.java:152)
      at jdk.jshell/jdk.jshell.spi.ExecutionControl.generate(ExecutionControl.java:179)
      at jdk.jshell/jdk.jshell.spi.ExecutionControl.generate(ExecutionControl.java:296)
      at jdk.jshell/jdk.jshell.execution.FailOverExecutionControlProvider.generate(FailOverExecutionControlProvider.java:105)
      ... 38 more
      ```

      This is clearly visible in current GHAs.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: