JDK-8263730 : serviceability/sa/ClhsdbSymbol.java fails with "NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.addOffsetTo(long)" because "this.start" is null"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2021-03-17
  • Updated: 2021-03-17
  • Resolved: 2021-03-17
Related Reports
Duplicate :  
Relates :  
Relates :  
Sub Tasks
JDK-8263732 :  
Description
The following test is failing in the JDK17 CI:

serviceability/sa/ClhsdbSymbol.java

Here's a snippet from the log file:

Attaching to process 25165, please wait...
hsdb> hsdb> + verbose true
hsdb> + inspect 0x000000080001c8f8
Error: java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.addOffsetTo(long)" because "this.start" is null
java.lang.NullPointerException: Cannot invoke "sun.jvm.hotspot.debugger.Address.addOffsetTo(long)" because "this.start" is null
	at jdk.hotspot.agent/sun.jvm.hotspot.memory.MemRegion.end(MemRegion.java:140)
	at jdk.hotspot.agent/sun.jvm.hotspot.memory.MemRegion.contains(MemRegion.java:164)
	at jdk.hotspot.agent/sun.jvm.hotspot.gc.shared.CollectedHeap.isInReserved(CollectedHeap.java:78)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$23.doit(CommandProcessor.java:1046)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2116)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2086)
	at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:1957)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:112)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:44)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:281)
	at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:491)
hsdb> + quit

[2021-03-17T12:18:42.133572977Z] Waiting for completion for process 25319
[2021-03-17T12:18:42.133674770Z] Waiting for completion finished for process 25319
 LingeredApp stdout: [];
 LingeredApp stderr: []
 LingeredApp exitValue = 0
----------System.err:(43/3150)----------


This failure started happening on linux-aarch64, linux-X64 and
Win-X64 in jdk-17+14-1093-tier3 which includes the fix for:

JDK-8261095 Add test for clhsdb "symbol" command
Comments
This test passed in Tier1 on linux-aarch64, linux-X64, macOSX, and win-X64. All three of the Tier3 failures happen with -XX:+UseZGC.
17-03-2021