Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6467192

jhat fails with java.lang.ClassCastException on file created by jmap from core file

XMLWordPrintable

    • b03
    • generic, x86
    • generic, windows_xp
    • Verified

        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

              sundar Sundararajan Athijegannathan
              nhaustov Nicolay Haustov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: