JDK-8310618 : Test serviceability/sa/ClhsdbDumpclass.java fails after 8242152: 'StackMapTable:' missing from stdout/stderr
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 22
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2023-06-22
  • Updated: 2024-01-04
  • Resolved: 2023-06-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 22
22 b04Fixed
Related Reports
Relates :  
Description
java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'StackMapTable:' missing from stdout/stderr
	at ClhsdbDumpclass.main(ClhsdbDumpclass.java:97)
	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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:1570)
Caused by: java.lang.RuntimeException: 'StackMapTable:' missing from stdout/stderr
	at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
	at ClhsdbDumpclass.main(ClhsdbDumpclass.java:92)
	... 4 more
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/130 Date: 2023-09-04 09:42:24 +0000
04-09-2023

The fix for this bug was integrated in for jdk-22+4-193.
22-06-2023

Changeset: 370b8b26 Author: Daohan Qu <dqu@openjdk.org> Committer: Kevin Walls <kevinw@openjdk.org> Date: 2023-06-22 13:15:27 +0000 URL: https://git.openjdk.org/jdk/commit/370b8b2644e8951ba177c39199036c79ecf49401
22-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14612 Date: 2023-06-22 09:17:46 +0000
22-06-2023

Figured out. I came across a situation similar to this one https://github.com/openjdk/jdk/pull/3004#issuecomment-800679752. On my PC, ptrace attach is disabled by default so this test in fact doesn't run! The command line output shows nothing strange (all tests pass). But in summary.txt There is such a line: > serviceability/sa/ClhsdbDumpclass.java Passed. Skipped: jtreg.SkippedException: SA Attach not expected to work. Ptrace attach not supported. When I enable ptrace attach, the release build also shows failures. So it is not a bug that only manifests in debug build. The problem is that when you use `javap Main.class` it only shows an abbr. information. If you want to show detailed information (including `StackMapTable`) you need to add `-v` or `-verbose` option. (I forget this because I often use an alias for `javap -v -p` on my own system.) Lessons learned: next time I will check summary.txt after running the tests. Could we show some info on the tty in such a case (SA Attach doesn't work)? Some CI passes may also due to this, so CI may also need some reconfiguration.
22-06-2023

Failing in debug builds
22-06-2023