JDK-6467192 : jhat fails with java.lang.ClassCastException on file created by jmap from core file
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2006-09-05
  • Updated: 2011-03-09
  • Resolved: 2011-03-08
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 JDK 6 JDK 7
5.0u10Resolved 6u1Fixed 7 b03Fixed
Related Reports
Duplicate :  
Description
Here is output of test:

[2006-09-01T23:23:28.62] Below 'Unexpected error' is actually expected - JVM is forced to dump core
[2006-09-01T23:24:05.99] Starting eating perm gen.
[2006-09-01T23:24:05.99] #
[2006-09-01T23:24:05.99] # An unexpected error has been detected by Java Runtime Environment:
[2006-09-01T23:24:05.99] #
[2006-09-01T23:24:05.99] #  SIGSEGV (0xb) at pc=0xfffffd7fff31f84a, pid=1217, tid=2
[2006-09-01T23:24:05.99] #
[2006-09-01T23:24:05.99] # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-rc-fastdebug-b97-debug compiled mode)
[2006-09-01T23:24:05.99] # Problematic frame:
[2006-09-01T23:24:05.99] # C  [libc.so.1+0xaf84a]  _kill+0xa
[2006-09-01T23:24:05.99] #
[2006-09-01T23:24:05.99] # An error report file with more information is saved as hs_err_pid1217.log
[2006-09-01T23:24:05.99] #
[2006-09-01T23:24:05.99] # If you would like to submit a bug report, please visit:
[2006-09-01T23:24:05.99] #   http://java.sun.com/webapps/bugreport/crash.jsp
[2006-09-01T23:24:05.99] #
[2006-09-01T23:24:05.99] VM option '-UseGCOverheadLimit'
[2006-09-01T23:24:05.99] Current thread is 2
[2006-09-01T23:24:05.99] Dumping core ...
[2006-09-01T23:24:05.99] Dumping heap to heap.bin ...
[2006-09-01T23:24:05.99] Heap dump file created
[2006-09-01T23:24:05.99] Verifying heap.bin
[2006-09-01T23:24:05.99] Reading from heap.bin...
[2006-09-01T23:24:05.99] Dump file created Sat Sep 02 03:23:53 MSD 2006
[2006-09-01T23:24:05.99] Snapshot read, resolving...
[2006-09-01T23:24:05.99] Resolving 5507 objects...
[2006-09-01T23:24:05.99] Verification of heap dump failed
[2006-09-01T23:24:05.99] TEST FAILED
[2006-09-01T23:24:05.99] Abort - core dumped
[2006-09-01T23:24:05.99] Attaching to core core from executable /net/vmsqe.russia/export1/vmsqe/jdk-builds/latest/solaris-amd64/fastdebug/bin/java, please w
ait...
[2006-09-01T23:24:05.99] Debugger attached successfully.
[2006-09-01T23:24:05.99] Server compiler detected.
[2006-09-01T23:24:05.99] JVM version is 1.6.0-rc-fastdebug-b97-debug
[2006-09-01T23:24:05.99] Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to com.sun.tools.hat.internal.model.JavaClass
[2006-09-01T23:24:05.99]        at com.sun.tools.hat.internal.model.JavaObjectArray.resolve(JavaObjectArray.java:68)
[2006-09-01T23:24:05.99]        at com.sun.tools.hat.internal.model.Snapshot.resolve(Snapshot.java:237)
[2006-09-01T23:24:05.99]        at com.sun.tools.hat.Main.main(Main.java:152)
[2006-09-01T23:24:05.99] # Test level exit status: 1

Comments
EVALUATION Reproduced the bug with jhat from build 98.
05-09-2006