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

sun/tools/jhsdb/JStackStressTest.java failed with zero stride: cannot read types.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23
    • hotspot
    • aarch64
    • os_x

      The following test failed in the JDK23 CI:

      sun/tools/jhsdb/JStackStressTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/346)----------
      command: main JStackStressTest
      reason: User specified action: run main/timeout=240 JStackStressTest
      started: Tue Apr 09 09:51:16 GMT 2024
      Mode: othervm [test requires non-default system module]
      Additional options from @modules: --add-modules jdk.hotspot.agent,java.management
      finished: Tue Apr 09 09:51:21 GMT 2024
      elapsed time (seconds): 5.112
      ----------configuration:(3/61)----------
      Boot Layer
        add modules: jdk.hotspot.agent java.management

      ----------System.out:(47/3096)----------
      STDOUT: Executable=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+18-1427/macosx-aarch64-debug.jdk/jdk-23/fastdebug/bin/java
      STDOUT: Identifier=com.oracle.java.java
      STDOUT: Format=Mach-O thin (arm64)
      STDOUT: CodeDirectory v=20400 size=749 flags=0x2(adhoc) hashes=13+7 location=embedded
      Target JDK is adhoc signed, but not hardened.
      STDOUT: Signature=adhoc
      STDOUT: Info.plist entries=5
      STDOUT: TeamIdentifier=not set
      STDOUT: Sealed Resources=none
      STDOUT: Internal requirements count=0 size=12
      DevToolsSecurity stdout: Developer mode is currently enabled.
      DevToolsSecurity stderr:
      Starting Jshell
      [JShell]:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-23+18-1427/macosx-aarch64-debug.jdk/jdk-23/fastdebug/bin/jshell -J-Xmx768m -J-XX:MaxRAMPercentage=6.25 -J-Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/22/36/bundles/macos-aarch64/jdk-22_macos-aarch64_bin.tar.gz/jdk-22.jdk/Contents/Home -J-Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/6ba748f8-6357-4d9f-bc1a-7d0f00965add-S1015/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d0d558b5-6a36-4a83-8315-8291c475f1df/runs/021c9074-b0b8-49b8-82b1-08a8121facbd/testoutput/test-support/jtreg_open_test_jdk_svc_tools/tmp -J-ea -J-esa -J-Duse.JTREG_TEST_THREAD_FACTORY=Virtual -J-XX:+UseZGC -J-XX:-VerifyContinuations
      [2024-04-09T09:51:16.612784Z] Gathering output for process 55494
      ###### Starting jstack iteration 1 against 55494
      DevToolsSecurity stdout: Developer mode is currently enabled.
      DevToolsSecurity stderr:
      [2024-04-09T09:51:16.654348Z] Gathering output for process 55496
      [2024-04-09T09:51:16.654570Z] Waiting for completion for process 55496
      [2024-04-09T09:51:16.843946Z] Waiting for completion finished for process 55496
      Output and diagnostic info for process 55496 was saved into 'pid-55496-output.log'
      jhsdb jstack stdout:
      Attaching to process ID 55494, please wait...

      jhsdb jstack stderr:
      java.lang.RuntimeException: zero stride: cannot read types.
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:173)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:89)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:419)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:338)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:142)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:203)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.runWithArgs(JStack.java:90)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:302)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)

      ###### End of all output for iteration 1 which took 302ms
      [JShell] | Welcome to JShell -- Version 23-ea
      [JShell] | For an introduction type: /help intro
      [JShell] | Goodbye
      jshell Output: | Welcome to JShell -- Version 23-ea
      | For an introduction type: /help intro
      | Goodbye

      jshell>
      ----------System.err:(33/2131)----------
       stdout: [Attaching to process ID 55494, please wait...
      ];
       stderr: [java.lang.RuntimeException: zero stride: cannot read types.
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotTypeDataBase.readVMTypes(HotSpotTypeDataBase.java:173)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotTypeDataBase.<init>(HotSpotTypeDataBase.java:89)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:419)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:338)
      at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:142)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:203)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:134)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JStack.runWithArgs(JStack.java:90)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJSTACK(SALauncher.java:302)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)
      ]
       exitValue = 1

      [JShell] jshell>
      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at JStackStressTest.testjstack(JStackStressTest.java:78)
      at JStackStressTest.main(JStackStressTest.java:107)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.VirtualThread.run(VirtualThread.java:329)
      Caused by: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
      at JStackStressTest.testjstack(JStackStressTest.java:70)
      ... 5 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR 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: Test ERROR java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      ----------rerun:(44/7758)*----------

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: