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

serviceability/sa/TestJmapCore.java fails with UnmappedAddressException on ZGC

    XMLWordPrintable

    Details

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

      Description

      The following test failed in the JDK18 CI:

      serviceability/sa/TestJmapCore.java

      Here's a snippet from the log file:

      ----------System.err:(53/4095)----------
      sun.jvm.hotspot.debugger.UnmappedAddressException: 7f3bc0774000
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.PageCache.getData(PageCache.java:63)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerBase.readBytes(DebuggerBase.java:225)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readCInteger(LinuxDebuggerLocal.java:565)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:462)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.readAddress(LinuxDebuggerLocal.java:500)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxAddress.getAddressAt(LinuxAddress.java:73)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGranuleMapForForwarding.at(ZGranuleMapForForwarding.java:67)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZGranuleMapForForwarding.get(ZGranuleMapForForwarding.java:72)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZForwardingTable.get(ZForwardingTable.java:58)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZHeap.relocate_object(ZHeap.java:96)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.relocate(ZBarrier.java:44)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.relocate_or_remap(ZBarrier.java:57)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.weak_load_barrier_on_oop_slow_path(ZBarrier.java:36)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZBarrier.weak_barrier(ZBarrier.java:69)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZCollectedHeap.oop_load_barrier(ZCollectedHeap.java:91)
      at jdk.hotspot.agent/sun.jvm.hotspot.gc.z.ZCollectedHeap.oop_load_in_native(ZCollectedHeap.java:112)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.VMOopHandle.resolve(VMOopHandle.java:60)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Klass.getJavaMirror(Klass.java:114)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter$5.visit(HeapHprofBinWriter.java:1140)
      at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderData.classesDo(ClassLoaderData.java:107)
      at jdk.hotspot.agent/sun.jvm.hotspot.classfile.ClassLoaderDataGraph.classesDo(ClassLoaderDataGraph.java:84)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClasses(HeapHprofBinWriter.java:1137)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:460)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:216)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.run(JMap.java:103)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:278)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:241)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:202)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:340)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)

      java.io.EOFException
      at java.base/java.io.DataInputStream.readFully(DataInputStream.java:203)
      at java.base/java.io.DataInputStream.readFully(DataInputStream.java:172)
      at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:228)
      at jdk.test.lib.hprof.parser.Reader.readFile(Reader.java:95)
      at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:85)
      at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:54)
      at TestJmapCore.test(TestJmapCore.java:106)
      at TestJmapCore.main(TestJmapCore.java:70)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
      at java.base/java.lang.Thread.run(Thread.java:833)

      JavaTest Message: Test threw exception: java.io.EOFException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.io.EOFException

      The test task's JVM args are: -XX:+CreateCoredumpOnCrash -XX:+UseZGC

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ysuenaga Yasumasa Suenaga
              Reporter:
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: