United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6786948 SA on core file fails on solaris-amd64 if VM was started with -XX:+StartAttachListener
JDK-6786948 : SA on core file fails on solaris-amd64 if VM was started with -XX:+StartAttachListener

Details
Type:
Bug
Submit Date:
2008-12-18
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
hs15 (b01)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
If solaris-amd64 java is started with -XX:+StartAttachListener and later core file is produced, then none of troubleshooting tools work on this core file:

$ jstack -J-d64 jdk/bin/java core
Attaching to core core from executable jdk/bin/java, please wait...
Error attaching to core file: can't open shared archive file /tmp/a/jdk2/jre/lib/amd64/server/classes.jsa

                                    

Comments
EVALUATION

UseSharedSpace is a bool type and in SA its value is read as int. 
It should be changed to read a byte value. See saproc.cpp line 579 (it may change).
                                     
2008-12-22
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/8db2b3e46c38
                                     
2009-01-15



Hardware and Software, Engineered to Work Together