Test serviceability/sa/TestDebugInfoDecode.java fails, passes and times out all at once

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 27
    • Component/s: hotspot

      The launched VM is actually failing due to NPE but the code the Driver invokes reports no error itself so the test "passes", however it also then timed out. I do not understand how we get multiple NPEs reported.

      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-27+8-651/linux-aarch64-debug.jdk/jdk-27/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S103323/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c92ebabe-45a9-4bf9-868d-8af82949cad3/runs/ea963881-99f8-4f4d-bbff-5b69a19a8e2f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_serviceability/classes/0/serviceability/sa/TestDebugInfoDecode.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-27+8-651/src.full/open/test/hotspot/jtreg/serviceability/sa:/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S103323/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/c92ebabe-45a9-4bf9-868d-8af82949cad3/runs/ea963881-99f8-4f4d-bbff-5b69a19a8e2f/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_serviceability/classes/0/serviceability/sa/TestDebugInfoDecode.d/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-27+8-651/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/8.1/1/bundles/jtreg-8.1+1.zip/jtreg/lib/jtreg.jar --add-modules=jdk.hotspot.agent --add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.code=ALL-UNNAMED --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.runtime=ALL-UNNAMED TestDebugInfoDecode 573067 ]
      [2026-02-04T06:54:51.079592080Z] Gathering output for process 573399
      [2026-02-04T06:54:56.020706854Z] Waiting for completion for process 573399
      [2026-02-04T06:55:52.523268581Z] Waiting for completion finished for process 573399
      Output and diagnostic info for process 573399 was saved into 'pid-573399-output.log'
      java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.getCIntegerAt(long, long, boolean)" because "addr" is null
      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.code.CodeBlob.getKind(CodeBlob.java:163)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeBlob.getClassFor(CodeBlob.java:103)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.createCodeBlobWrapper(CodeCache.java:98)
      at jdk.hotspot.agent/sun.jvm.hotspot.memory.CodeHeap.iterate(CodeHeap.java:111)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.iterate(CodeCache.java:132)
      at TestDebugInfoDecode.checkDecode(TestDebugInfoDecode.java:83)
      at TestDebugInfoDecode.main(TestDebugInfoDecode.java:117)
      java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.getCIntegerAt(long, long, boolean)" because "addr" is null
      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.code.CodeBlob.getKind(CodeBlob.java:163)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeBlob.getClassFor(CodeBlob.java:103)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.createCodeBlobWrapper(CodeCache.java:98)
      at jdk.hotspot.agent/sun.jvm.hotspot.memory.CodeHeap.iterate(CodeHeap.java:111)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.iterate(CodeCache.java:132)
      at TestDebugInfoDecode.checkDecode(TestDebugInfoDecode.java:83)
      at TestDebugInfoDecode.main(TestDebugInfoDecode.java:117)
      java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.getCIntegerAt(long, long, boolean)" because "addr" is null
      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.code.CodeBlob.getKind(CodeBlob.java:163)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeBlob.getClassFor(CodeBlob.java:103)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.createCodeBlobWrapper(CodeCache.java:98)
      at jdk.hotspot.agent/sun.jvm.hotspot.memory.CodeHeap.iterate(CodeHeap.java:111)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.iterate(CodeCache.java:132)
      at TestDebugInfoDecode.checkDecode(TestDebugInfoDecode.java:83)
      at TestDebugInfoDecode.main(TestDebugInfoDecode.java:117)
      java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.getCIntegerAt(long, long, boolean)" because "addr" is null
      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.code.CodeBlob.getKind(CodeBlob.java:163)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeBlob.getClassFor(CodeBlob.java:103)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.createCodeBlobWrapper(CodeCache.java:98)
      at jdk.hotspot.agent/sun.jvm.hotspot.memory.CodeHeap.iterate(CodeHeap.java:111)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.CodeCache.iterate(CodeCache.java:132)
      at TestDebugInfoDecode.checkDecode(TestDebugInfoDecode.java:83)
      at TestDebugInfoDecode.main(TestDebugInfoDecode.java:117)

      [07:00:00.864] Timeout signalled after 480 seconds
       LingeredApp stdout: [];
       LingeredApp stderr: []
       LingeredApp exitValue = 0
      ----------System.err:(1/15)----------
      STATUS:Passed.

      Three other tests in the same run also timed out after passing so there may be a general issue with the way the tests are being run.

            Assignee:
            Unassigned
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: