JVM 调试的的时候崩溃

news/2024/11/15 2:41:39/

代码很简单:

public class StringObjectDemo {/*** @param args*/public static void main(String[] args) {// TODO Auto-generated method stubObject s1 = "HelloWorld";Object s2 = new String("HelloWorld");}
}

其中在 Object s2 = new String("HelloWorld"); 这里加了一个断点,在运行到断点时,我选择 Step Into,然后就出现如下错误:

#
# 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


Dynamic libraries:
0x0000000000400000 - 0x000000000042f000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\bin\javaw.exe
0x0000000077c10000 - 0x0000000077dbc000 C:\Windows\SYSTEM32\ntdll.dll
0x00000000778b0000 - 0x00000000779cf000 C:\Windows\system32\kernel32.dll
0x000007fefdbf0000 - 0x000007fefdc5c000 C:\Windows\system32\KERNELBASE.dll
0x000007feffdc0000 - 0x000007feffe9b000 C:\Windows\system32\ADVAPI32.dll
0x000007feff510000 - 0x000007feff5af000 C:\Windows\system32\msvcrt.dll
0x000007fefe3d0000 - 0x000007fefe3ef000 C:\Windows\SYSTEM32\sechost.dll
0x000007fefddb0000 - 0x000007fefdede000 C:\Windows\system32\RPCRT4.dll
0x0000000077b10000 - 0x0000000077c0a000 C:\Windows\system32\USER32.dll
0x000007fefe310000 - 0x000007fefe377000 C:\Windows\system32\GDI32.dll
0x000007feff940000 - 0x000007feff94e000 C:\Windows\system32\LPK.dll
0x000007fefe3f0000 - 0x000007fefe4ba000 C:\Windows\system32\USP10.dll
0x000007feff4e0000 - 0x000007feff50e000 C:\Windows\system32\IMM32.DLL
0x000007feffcb0000 - 0x000007feffdb9000 C:\Windows\system32\MSCTF.dll
0x000000006d8c0000 - 0x000000006e07c000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\server\jvm.dll
0x000007fefdc60000 - 0x000007fefdc9b000 C:\Windows\system32\WINMM.dll
0x000000006d830000 - 0x000000006d83e000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\verify.dll
0x000000006d450000 - 0x000000006d477000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\java.dll
0x000000006d4c0000 - 0x000000006d4f4000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\jdwp.dll
0x000000006d6e0000 - 0x000000006d6e8000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\npt.dll
0x000000006d880000 - 0x000000006d892000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\zip.dll
0x000000006d310000 - 0x000000006d319000 D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin\dt_socket.dll
0x000007feffed0000 - 0x000007fefff1d000 C:\Windows\system32\WS2_32.dll
0x000007feffec0000 - 0x000007feffec8000 C:\Windows\system32\NSI.dll
0x000007fefbaa0000 - 0x000007fefbab5000 C:\Windows\system32\NLAapi.dll
0x000007fefd1b0000 - 0x000007fefd204000 C:\Windows\System32\mswsock.dll
0x000007fefd030000 - 0x000007fefd08b000 C:\Windows\system32\DNSAPI.dll
0x000007fef7080000 - 0x000007fef708b000 C:\Windows\System32\winrnr.dll
0x000007fef7060000 - 0x000007fef7075000 C:\Windows\system32\napinsp.dll
0x000007fef7000000 - 0x000007fef7019000 C:\Windows\system32\pnrpnsp.dll
0x000007fef6f90000 - 0x000007fef6fa0000 C:\Windows\system32\wshbth.dll
0x000007fefb400000 - 0x000007fefb427000 C:\Windows\system32\IPHLPAPI.DLL
0x000007fefb3f0000 - 0x000007fefb3fb000 C:\Windows\system32\WINNSI.DLL
0x000007fefac20000 - 0x000007fefac73000 C:\Windows\System32\fwpuclnt.dll
0x000007fef78d0000 - 0x000007fef78d8000 C:\Windows\system32\rasadhlp.dll
0x000007fefcab0000 - 0x000007fefcab7000 C:\Windows\System32\wshtcpip.dll
0x0000000077dd0000 - 0x0000000077dd7000 C:\Windows\system32\PSAPI.DLL


VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:12651 -Dfile.encoding=GBK 
java_command: cn.itcast.others.StringObjectDemo
Launcher Type: SUN_STANDARD


Environment Variables:
CLASSPATH=.
PATH=D:\Users\vivianZhao\AppData\Local\MyEclipse Professional\binary\com.sun.java.jdk.win32.x86_64_1.6.0.u43\jre\bin;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\Common Files\NetSarang;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;d:\Program Files\MATLAB\R2009b\runtime\win64;d:\Program Files\MATLAB\R2009b\bin;D:\Program Files (x86)\Java\jdk1.7.0_15\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Program Files\Java\jdk1.7.0_15\jre;;C:\Program Files (x86)\DBank\ClickUp
USERNAME=vivianZhao
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 42 Stepping 7, GenuineIntel






---------------  S Y S T E M  ---------------


OS: Windows 7 , 64 bit Build 7600 


CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht


Memory: 4k page, physical 4085932k(464612k free), swap 9718068k(751956k free)


vm_info: Java HotSpot(TM) 64-Bit Server VM (20.14-b01) for windows-amd64 JRE (1.6.0_43-b01), built on Mar  1 2013 01:52:33 by "java_re" with MS VC++ 8.0 (VS2005)


time: Tue Jul 09 22:29:29 2013
elapsed time: 7 seconds



http://www.ppmy.cn/news/208950.html

相关文章

(补题)LCTF2018 PWN easy_heap超详细讲解

这道题是wiki上tcache attack 的Challenge 1,题目需要自己找一下。尝试上传到CSDN上,但总是提示已有,不知道是什么情况。这道题总的来说比较复杂,涉及到的知识点有:tcache分配、unsorted bin分配、堆块合并分割、tcach…

Unicode 编码表

正则查找: 中文文字中文符号表情符号... [^\x00-\xff] 其中 \x00-\xff 匹配 ASCII 代码中十六进制代码为 00-ff 的字符, 加个取反 ^ ,则就表示表示匹配非单字节的字符,例如汉字,汉字符号等字符集。 中文文字(简体繁体…

Redis RU101课程 Introduction to Redis Data Structures 第2周学习笔记

Capped Collections & Set Operations Cardinality & Capped Collections 首先谈到了基数(cardinality)的概念,对于List使用"LLEN",Set使用"SCARD",Sorted Set使用"ZCARD"。 由于List并不唯一&…

highcharts 各种问题解决方法

http://www.stepday.com/myblog/?highcharts

Nginx深入详解之upstream分配方式

一、分配方式 Nginx的upstream支持5种分配方式,下面将会详细介绍,其中,前三种为Nginx原生支持的分配方式,后两种为第三方支持的分配方式: 1、轮询 轮询是upstream的默认分配方式,…

VirtualBox启动错误 NS_ERROR_FAILURE (0x80004005)

VirtualBox启动错误 NS_ERROR_FAILURE (0x80004005) 打开VirtualBox报以下错误 明细忘记截图了,具体错误信息是 NS_ERROR_FAILURE (0x80004005) 发生原因: (仅个人而言)代码调试过程中,某些原因项目的日志文件占满…

linux 进程崩溃log,linux编程入门(九)-程序崩溃之后的排错及定位

当我们写程序时候难免会因为各种问题崩掉,如果是开发阶段,我们可以开gdb跟踪调试,但如果到了线上,就不能用gdb了,这时候我们可以把崩溃时候的调用栈信息打印出来,然后定位到具体崩溃的代码位置. 想要定位到具体的行号,需要在编译的时候加入-g参数,表示编译时候加入调试信息,调试…

SAP-ABAP-查找后台表修改记录

前提条件,SE11该表启用了log changs RZ10维护了记录日志的client 如何查找这些表的修改记录呢? AUT10--->选择增强模式 输入表格,执行 能看到修改的日期,时间,修改人,修改的事务码,不管是S…