2012-06-30 79 views
1

所以,我已經像平常一樣(在任務欄中單擊圖標)打開eclipse,大約一個月沒有工作了,並且...什麼都沒有。有一點硬盤驅動器的活動,但沒有任何進程實際上保持活着,如果他們開始。Eclipse已經隨機停止加載

經過進一步調查,我發現如果以管理員身份運行可執行文件(我正在運行Windows 7),但在進度條出現之前崩潰,將生成一個名爲hs_err_pid2620.txt的文件,其中包含以下:

# 
# A fatal error has been detected by the Java Runtime Environment: 
# 
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000779b0895, pid=2620, tid=996 
# 
# JRE version: 7.0_03-b05 
# Java VM: Java HotSpot(TM) 64-Bit Server VM (22.1-b02 mixed mode windows-amd64 compressed oops) 
# Problematic frame: 
# C [ntdll.dll+0x50895] 
# 
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 
# 
# If you would like to submit a bug report, please visit: 
# http://bugreport.sun.com/bugreport/crash.jsp 
# 

--------------- T H R E A D --------------- 

Current thread (0x0000000002fef000): JavaThread "main" [_thread_in_Java, id=996, stack(0x0000000000030000,0x0000000000130000)] 

siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffffffffff 

Registers: 
RAX=0x000000000012dc68, RBX=0x0000000000000002, RCX=0x000000000012dd38, RDX=0x000000000012dca8 
RSP=0x000000000012dc58, RBP=0x000007fee9f266e0, RSI=0x0000000000000020, RDI=0x0000000000000000 
R8 =0x0000000000125000, R9 =0x0000000000000003, R10=0x0000000000000000, R11=0x0000000000003b95 
R12=0x0000000000000000, R13=0x0000000000000050, R14=0x0000000000000003, R15=0x0000000002fef000 
RIP=0x00000000779b0895, EFLAGS=0x0000000000010202 

Top of Stack: (sp=0x000000000012dc58) 
0x000000000012dc58: 0000000000000202 000000007796b239 
0x000000000012dc68: 000007fffffde000 0000000000000051 
0x000000000012dc78: 00000000081e5888 000000000012de00 
0x000000000012dc88: 0000000000000000 000000000012de70 
0x000000000012dc98: 000000006b06e908 000000000000000a 
0x000000000012dca8: 0000000000130000 0000000000125000 
0x000000000012dcb8: 0000000007a31630 000000000012e4d0 
0x000000000012dcc8: 000000000302743a 00000000030273d0 
0x000000000012dcd8: 0000000000000000 0000000000000000 
0x000000000012dce8: 000000000012e4d0 000000000012e5b0 
0x000000000012dcf8: 0000000002ff6038 000000006b1815ab 
0x000000000012dd08: 0000000000000000 000000000012e610 
0x000000000012dd18: 000056db5fdc4851 000000000012e500 
0x000000000012dd28: 0000000002feca70 000000006b181aab 
0x000000000012dd38: 000000000012de98 00000000f83af1d8 
0x000000000012dd48: 000000000012e500 00000000d825d98b 

Instructions: (pc=0x00000000779b0895) 
0x00000000779b0875: d0 00 00 00 4c 89 a1 d8 00 00 00 4c 89 a9 e0 00 
0x00000000779b0885: 00 00 4c 89 b1 e8 00 00 00 4c 89 b9 f0 00 00 00 
0x00000000779b0895: 0f ae 81 00 01 00 00 0f 29 81 a0 01 00 00 0f 29 
0x00000000779b08a5: 89 b0 01 00 00 0f 29 91 c0 01 00 00 0f 29 99 d0 


Register to memory mapping: 

RAX=0x000000000012dc68 is pointing into the stack for thread: 0x0000000002fef000 
RBX=0x0000000000000002 is an unknown value 
RCX=0x000000000012dd38 is pointing into the stack for thread: 0x0000000002fef000 
RDX=0x000000000012dca8 is pointing into the stack for thread: 0x0000000002fef000 
RSP=0x000000000012dc58 is pointing into the stack for thread: 0x0000000002fef000 
RBP=0x000007fee9f266e0 is an unknown value 
RSI=0x0000000000000020 is an unknown value 
RDI=0x0000000000000000 is an unknown value 
R8 =0x0000000000125000 is pointing into the stack for thread: 0x0000000002fef000 
R9 =0x0000000000000003 is an unknown value 
R10=0x0000000000000000 is an unknown value 
R11=0x0000000000003b95 is an unknown value 
R12=0x0000000000000000 is an unknown value 
R13=0x0000000000000050 is an unknown value 
R14=0x0000000000000003 is an unknown value 
R15=0x0000000002fef000 is a thread 


Stack: [0x0000000000030000,0x0000000000130000], sp=0x000000000012dc58, free space=1015k 
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 
C [ntdll.dll+0x50895] RtlCaptureContext+0x85 

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) 
v blob 0x00000000030274ff 
j java.util.jar.Attributes.putValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;+13 
j java.util.jar.Attributes.read(Ljava/util/jar/Manifest$FastInputStream;[B)V+301 
j java.util.jar.Manifest.read(Ljava/io/InputStream;)V+291 
j sun.security.util.SignatureFileVerifier.processImpl(Ljava/util/Hashtable;Ljava/util/List;)V+20 
j sun.security.util.SignatureFileVerifier.process(Ljava/util/Hashtable;Ljava/util/List;)V+9 
j java.util.jar.JarVerifier.processEntry(Lsun/security/util/ManifestEntryVerifier;)V+387 
j java.util.jar.JarVerifier.update(I[BIILsun/security/util/ManifestEntryVerifier;)V+39 
j java.util.jar.JarFile.initializeVerifier()V+107 
j java.util.jar.JarFile.getInputStream(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;+25 
j sun.misc.URLClassPath$JarLoader$2.getInputStream()Ljava/io/InputStream;+11 
j sun.misc.Resource.cachedInputStream()Ljava/io/InputStream;+9 
j sun.misc.Resource.getByteBuffer()Ljava/nio/ByteBuffer;+1 
j java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+132 
j java.net.URLClassLoader.access$100(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;+3 
j java.net.URLClassLoader$1.run()Ljava/lang/Class;+43 
j java.net.URLClassLoader$1.run()Ljava/lang/Object;+1 
v ~StubRoutines::call_stub 
j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 
j java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13 
j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+70 
j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3 
j org.eclipse.equinox.launcher.Main.invokeFramework([Ljava/lang/String;[Ljava/net/URL;)V+101 
j org.eclipse.equinox.launcher.Main.basicRun([Ljava/lang/String;)V+126 
j org.eclipse.equinox.launcher.Main.run([Ljava/lang/String;)I+4 
v ~StubRoutines::call_stub 

--------------- P R O C E S S --------------- 

Java Threads: (=> current thread) 
    0x00000000068c2000 JavaThread "Service Thread" daemon [_thread_blocked, id=2096, stack(0x0000000007440000,0x0000000007540000)] 
    0x00000000068b8800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=3160, stack(0x0000000007340000,0x0000000007440000)] 
    0x00000000068b2800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=2100, stack(0x0000000007240000,0x0000000007340000)] 
    0x00000000068b2000 JavaThread "Attach Listener" daemon [_thread_blocked, id=2136, stack(0x0000000007140000,0x0000000007240000)] 
    0x00000000068a6800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=2144, stack(0x0000000007040000,0x0000000007140000)] 
    0x00000000067c9000 JavaThread "Finalizer" daemon [_thread_blocked, id=2856, stack(0x0000000006f40000,0x0000000007040000)] 
    0x00000000067bc000 JavaThread "Reference Handler" daemon [_thread_blocked, id=2740, stack(0x0000000006e40000,0x0000000006f40000)] 
=>0x0000000002fef000 JavaThread "main" [_thread_in_Java, id=996, stack(0x0000000000030000,0x0000000000130000)] 

Other Threads: 
    0x00000000067ae800 VMThread [stack: 0x0000000006d40000,0x0000000006e40000] [id=3400] 
    0x00000000068d2800 WatcherThread [stack: 0x0000000007540000,0x0000000007640000] [id=2624] 

VM state:not at safepoint (normal execution) 

VM Mutex/Monitor currently owned by a thread: None 

Heap 
PSYoungGen  total 11968K, used 3878K [0x00000000f8000000, 0x00000000f8d50000, 0x0000000100000000) 
    eden space 10304K, 37% used [0x00000000f8000000,0x00000000f83c99e0,0x00000000f8a10000) 
    from space 1664K, 0% used [0x00000000f8bb0000,0x00000000f8bb0000,0x00000000f8d50000) 
    to space 1664K, 0% used [0x00000000f8a10000,0x00000000f8a10000,0x00000000f8bb0000) 
PSOldGen  total 27328K, used 0K [0x00000000e8000000, 0x00000000e9ab0000, 0x00000000f8000000) 
    object space 27328K, 0% used [0x00000000e8000000,0x00000000e8000000,0x00000000e9ab0000) 
PSPermGen  total 21248K, used 4738K [0x00000000d8000000, 0x00000000d94c0000, 0x00000000e8000000) 
    object space 21248K, 22% used [0x00000000d8000000,0x00000000d84a0be0,0x00000000d94c0000) 

Code Cache [0x0000000002ff0000, 0x0000000003260000, 0x0000000005ff0000) 
total_blobs=245 nmethods=26 adapters=172 free_code_cache=48707Kb largest_free_block=49843712 

Dynamic libraries: 
0x0000000000400000 - 0x000000000044f000  C:\Users\Andy\Desktop\eclipse-java-juno-win32-x86_64\eclipse\eclipse.exe 
0x0000000077960000 - 0x0000000077b09000  C:\windows\SYSTEM32\ntdll.dll 
0x0000000077840000 - 0x000000007795f000  C:\windows\system32\kernel32.dll 
0x000007fefded0000 - 0x000007fefdf3c000  C:\windows\system32\KERNELBASE.dll 
0x00000000775e0000 - 0x00000000776da000  C:\windows\system32\USER32.dll 
0x000007fefea70000 - 0x000007fefead7000  C:\windows\system32\GDI32.dll 
0x000007fefe220000 - 0x000007fefe22e000  C:\windows\system32\LPK.dll 
0x000007fefe460000 - 0x000007fefe529000  C:\windows\system32\USP10.dll 
0x000007feffbd0000 - 0x000007feffc6f000  C:\windows\system32\msvcrt.dll 
0x000007fefc620000 - 0x000007fefc814000  C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll 
0x000007fefe340000 - 0x000007fefe3b1000  C:\windows\system32\SHLWAPI.dll 
0x000007fefdc90000 - 0x000007fefdce7000  C:\windows\system32\apphelp.dll 
0x000007fee9f80000 - 0x000007fee9fda000  C:\windows\AppPatch\AppPatch64\AcLayers.DLL 
0x000007fefb9c0000 - 0x000007fefba31000  C:\windows\system32\WINSPOOL.DRV 
0x000007fef9090000 - 0x000007fef90a8000  C:\windows\system32\MPR.dll 
0x000007fefe6b0000 - 0x000007fefe7dd000  C:\windows\system32\RPCRT4.dll 
0x000007fee9b10000 - 0x000007fee9f77000  C:\windows\AppPatch\AppPatch64\AcXtrnal.DLL 
0x000007fee9fe0000 - 0x000007feea031000  C:\windows\AppPatch\AppPatch64\AcGenral.DLL 
0x000007fefdc60000 - 0x000007fefdc85000  C:\windows\system32\SspiCli.dll 
0x000007fefe7e0000 - 0x000007fefe9e3000  C:\windows\system32\ole32.dll 
0x000007fefede0000 - 0x000007feffb68000  C:\windows\system32\SHELL32.dll 
0x00000000726d0000 - 0x00000000726d3000  C:\windows\system32\sfc.dll 
0x000007fef7af0000 - 0x000007fef7b00000  C:\windows\system32\sfc_os.DLL 
0x000007fefd0c0000 - 0x000007fefd0de000  C:\windows\system32\USERENV.dll 
0x000007fefddc0000 - 0x000007fefddcf000  C:\windows\system32\profapi.dll 
0x000007fefbd90000 - 0x000007fefbda8000  C:\windows\system32\dwmapi.dll 
0x000007fefeb00000 - 0x000007fefebdb000  C:\windows\system32\ADVAPI32.dll 
0x000007fefeae0000 - 0x000007fefeaff000  C:\windows\SYSTEM32\sechost.dll 
0x000007fefe1e0000 - 0x000007fefe20e000  C:\windows\system32\IMM32.DLL 
0x000007fefe230000 - 0x000007fefe339000  C:\windows\system32\MSCTF.dll 
0x00000000222f0000 - 0x00000000223f5000  C:\Program Files\CheckPoint\ZAForceField\Plugins\ISWSHEX.dll 
0x0000000073c20000 - 0x0000000073ce9000  C:\windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_88e41e092fab0294\MSVCR80.dll 
0x000007fefde70000 - 0x000007fefdeaa000  C:\windows\system32\WINTRUST.dll 
0x000007fefdf40000 - 0x000007fefe0aa000  C:\windows\system32\CRYPT32.dll 
0x000007fefde60000 - 0x000007fefde6f000  C:\windows\system32\MSASN1.dll 
0x0000000073b10000 - 0x0000000073c19000  C:\windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_88e41e092fab0294\MSVCP80.dll 
0x000007fefc5a0000 - 0x000007fefc5cd000  C:\windows\system32\ntmarta.dll 
0x000007feffb70000 - 0x000007feffbc2000  C:\windows\system32\WLDAP32.dll 
0x0000000072000000 - 0x0000000072012000  C:\Users\Andy\Desktop\eclipse-java-juno-win32-x86_64\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813\eclipse_1503.dll 
0x000007fefcd60000 - 0x000007fefcd6c000  C:\windows\system32\VERSION.dll 
0x000007fefc380000 - 0x000007fefc3d6000  C:\windows\system32\uxtheme.dll 
0x000007fefdcf0000 - 0x000007fefdcff000  C:\windows\system32\CRYPTBASE.dll 
0x000007fefe3c0000 - 0x000007fefe459000  C:\windows\system32\CLBCatQ.DLL 
0x000007fefe530000 - 0x000007fefe607000  C:\windows\system32\OLEAUT32.dll 
0x0000000010000000 - 0x000000001000a000  C:\Program Files (x86)\Lenovo\Energy Management\BatteryTestDLL.dll 
0x000000006afc0000 - 0x000000006b69a000  C:\Program Files\Java\jdk1.7.0_03\jre\bin\server\jvm.dll 
0x000007fef1390000 - 0x000007fef1399000  C:\windows\system32\WSOCK32.dll 
0x000007fefe190000 - 0x000007fefe1dd000  C:\windows\system32\WS2_32.dll 
0x000007fefe210000 - 0x000007fefe218000  C:\windows\system32\NSI.dll 
0x000007fefaf60000 - 0x000007fefaf9b000  C:\windows\system32\WINMM.dll 
0x0000000077b20000 - 0x0000000077b27000  C:\windows\system32\PSAPI.DLL 
0x000000006bca0000 - 0x000000006bd71000  C:\windows\system32\MSVCR100.dll 
0x0000000071790000 - 0x000000007179f000  C:\Program Files\Java\jdk1.7.0_03\jre\bin\verify.dll 
0x000000006bc70000 - 0x000000006bc98000  C:\Program Files\Java\jdk1.7.0_03\jre\bin\java.dll 
0x000000006cc60000 - 0x000000006cc75000  C:\Program Files\Java\jdk1.7.0_03\jre\bin\zip.dll 
0x000007fefd690000 - 0x000007fefd6a7000  C:\windows\system32\CRYPTSP.dll 
0x000007fefd390000 - 0x000007fefd3d7000  C:\windows\system32\rsaenh.dll 
0x000000006bc50000 - 0x000000006bc69000  C:\Program Files\Java\jdk1.7.0_03\jre\bin\net.dll 
0x000007fefd630000 - 0x000007fefd685000  C:\windows\system32\mswsock.dll 
0x000007fefd620000 - 0x000007fefd627000  C:\windows\System32\wship6.dll 
0x000007fefb030000 - 0x000007fefb045000  C:\windows\system32\NLAapi.dll 
0x000007fef2750000 - 0x000007fef2765000  C:\windows\system32\napinsp.dll 
0x000007fef2770000 - 0x000007fef2789000  C:\windows\system32\pnrpnsp.dll 
0x000007fefd4b0000 - 0x000007fefd50b000  C:\windows\system32\DNSAPI.dll 
0x000007fef2730000 - 0x000007fef273b000  C:\windows\System32\winrnr.dll 
0x000007fef2740000 - 0x000007fef2750000  C:\windows\system32\wshbth.dll 
0x0000000072220000 - 0x0000000072246000  C:\Program Files\Bonjour\mdnsNSP.dll 
0x000007fefa8e0000 - 0x000007fefa907000  C:\windows\system32\Iphlpapi.DLL 
0x000007fefa8c0000 - 0x000007fefa8cb000  C:\windows\system32\WINNSI.DLL 
0x000007fef4750000 - 0x000007fef477f000  C:\Program Files\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL 
0x000007fefcfa0000 - 0x000007fefcfa7000  C:\windows\System32\wshtcpip.dll 
0x000007fef4a50000 - 0x000007fef4a58000  C:\windows\system32\rasadhlp.dll 
0x000007fefa4c0000 - 0x000007fefa513000  C:\windows\System32\fwpuclnt.dll 
0x000000006bc30000 - 0x000000006bc41000  C:\Program Files\Java\jdk1.7.0_03\jre\bin\nio.dll 

VM Arguments: 
jvm_args: -Dosgi.requiredJavaVersion=1.5 -Dhelp.lucene.tokenizer=standard -Xms40m -Xmx384m -XX:MaxPermSize=256m 
java_command: <unknown> 
Launcher Type: generic 

Environment Variables: 
CLASSPATH=.; 
PATH=C:/Program Files/Java/jdk1.7.0_03/bin/../jre/bin/server;C:/Program Files/Java/jdk1.7.0_03/bin/../jre/bin;C:/Program Files/Java/jdk1.7.0_03/bin/../jre/lib/amd64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Java\jdk1.7.0_03\bin;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 (x86)\Windows Live\Shared;C:\Users\Andy\Desktop\eclipse-java-juno-win32-x86_64\eclipse; 
USERNAME=Andy 
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 6000 

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 6233968k(4708700k free), swap 12466084k(10719968k free) 

vm_info: Java HotSpot(TM) 64-Bit Server VM (22.1-b02) for windows-amd64 JRE (1.7.0_03-b05), built on Feb 3 2012 20:43:56 by "java_re" with unknown MS VC++:1600 

time: Sat Jun 30 17:13:23 2012 
elapsed time: 0 seconds 

我已經嘗試了所有我能想到的解決問題。我已經下載了最新版本的Eclipse,安裝了Java和JDK的最新版本,並且根據Java的建議甚至暫時禁用了UAC,但沒有一個解決了這種情況。

據我所知,我沒有修改任何東西(當然不是用Eclipse做的),因爲Eclipse工作正常。不過,我確實有一點懷疑,即我的硬盤可能不像應該那樣健康;仍然,我還沒有看到任何其他 影響。因此,任何幫助或建議將不勝感激。

在此先感謝

回答

1

不幸的是,斯蒂芬C的懷疑是正確的;這完全與Eclipse無關。

我猜想崩潰是由於它位於Windows目錄而引起我的一點關注ntdll.dll。在幾個程序的擴展SMART測試產生了「讀取失敗」之後,我進一步調查,發現我的28個扇區被損壞。在這一點上,現實發生了,我意識到我的硬盤在最後一刻,所以我下了一個SSD(因爲我有殘疾,這意味着我可能會因爲其他原因而受到重壓)。我很高興我做到了。

在某些方面,這是一項很好的工作,當我這樣做時我使用Eclipse。我可以從字面上看到驅動器故障 - 我設法備份了我的大部分文件,其中一些是壞道,甚至是Unstoppable Copier也無能爲力;但克隆是一項毫無意義和耗時的工作。 Acronis成功克隆了該驅動器,但它顯然沒有得到重要的文件--Windows無法加載,我最終重新安裝並丟失了我的恢復分區 - 但您無法獲得任何內容。

無論如何,你真正需要知道的是Eclipse現在正在工作,而且問題是由我的硬盤上的扇區損壞引起的。很煩人。

3

嗯,JVM崩潰是討厭的,並表明有什麼是嚴重錯誤的。並且查看轉儲中的堆棧跟蹤,看起來代碼正在嘗試驗證它試圖打開的JAR文件上的簽名。我懷疑你的JAR文件已損壞,這往往會證實你懷疑這與你的硬盤「不健康」有關。

+0

我很害怕聽到這種迴應。如果我沒有提到我的驅動器,你認爲你會有不同的答案嗎?此外,我會想更新Eclipse和Java將取代任何可能已經損壞的Eclipse需要的文件...?還有什麼想法? – Andy

+0

儘管它在IO操作中不會爆炸,但是在執行看起來無害的行時['return(String)put(new Name(name),value);'](http://grepcode.com/file /repository.grepcode.com/java/root/jdk/openjdk/7-b147/java/util/jar/Attributes.java#168)。 OP,它是否一直在這個位置爆炸呢? –

+0

@MarkoTopolnik從外觀上看,它不是一個技術性的定義。我如何發現? – Andy

2

我只是想分享一下我的經驗 我在PC上運行runnable jar文件時也遇到同樣的錯誤。我被卡住了,整晚都試了一下,沒有任何用處。 後來我在我的筆記本電腦上試過同樣的jar文件,它工作正常,沒有錯誤沒有任何東西。

因此對此進行了更多分析,發現我的硬盤的某些扇區已損壞。

+0

這是一個值得商榷的問題,因爲它沒有提供補償或合理的解決方案。雖然可能發生的情況是重啓問題消失,但在很多情況下,可以防止這種情況發生。 –