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

serviceability/sa/TestType.java failed with sun.jvm.hotspot.debugger.win32.coff.COFFException: java.io.FileNotFoundException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 17
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows

      Description

      The following test failed in the JDK17 CI:

      serviceability/sa/TestType.java

      Here's a snippet from the log file:

      hsdb> + type InstanceKlass
      type InstanceKlass Klass false false false 472
      hsdb> + quit
      Error: sun.jvm.hotspot.debugger.win32.coff.COFFException: java.io.FileNotFoundException: C:\\Windows\\System32\\win32u.dll (The process cannot access the file because it is being used by another process)
      sun.jvm.hotspot.debugger.win32.coff.COFFException: java.io.FileNotFoundException: C:\\Windows\\System32\\win32u.dll (The process cannot access the file because it is being used by another process)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.win32.coff.COFFFileParser.parse(COFFFileParser.java:80)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL$1.computeValue(DLL.java:44)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.memo.MemoizedObject.getValue(MemoizedObject.java:41)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL.getFile(DLL.java:164)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL.close(DLL.java:155)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.detach(WindbgDebuggerLocal.java:179)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.detachInternal(HotSpotAgent.java:316)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.detach(HotSpotAgent.java:191)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.detachDebugger(CLHSDB.java:237)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$2.detach(CLHSDB.java:81)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$30.doit(CommandProcessor.java:1137)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2051)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2021)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1901)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:99)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:40)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:483)
      Caused by: java.io.FileNotFoundException: C:\\Windows\\System32\\win32u.dll (The process cannot access the file because it is being used by another process)
      at java.base/java.io.FileInputStream.open0(Native Method)
      at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
      at java.base/java.io.FileInputStream.<init>(FileInputStream.java:153)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.win32.coff.COFFFileParser.parse(COFFFileParser.java:67)
      ... 17 more
      hsdb> ];
       stderr: [java version "17-ea" 2021-09-14 LTS
      Java(TM) SE Runtime Environment (fastdebug build 17-ea+3-LTS-98)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 17-ea+3-LTS-98, mixed mode)
      Attaching to process 21172, please wait...
      Input stream closed.
      Exception in thread "Thread-0" java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.utilities.memo.MemoizedObject.getValue()" because "this.file" is null
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL.getFile(DLL.java:164)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL.close(DLL.java:155)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.detach(WindbgDebuggerLocal.java:179)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.detachInternal(HotSpotAgent.java:316)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.detach(HotSpotAgent.java:191)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent$1.run(HotSpotAgent.java:107)
      at java.base/java.lang.Thread.run(Thread.java:831)
      Exception in thread "Thread-1" java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.utilities.memo.MemoizedObject.getValue()" because "this.file" is null
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL.getFile(DLL.java:164)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.DLL.close(DLL.java:155)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.detach(WindbgDebuggerLocal.java:179)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.detachInternal(HotSpotAgent.java:316)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.detach(HotSpotAgent.java:191)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.detachDebugger(CLHSDB.java:237)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB$1.run(CLHSDB.java:54)
      ]
       exitValue = 0

      java.io.IOException: LingeredApp terminated with non-zero exit code 1
      at jdk.test.lib.apps.LingeredApp.stopApp(LingeredApp.java:396)
      at jdk.test.lib.apps.LingeredApp.stopApp(LingeredApp.java:459)
      at TestType.main(TestType.java:76)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.io.IOException: LingeredApp terminated with non-zero exit code 1
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.io.IOException: LingeredApp terminated with non-zero exit code 1
      ----------rerun:(40/5293)*----------

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: