[lworld] resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java fails with UnalignedAddressException with --enable-preview

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: hotspot
    • x86_64
    • linux

      The following test fails in the Valhalla CI:

      resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(9/749)----------
      command: main -Xmx8g TestHeapDumpForLargeArray
      reason: User specified action: run main/timeout=1800/othervm -Xmx8g TestHeapDumpForLargeArray
      exclusiveAccess wait time (seconds): 8.591
      started: Mon Feb 09 05:43:39.420 UTC 2026
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base,jdk.hotspot.agent --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED --add-exports jdk.hotspot.agent/sun.jvm.hotspot.utilities=ALL-UNNAMED --add-exports jdk.hotspot.agent/sun.jvm.hotspot.oops=ALL-UNNAMED --add-exports jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED
      Process id: 2157683
      finished: Mon Feb 09 05:43:44.371 UTC 2026
      elapsed time (seconds): 4.951
      ----------configuration:(8/427)----------

      <snip>

      ----------System.out:(12/2092)----------
      Command line: ['/opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-109/linux-x64-debug.jdk/jdk-27/fastdebug/bin/java' '-XX:MaxRAMPercentage=4.16667' '-Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/25/37/bundles/linux-x64/jdk-25_linux-x64_bin.tar.gz/jdk-25' '-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S87648/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4e8cf1-8f66-479f-9e04-7da7e946985c/runs/884f42e6-85b7-4d6d-a0eb-f62709e1126c/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_misc/tmp' '--enable-preview' '-XX:+UsePerfData' '-Xmx8g' '-cp' '/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S87648/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4e8cf1-8f66-479f-9e04-7da7e946985c/runs/884f42e6-85b7-4d6d-a0eb-f62709e1126c/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_misc/classes/5/resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.d:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S87648/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/1f4e8cf1-8f66-479f-9e04-7da7e946985c/runs/884f42e6-85b7-4d6d-a0eb-f62709e1126c/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_misc/classes/5/resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.d/test/lib' 'LingeredAppWithLargeArray' '6a74800f-f639-4484-9d51-27ec5ec83fe6.lck']
      LingeredApp startup took 2209ms
      Check for hs_err_pid/core/mdmp files:
      None.
      /opt/mach5/mesos/work_dir/jib-master/install/jdk-27-valhalla+1-109/linux-x64-debug.jdk/jdk-27/fastdebug/bin/jhsdb jmap --binaryheap --dumpfile LargeArrayHeapDump.bin --pid 2157711
      [2026-02-09T05:43:42.052636897Z] Gathering output for process 2157824
      [2026-02-09T05:43:42.118956973Z] Waiting for completion for process 2157824
      [2026-02-09T05:43:43.237142565Z] Waiting for completion finished for process 2157824
      Output and diagnostic info for process 2157824 was saved into 'pid-2157824-output.log'
       LingeredApp stdout: [];
       LingeredApp stderr: []
       LingeredApp exitValue = 0
      ----------System.err:(80/6238)----------
       stdout: [Attaching to process ID 2157711, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 27-valhalla+1-109
      ];
       stderr: [0x0000000000060001
      sun.jvm.hotspot.debugger.UnalignedAddressException: Trying to read at address: 0x0000000000060005 with alignment: 2
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerUtilities.checkAlignment(DebuggerUtilities.java:68)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerBase.readCInteger(DebuggerBase.java:352)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxAddress.getCIntegerAt(LinuxAddress.java:68)
      at jdk.hotspot.agent/sun.jvm.hotspot.types.basic.BasicField.getCInteger(BasicField.java:162)
      at jdk.hotspot.agent/sun.jvm.hotspot.types.basic.BasicCIntegerField.getValue(BasicCIntegerField.java:54)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Symbol.getLength(Symbol.java:77)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Symbol.asByteArray(Symbol.java:101)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Symbol.asString(Symbol.java:112)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Field.<init>(Field.java:52)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Field.getFields(Field.java:117)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getField(InstanceKlass.java:282)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getFieldSignature(InstanceKlass.java:319)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.newField(InstanceKlass.java:927)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getFieldByIndex(InstanceKlass.java:688)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getImmediateFields(InstanceKlass.java:702)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassSymbols(HeapHprofBinWriter.java:1194)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter$4.visit(HeapHprofBinWriter.java:1209)
      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.writeSymbols(HeapHprofBinWriter.java:1206)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:454)
      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:344)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:507)
      sun.jvm.hotspot.debugger.UnmappedAddressException: 16001b
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.PageCache.checkPage(PageCache.java:208)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.PageCache.getByte(PageCache.java:84)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.DebuggerBase.readJByte(DebuggerBase.java:270)
      at jdk.hotspot.agent/sun.jvm.hotspot.debugger.linux.LinuxAddress.getJByteAt(LinuxAddress.java:95)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Symbol.getByteAt(Symbol.java:81)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.FieldType.<init>(FieldType.java:38)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Field.<init>(Field.java:53)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Field.getFields(Field.java:117)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getField(InstanceKlass.java:282)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getFieldSignature(InstanceKlass.java:319)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.newField(InstanceKlass.java:927)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getFieldByIndex(InstanceKlass.java:688)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.InstanceKlass.getImmediateFields(InstanceKlass.java:702)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeClassSymbols(HeapHprofBinWriter.java:1194)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter$4.visit(HeapHprofBinWriter.java:1209)
      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.writeSymbols(HeapHprofBinWriter.java:1206)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:454)
      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:344)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:507)
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:549)
      at TestHeapDumpForLargeArray.attachAndDump(TestHeapDumpForLargeArray.java:67)
      at TestHeapDumpForLargeArray.main(TestHeapDumpForLargeArray.java:96)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1516)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      ----------rerun:(49/8603)*----------

            Assignee:
            Alex Menkov
            Reporter:
            Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: