1. 程式人生 > >win7下myeclipse/eclipse使用subclipse進行checkout時自動關閉問題

win7下myeclipse/eclipse使用subclipse進行checkout時自動關閉問題

現象:WIN7 32bit,myeclipse/eclipse用subclipse外掛,輸入url進行checkout操作時,視窗自動關閉,從日誌中看:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x3623804c, pid=1256, tid=8876
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode)
# Problematic frame:
# C [libapr-1.dll+0x804c]
#

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

Current thread (0x34b66580): JavaThread "ModalContext" [_thread_in_native, id=8876]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x36f3bb70, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000
ESP=0x36228c74, EBP=0x36228c80, ESI=0x338ff0e8, EDI=0x00000000
EIP=0x3623804c, EFLAGS=0x00010246

Top of Stack: (sp=0x36228c74)
0x36228c74: 00000000 338ff0e8 36f3bb70 3622acac
0x36228c84: 361d1f32 3622aca8 36f3bb70 00000000
0x36228c94: 00000000 00000000 338ff0e8 36f3bb70
0x36228ca4: 00000000 36f3bb70 00000000 36f3bb70
0x36228cb4: 36f3bc10 6eec84f1 36f3bb70 00000010
0x36228cc4: 6ee40000 6eec11f2 36f3bb70 36f3bc10
0x36228cd4: 6eec1210 6eec8610 36f3bb70 36f3bbc0
0x36228ce4: 36f3bb70 36f3bb70 00000000 003a0043

Instructions: (pc=0x3623804c)
0x3623803c: 89 55 10 53 8b 5d 14 56 57 85 db 75 03 8b 58 18
0x3623804c: 8b 03 bf 01 00 00 00 3b c7 0f 82 1a 01 00 00 8b


Stack: [0x361f0000,0x36230000), sp=0x36228c74, free space=227k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libapr-1.dll+0x804c]
C [libapriconv-1.dll+0x1f32]
C [libapriconv-1.dll+0x1da4]
C [_tbl_simple.so+0x123b]
C [_tbl_simple.so+0x11c4]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.tigris.subversion.javahl.SVNClient.info2(Ljava/lang/String;Lorg/tigris/subversion/javahl/Revision;Lorg/tigris/subversion/javahl/Revision;Z)[Lorg/tigris/subversion/javahl/Info2;+0
j org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getInfo(Lorg/tigris/subversion/svnclientadapter/SVNUrl;Lorg/tigris/subversion/svnclientadapter/SVNRevision;Lorg/tigris/subversion/svnclientadapter/SVNRevision;)Lorg/tigris/subversion/svnclientadapter/ISVNInfo;+55
j org.tigris.subversion.svnclientadapter.AbstractClientAdapter.getInfo(Lorg/tigris/subversion/svnclientadapter/SVNUrl;)Lorg/tigris/subversion/svnclientadapter/ISVNInfo;+8
j org.tigris.subversion.subclipse.core.repo.SVNRepositoryLocation.validateConnection(Lorg/eclipse/core/runtime/IProgressMonitor;)V+10
j org.tigris.subversion.subclipse.ui.wizards.NewLocationWizard$1.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V+7
j org.eclipse.jface.operation.ModalContext$ModalContextThread.run()V+15
v ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
=>0x34b66580 JavaThread "ModalContext" [_thread_in_native, id=8876]
0x34b66eb0 JavaThread "MyEclipse Thread" [_thread_blocked, id=11180]
0x34b67038 JavaThread "Device List Monitor" daemon [_thread_in_native, id=11028]
0x34b66ba0 JavaThread "Cleanup" daemon [_thread_in_native, id=9740]
0x34b663f8 JavaThread "Worker-2" [_thread_blocked, id=8772]
0x34c62038 JavaThread "Monitor" daemon [_thread_in_native, id=11660]
0x349ce678 JavaThread "org.eclipse.jdt.internal.ui.text.JavaReconciler" daemon [_thread_blocked, id=7664]
0x348fe8e0 JavaThread "Java indexing" daemon [_thread_blocked, id=4916]
0x33ee2710 JavaThread "Worker-0" [_thread_blocked, id=3028]
0x33d05070 JavaThread "Start Level Event Dispatcher" daemon [_thread_blocked, id=11564]
0x33d04cc0 JavaThread "Framework Event Dispatcher" daemon [_thread_blocked, id=2168]
0x33d598e8 JavaThread "State Data Manager" daemon [_thread_blocked, id=4476]
0x012dfd80 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10552]
0x012df7f0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4468]
0x012deb88 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5136]
0x012bc0c8 JavaThread "Finalizer" daemon [_thread_blocked, id=11928]
0x012bb450 JavaThread "Reference Handler" daemon [_thread_blocked, id=1272]
0x005da8c8 JavaThread "main" [_thread_in_native, id=7440]

Other Threads:
0x012b7450 VMThread [id=6572]
0x005debb8 WatcherThread [id=6788]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 9152K, used 3910K [0x035b0000, 0x03f90000, 0x05d10000)
eden space 8192K, 36% used [0x035b0000, 0x03891aa0, 0x03db0000)
from space 960K, 99% used [0x03ea0000, 0x03f8fff8, 0x03f90000)
to space 960K, 0% used [0x03db0000, 0x03db0000, 0x03ea0000)
tenured generation total 121024K, used 65097K [0x05d10000, 0x0d340000, 0x235b0000)
the space 121024K, 53% used [0x05d10000, 0x09ca26c8, 0x09ca2800, 0x0d340000)
compacting perm gen total 131072K, used 56037K [0x235b0000, 0x2b5b0000, 0x335b0000)
the space 131072K, 42% used [0x235b0000, 0x26c694b8, 0x26c69600, 0x2b5b0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040d000 D:\MyEclipse\jre\bin\javaw.exe
0x77420000 - 0x7755d000 C:\Windows\SYSTEM32\ntdll.dll
0x75920000 - 0x759f4000 C:\Windows\system32\kernel32.dll
0x755f0000 - 0x7563a000 C:\Windows\system32\KERNELBASE.dll
0x762a0000 - 0x76340000 C:\Windows\system32\ADVAPI32.dll
0x75870000 - 0x7591c000 C:\Windows\system32\msvcrt.dll
0x77590000 - 0x775a9000 C:\Windows\SYSTEM32\sechost.dll
0x75c80000 - 0x75d21000 C:\Windows\system32\RPCRT4.dll
0x77150000 - 0x77219000 C:\Windows\system32\USER32.dll
0x763c0000 - 0x7640e000 C:\Windows\system32\GDI32.dll
0x77570000 - 0x7757a000 C:\Windows\system32\LPK.dll
0x77220000 - 0x772bd000 C:\Windows\system32\USP10.dll
0x75a00000 - 0x75a1f000 C:\Windows\system32\IMM32.DLL
0x75bb0000 - 0x75c7c000 C:\Windows\system32\MSCTF.dll
0x6d640000 - 0x6d7dd000 D:\MyEclipse\jre\bin\client\jvm.dll
0x73c10000 - 0x73c42000 C:\Windows\system32\WINMM.dll
0x75470000 - 0x754bb000 C:\Windows\system32\apphelp.dll
0x6d290000 - 0x6d298000 D:\MyEclipse\jre\bin\hpi.dll
0x77560000 - 0x77565000 C:\Windows\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 D:\MyEclipse\jre\bin\verify.dll
0x6d310000 - 0x6d32d000 D:\MyEclipse\jre\bin\java.dll
0x6d630000 - 0x6d63f000 D:\MyEclipse\jre\bin\zip.dll
0x72000000 - 0x72012000 D:\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.1.R33x_v20070828\eclipse_1020.dll
0x72d30000 - 0x72db4000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\COMCTL32.dll
0x74a70000 - 0x74a79000 C:\Windows\system32\VERSION.dll
0x74450000 - 0x74490000 C:\Windows\system32\uxtheme.dll
0x33ff0000 - 0x3404e000 C:\Program Files\360\360Safe\safemon\safemon.dll
0x76410000 - 0x77059000 C:\Windows\system32\SHELL32.dll
0x76070000 - 0x760c7000 C:\Windows\system32\SHLWAPI.dll
0x772c0000 - 0x7741c000 C:\Windows\system32\ole32.dll
0x77060000 - 0x770ef000 C:\Windows\system32\OLEAUT32.dll
0x62800000 - 0x62866000 C:\Windows\system32\MSVCP60.dll
0x75e30000 - 0x75e65000 C:\Windows\system32\WS2_32.dll
0x77580000 - 0x77586000 C:\Windows\system32\NSI.dll
0x745d0000 - 0x7476e000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16661_none_420fe3fa2b8113bd\Comctl32.dll
0x754c0000 - 0x754cc000 C:\Windows\system32\CRYPTBASE.dll
0x775c0000 - 0x77643000 C:\Windows\system32\CLBCatQ.DLL
0x6d4d0000 - 0x6d4e3000 D:\MyEclipse\jre\bin\net.dll
0x74fb0000 - 0x74fec000 C:\Windows\system32\mswsock.dll
0x74fa0000 - 0x74fa6000 C:\Windows\System32\wship6.dll
0x6d4f0000 - 0x6d4f9000 D:\MyEclipse\jre\bin\nio.dll
0x343c0000 - 0x3440f000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\505\1\.cp\swt-win32-3346.dll
0x76340000 - 0x763bb000 C:\Windows\system32\comdlg32.dll
0x75d30000 - 0x75e25000 C:\Windows\system32\WININET.dll
0x75a20000 - 0x75b56000 C:\Windows\system32\urlmon.dll
0x75660000 - 0x7577c000 C:\Windows\system32\CRYPT32.dll
0x755e0000 - 0x755ec000 C:\Windows\system32\MSASN1.dll
0x75e70000 - 0x7606a000 C:\Windows\system32\iertutil.dll
0x74120000 - 0x74133000 C:\Windows\system32\dwmapi.dll
0x34440000 - 0x34448000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\435\1\.cp\os\win32\x86\localfile_1_0_0.dll
0x73ad0000 - 0x73b0c000 C:\Windows\system32\oleacc.dll
0x35ae0000 - 0x35af4000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\505\1\.cp\swt-gdip-win32-3346.dll
0x742c0000 - 0x74450000 C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.16385_none_72fc7cbf861225ca\gdiplus.dll
0x74ff0000 - 0x75006000 C:\Windows\system32\CRYPTSP.dll
0x74d70000 - 0x74dab000 C:\Windows\system32\rsaenh.dll
0x75560000 - 0x7556e000 C:\Windows\system32\RpcRtRemote.dll
0x674b0000 - 0x674de000 C:\Windows\system32\mlang.dll
0x74bd0000 - 0x74be7000 C:\Windows\system32\USERENV.dll
0x75570000 - 0x7557b000 C:\Windows\system32\profapi.dll
0x74b00000 - 0x74b05000 C:\Windows\System32\wshtcpip.dll
0x74e70000 - 0x74eb4000 C:\Windows\system32\DNSAPI.dll
0x711d0000 - 0x711f1000 C:\Program Files\Bonjour\mdnsNSP.dll
0x73a00000 - 0x73a1c000 C:\Windows\system32\Iphlpapi.DLL
0x739f0000 - 0x739f7000 C:\Windows\system32\WINNSI.DLL
0x70fa0000 - 0x70fa6000 C:\Windows\system32\rasadhlp.dll
0x73240000 - 0x73278000 C:\Windows\System32\fwpuclnt.dll
0x739e0000 - 0x739e5000 C:\Windows\system32\msimg32.dll
0x738d0000 - 0x738e0000 C:\Windows\system32\NLAapi.dll
0x6f780000 - 0x6f790000 C:\Windows\system32\napinsp.dll
0x6f740000 - 0x6f752000 C:\Windows\system32\pnrpnsp.dll
0x6f790000 - 0x6f79d000 C:\Windows\system32\wshbth.dll
0x6f770000 - 0x6f778000 C:\Windows\System32\winrnr.dll
0x6d4c0000 - 0x6d4c8000 D:\MyEclipse\jre\bin\management.dll
0x6eec0000 - 0x6eee1000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\libapr.dll
0x6ee50000 - 0x6ee59000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\libapriconv.dll
0x365a0000 - 0x366a8000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\libeay32.dll
0x712b0000 - 0x712b7000 C:\Windows\system32\WSOCK32.dll
0x36710000 - 0x367d4000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\libdb44.dll
0x364e0000 - 0x36511000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\ssleay32.dll
0x6ee60000 - 0x6ee89000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\libaprutil.dll
0x36520000 - 0x36532000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\intl3_svn.dll
0x37890000 - 0x37999000 D:\MyEclipse\eclipse\configuration\org.eclipse.osgi\bundles\588\1\.cp\libsvnjavahl-1.dll
0x70920000 - 0x70925000 C:\Windows\system32\SHFOLDER.dll
0x6ee40000 - 0x6ee45000 C:\Program Files\Subversion\iconv\_tbl_simple.so
0x361d0000 - 0x361d9000 C:\Program Files\Subversion\bin\libapriconv-1.dll
0x36230000 - 0x36252000 C:\Program Files\Subversion\bin\libapr-1.dll

VM Arguments:
jvm_args: -Xms128m -Xmx512m -Duser.language=en -XX:PermSize=128M -XX:MaxPermSize=256M
java_command: D:\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -os win32 -ws win32 -arch x86 -showsplash -launcher D:\MyEclipse\eclipse\eclipse.exe -name Eclipse --launcher.library D:\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.1.R33x_v20070828\eclipse_1020.dll -startup D:\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -exitdata 2178_a4 -vm D:\MyEclipse\jre\bin\javaw.exe -vmargs -Xms128m -Xmx512m -Duser.language=en -XX:PermSize=128M -XX:MaxPermSize=256M -jar D:\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=D:\JAVA\jdk1.6
CLASSPATH=.;D:\JAVA\jdk1.6\lib\tools.jar;D:\JAVA\jdk1.6\lib\dt.jar;C:\Program Files\Sun\JavaDB\lib\derbytools.jar;C:\Program Files\Sun\JavaDB\lib\derby.jar;C:\Program Files\Subversion\bin;D:\JAVA\jre1.6\lib\ext\QTJava.zip
PATH=C:\oracle10g\product\10.2.0\db_1\bin;C:\Oracle\Ora92\bin\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;D:\JAVA\jdk1.6\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Hewlett-Packard\OpenView\service desk 4.5\client\bin;C:\Program Files\Sun\JavaDB\bin;C:\Program Files\Subversion\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\IDM Computer Solutions\UltraEdit\
USERNAME=Bill
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 5, GenuineIntel


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

OS: Windows NT 6.1 Build 7600

CPU:total 4 (cores per cpu 8, threads per core 2) family 6 model 5 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 2097151k(962372k free), swap 4194303k(2784484k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0

網上說是subversion有衝突,但我嘗試xp版本沒問題,估計可能是win7、eclipse、sublicpse和subversion之間可能有衝突,解決方法是:
將系統的環境變數 APR_ICONV_PATH改為APR_ICONV1_PATH

論壇裡說:
Subclipse can crash on Windows if you have the environment variable
APR_ICONV_PATH set and it is pointing at a set of libraries that were
built against Apache 2.2. If that is the case, change the environment
variable name to APR_ICONV1_PATH and that will fix the problem. The
libraries from 2.2 will look for the variable with the "1" in it first
anyway. So this is a proper change to make.

If you want to be thorough, you could download the zip file for
Subversion 1.4.3, and point the APR_ICONV_PATH variable at the iconv
folder that came with it.

但這裡的問題似乎與Apache2.2以及subversion無關,因為自己用的時subversion1.6,且win7和win xp之間不同,所以還是覺得是win7版本的問題。。。如果有哪位高人也曾遇到過或知道詳解,還請告知,謝謝!