| 本帖最后由 杨兴庭 于 2013-7-10 22:31 编辑 
 上面是源代码,我在 Object s2 = new String("HelloWorld");  这里加了一个 Breakpoint ,结果一调试,我在这个断点这里我选择 Step Into,就直接报下面这个错误了{:soso_e141:}复制代码public class StringObjectDemo {
        /**
         * @param args
         */
        public static void main(String[] args) {
                // TODO Auto-generated method stub
                Object s1 = "HelloWorld";
                Object s2 = new String("HelloWorld");
        }
}
#
 # A fatal error has been detected by the Java Runtime Environment:
 #
 #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d90503e, pid=43300, tid=21404
 #
 # JRE version: 6.0_43-b01
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.14-b01 mixed mode windows-amd64 compressed oops)
 # Problematic frame:
 # V  [jvm.dll+0x4503e]
 #
 # An error report file with more information is saved as:
 # D:\Users\vivianZhao\Workspaces\MyEclipse Professional\Java5NewFeature\hs_err_pid43300.log
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 
 
 下面是错误日志文件:
 #
 # A fatal error has been detected by the Java Runtime Environment:
 #
 #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d90503e, pid=33424, tid=61396
 #
 # JRE version: 6.0_43-b01
 # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.14-b01 mixed mode windows-amd64 compressed oops)
 # Problematic frame:
 # V  [jvm.dll+0x4503e]
 #
 # If you would like to submit a bug report, please visit:
 #   http://java.sun.com/webapps/bugreport/crash.jsp
 #
 
 ---------------  T H R E A D  ---------------
 
 Current thread (0x0000000006629800):  JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_vm, id=61396, stack(0x0000000006cf0000,0x0000000006df0000)]
 
 siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008
 
 Registers:
 RAX=0x0000000000000014, RBX=0x0000000006629800, RCX=0x00000000eb3a4a80, RDX=0x0000000000000000
 RSP=0x0000000006def980, RBP=0x0000000006defaf0, RSI=0x0000000000000000, RDI=0x0000000000000000
 R8 =0x00000000eb3a4a80, R9 =0x0000000000000000, R10=0x0000000000000000, R11=0x0000000000000001
 R12=0x0000000000000000, R13=0x0000000000000000, R14=0x0000000000000000, R15=0x0000000000000000
 RIP=0x000000006d90503e, EFLAGS=0x0000000000010202
 
 Top of Stack: (sp=0x0000000006def980)
 0x0000000006def980:   00000000066299d0 000000006d4e04c2
 0x0000000006def990:   00000000066299d0 00000000066299d0
 0x0000000006def9a0:   00000000eb3a4a80 000000006d9dd91e
 0x0000000006def9b0:   0000000006defa98 0000000006defa98
 0x0000000006def9c0:   000000000662f800 000000006d4d5dcf
 0x0000000006def9d0:   0000000006629800 0000000000000000
 0x0000000006def9e0:   0000000000000000 0000000000000000
 0x0000000006def9f0:   00000000066299d0 0000000000000000
 0x0000000006defa00:   0000000000000000 000000006d4c76da
 0x0000000006defa10:   0000000006defa98 0000000006defaf0
 0x0000000006defa20:   000000000662f800 00000000066299d0
 0x0000000006defa30:   00000000066299d0 000000006d31500a
 0x0000000006defa40:   0000000000000000 0000000006defed0
 0x0000000006defa50:   000000000669b901 000000006d4cea83
 0x0000000006defa60:   000000000662c220 000000000662e3f0
 0x0000000006defa70:   0000000000000031 00000000066d19a0
 
 Instructions: (pc=0x000000006d90503e)
 0x000000006d90501e:   04 48 8b 14 08 45 84 db 48 63 05 b3 1d 6e 00 4a
 0x000000006d90502e:   63 34 00 48 63 05 a4 1d 6e 00 46 8b 0c 00 74 16
 0x000000006d90503e:   8b 42 08 0f b6 0d f8 41 6c 00 48 d3 e0 48 03 05
 0x000000006d90504e:   e6 41 6c 00 eb 04 48 8b 42 08 8b 40 18 25 00 ff
 
 
 Register to memory mapping:
 
 RAX=0x0000000000000014 is an unknown value
 RBX=0x0000000006629800 is a thread
 RCX=0x00000000eb3a4a80 is an oop
 java.lang.String
 - klass: 'java/lang/String'
 RDX=0x0000000000000000 is an unknown value
 RSP=0x0000000006def980 is pointing into the stack for thread: 0x0000000006629800
 RBP=0x0000000006defaf0 is pointing into the stack for thread: 0x0000000006629800
 RSI=0x0000000000000000 is an unknown value
 RDI=0x0000000000000000 is an unknown value
 R8 =0x00000000eb3a4a80 is an oop
 java.lang.String
 - klass: 'java/lang/String'
 R9 =0x0000000000000000 is an unknown value
 R10=0x0000000000000000 is an unknown value
 R11=0x0000000000000001 is an unknown value
 R12=0x0000000000000000 is an unknown value
 R13=0x0000000000000000 is an unknown value
 R14=0x0000000000000000 is an unknown value
 R15=0x0000000000000000 is an unknown value
 
 
 Stack: [0x0000000006cf0000,0x0000000006df0000],  sp=0x0000000006def980,  free space=1022k
 Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
 V  [jvm.dll+0x4503e]
 C  0x000000000000012c
 
 
 ---------------  P R O C E S S  ---------------
 
 Java Threads: ( => current thread )
 0x0000000006652000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=59500, stack(0x0000000007420000,0x0000000007520000)]
 0x0000000006640800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=43688, stack(0x0000000007320000,0x0000000007420000)]
 0x000000000663d000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=8336, stack(0x0000000007220000,0x0000000007320000)]
 0x000000000663a800 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=58412, stack(0x0000000007090000,0x0000000007190000)]
 0x000000000662d800 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=33572, stack(0x0000000006eb0000,0x0000000006fb0000)]
 =>0x0000000006629800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_in_vm, id=61396, stack(0x0000000006cf0000,0x0000000006df0000)]
 0x00000000065d7000 JavaThread "Attach Listener" daemon [_thread_blocked, id=49292, stack(0x00000000069c0000,0x0000000006ac0000)]
 0x00000000065d6800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=51992, stack(0x00000000068c0000,0x00000000069c0000)]
 0x000000000032f000 JavaThread "Finalizer" daemon [_thread_blocked, id=17064, stack(0x00000000067c0000,0x00000000068c0000)]
 0x0000000000327000 JavaThread "Reference Handler" daemon [_thread_blocked, id=40292, stack(0x00000000064c0000,0x00000000065c0000)]
 0x000000000022c800 JavaThread "main" [_thread_blocked, id=63312, stack(0x0000000002540000,0x0000000002640000)]
 
 Other Threads:
 0x000000000031f000 VMThread [stack: 0x00000000063c0000,0x00000000064c0000] [id=55608]
 0x0000000006660000 WatcherThread [stack: 0x0000000007520000,0x0000000007620000] [id=7204]
 
 VM state:not at safepoint (normal execution)
 
 VM Mutex/Monitor currently owned by a thread: None
 
 Heap
 PSYoungGen      total 18624K, used 640K [0x00000000eb360000, 0x00000000ec820000, 0x0000000100000000)
 eden space 16000K, 4% used [0x00000000eb360000,0x00000000eb400030,0x00000000ec300000)
 from space 2624K, 0% used [0x00000000ec590000,0x00000000ec590000,0x00000000ec820000)
 to   space 2624K, 0% used [0x00000000ec300000,0x00000000ec300000,0x00000000ec590000)
 PSOldGen        total 42624K, used 0K [0x00000000c1a00000, 0x00000000c43a0000, 0x00000000eb360000)
 object space 42624K, 0% used [0x00000000c1a00000,0x00000000c1a00000,0x00000000c43a0000)
 PSPermGen       total 21248K, used 3034K [0x00000000bc800000, 0x00000000bdcc0000, 0x00000000c1a00000)
 object space 21248K, 14% used [0x00000000bc800000,0x00000000bcaf6898,0x00000000bdcc0000)
 
 Code Cache  [0x0000000002640000, 0x00000000028b0000, 0x0000000005640000)
 total_blobs=165 nmethods=2 adapters=125 free_code_cache=49947968 largest_free_block=12096
 
 写不下了,接1楼
 
 
 
 |