JDK-8321684 : Test serviceability/sa/ClhsdbFindPC.java#no-xcomp-core failed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 23
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2023-12-10
  • Updated: 2024-07-27
  • Resolved: 2024-07-27
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
Opening core file, please wait...
hsdb> ERROR: can't read shared archive path value (0x107aae868) (0x600003ce4010)
ERROR: failed to workaround classshareing
Unable to open core file
core.9962:

Can't attach to the core file
sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file
	at jdk.hotspot.agent/sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.attach0(Native Method)
	at jdk.hotspot.agent/sun.jvm.hotspot.debugger.bsd.BsdDebuggerLocal.attach(BsdDebuggerLocal.java:268)
	at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:638)
	at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupDebuggerDarwin(HotSpotAgent.java:624)
	at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:372)
	at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:337)
	at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:158)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.attachDebugger(CLHSDB.java:210)
	at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:69)
	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:500)
Input stream closed.

Comments
This is likely the incomplete core file issue we see on macosx-aarch64, and is described in JDK-8318754. Closing as a dup of JDK-8318754.
27-07-2024

SA is trying to get the value of the C string pointed to by the C++ symbol __ZN9CDSConfig20_static_archive_pathE. SA has what it thinks is the address stored in that symbol, and does a ps_read() of that address to get the page, For some reason the page read failing. Most likely SA has read the symbol table in incorrectly, so it has a wrong, or bad, address for the symbol. This might be related JDK-8294316, which dealt with symbol file issues, but was fixed. Possibly the fix has some holes in it. However, JDK-8294316 was only seen on x64 and this issue was on aarch64.
11-12-2023