Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8293829 Windows native last error value cleared with -Xcomp or -Xint (but not neither)
  3. JDK-8293813

ProblemList com/sun/jdi/JdbLastErrorTest.java on windows-x64 in Xcomp mode

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 20
    • 20
    • core-svc
    • b16
    • x86_64
    • windows

    Description

      The following test failed in the JDK20 CI:

      com/sun/jdi/JdbLastErrorTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/337)----------
      command: main --enable-preview JdbLastErrorTest
      reason: User specified action: run main/othervm --enable-preview JdbLastErrorTest
      started: Wed Sep 14 14:15:55 UTC 2022
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.jdi
      finished: Wed Sep 14 14:17:29 UTC 2022
      elapsed time (seconds): 94.039
      ----------configuration:(3/38)----------
      Boot Layer
        add modules: jdk.jdi

      ----------System.out:(22/2874)*----------
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+15-1005\\windows-x64-debug.jdk\\jdk-20\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1663163903\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+15-1005\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1663163903\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+15-1005\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7\\1\\bundles\\jtreg-7+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=c:\\sb\\prod\\1663163903\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\tmp -ea -esa -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError ]
      [debuggee]:c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+15-1005\\windows-x64-debug.jdk\\jdk-20\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1663163903\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\com\\sun\\jdi\\JdbLastErrorTest.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+15-1005\\src.full\\open\\test\\jdk\\com\\sun\\jdi;C:\\sb\\prod\\1663163903\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\classes\\1\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-20+15-1005\\src.full\\open\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7\\1\\bundles\\jtreg-7+1.zip\\jtreg\\lib\\jtreg.jar -Xmx768m -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=c:\\sb\\prod\\1663163903\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_jdi\\tmp -ea -esa -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation --enable-preview -agentlib:jdwp=transport=dt_socket,server=y,suspend=y TestNativeLastError
      [debuggee] Listening for transport dt_socket at address: 53335
      [jdb] Set uncaught java.lang.Throwable
      [jdb] Set deferred uncaught java.lang.Throwable
      [jdb] Initializing jdb ...
      [jdb]
      [jdb] VM Started: > No frames on the current call stack
      [jdb]
      [jdb] main[1]
      > run
      [debuggee] 0
      [jdb] >
      [jdb] Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=68 bci=129
      [jdb] 68 throw new RuntimeException("failed, lastError = " + lastError);
      [jdb]
      [jdb] main[1]
      =======================================
      Exception thrown during test execution: 'The application exited' missing from stdout/stderr
      =======================================
      > quit
      [debuggee] Listening for transport dt_socket at address: 54691
      ----------System.err:(46/2235)----------
      [debuggee] WARNING: A restricted method in java.lang.foreign.Linker has been called
      [debuggee] WARNING: java.lang.foreign.Linker::nativeLinker has been called by the unnamed module
      [debuggee] WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module
       stdout: [Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      Initializing jdb ...

      VM Started: > No frames on the current call stack

      main[1]
      >
      Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=68 bci=129
      68 throw new RuntimeException("failed, lastError = " + lastError);

      main[1] ];
       stderr: [Set uncaught java.lang.Throwable
      Set deferred uncaught java.lang.Throwable
      Initializing jdb ...

      VM Started: > No frames on the current call stack

      main[1]
      >
      Exception occurred: java.lang.RuntimeException (uncaught)"thread=main", TestNativeLastError.testWindows(), line=68 bci=129
      68 throw new RuntimeException("failed, lastError = " + lastError);

      main[1] ]
       exitValue = -1

      [debuggee] Exception in thread "main" java.lang.RuntimeException: failed, lastError = 0
      [debuggee] at TestNativeLastError.testWindows(JdbLastErrorTest.java:68)
      [debuggee] at TestNativeLastError.main(JdbLastErrorTest.java:49)
      java.lang.RuntimeException: 'The application exited' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:340)
      at JdbLastErrorTest.runCases(JdbLastErrorTest.java:95)
      at lib.jdb.JdbTest.run(JdbTest.java:96)
      at JdbLastErrorTest.main(JdbLastErrorTest.java:79)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
      at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: 'The application exited' missing from stdout/stderr
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'The application exited' missing from stdout/stderr
      ----------rerun:(52/5644)*----------

      com/sun/jdi/JdbLastErrorTest.java is a new test added by:

      JDK-8292302 Windows GetLastError value overwritten by ThreadLocalStorage::thread

      Attachments

        Issue Links

          Activity

            People

              kevinw Kevin Walls
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: