-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
When using SA to debug a core file created on a different host, sometimes we don't have the classes.jsa at the exact directory when the core file is created:
libsaproc DEBUG: looking for /System/Volumes/xxx/macosx-x64-debug.jdk/jdk-19/fastdebug/lib/server/classes.jsa
libsaproc DEBUG: can't open /System/Volumes/xxx/macosx-x64-debug.jdk/jdk-19/fastdebug/lib/server/classes.jsa
libsaproc DEBUG: can't open /System/Volumes/xxx/macosx-x64-debug.jdk/jdk-19/fastdebug/lib/server/classes.jsa!
ERROR: failed to workaround classshareing
Unable to open core file
/Users/xxx/Downloads/core.36983:
The work around is to create a local directory with the exact path as recorded in the core file.
To make it easier to use SA with CDS, we can do two things:
[1] If the core file loads a default CDS archive, SA should try to find the classes.jsa under ${JAVA_HOME}
[2] Maybe we can also provide a way to override the location of the CDS archive. Something like this??
jhsdb -J-Doverride.cds.archive=/foo/bar/classes.jsa clhsdb --exe /java/home/bin/java --core core.12345
libsaproc DEBUG: looking for /System/Volumes/xxx/macosx-x64-debug.jdk/jdk-19/fastdebug/lib/server/classes.jsa
libsaproc DEBUG: can't open /System/Volumes/xxx/macosx-x64-debug.jdk/jdk-19/fastdebug/lib/server/classes.jsa
libsaproc DEBUG: can't open /System/Volumes/xxx/macosx-x64-debug.jdk/jdk-19/fastdebug/lib/server/classes.jsa!
ERROR: failed to workaround classshareing
Unable to open core file
/Users/xxx/Downloads/core.36983:
The work around is to create a local directory with the exact path as recorded in the core file.
To make it easier to use SA with CDS, we can do two things:
[1] If the core file loads a default CDS archive, SA should try to find the classes.jsa under ${JAVA_HOME}
[2] Maybe we can also provide a way to override the location of the CDS archive. Something like this??
jhsdb -J-Doverride.cds.archive=/foo/bar/classes.jsa clhsdb --exe /java/home/bin/java --core core.12345