Java

EXCEPTION_ACCESS_VIOLATION [Java Exception]

_침묵_ 2006. 11. 1. 20:37

 

출처 :http://blog.hanafos.com/foxkjy/5
 
 * hs_err_pidXXXX.log 문제

 

   -EXCEPTION_ACCESS_VIOLATION은 sun의 jdk에서 JNI(Java Native Interface)에서 올바르지 않은 호출에 의해 발생되는 경우라고 할 수 있다.
   - 아래와 같은 경우는 fontmanager.dll에 의해서 발생한 오류인데, 추측되는 이유중의 하나는 윈도우 폰트중 하나가 손상되어 JVM의 동작을 멈추게 하는게 아닌가 싶다.
   - 외국 사이트를 살펴봐도 확실히 어떻다라고 정답에 가까운 내용을 제공하는 곳은 찾기 어려웠으며, 대부분이 이럴것이다라고만 하는 경우가 많았다. 그래도 그중에서 신빙성이 있는 대답이라고 하면 다음과 같은 것들이 있었다.
   -
http://archives.neohapsis.com/archives/vulndiscuss/2002-q3/0044.html
   - THE SOLUTION for allEXCEPTION_ACCESS_VIOLATIONcaused by fontmanger:
 

OS: every MS Windows
java_version: occures in all versions

None suggested workaround helped: not the Environment-Variable JAVA_FONTS
nore moving Fonts and so on

The Problem: one single damaged Font causes the JVM to crash

THE SOLUTION: suggested by "rsimms" in bug-thread 4762039
remove all Fonts out of the %WINDIR%\Fonts directory for ex.
in a tmp-dir and reinstall them. By reinstalling them
Windows detects any corrupt/damaged fonts!

 

 


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal :EXCEPTION_ACCESS_VIOLATION(0xc0000005) occurred at PC=0x300205C
Function=Java_sun_awt_font_GlyphList_discardData+0x662C
Library=C:\Program Files\Java\j2re1.4.2_01\bin\fontmanager.dll

Current Java thread:
        at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
        - locked <0x14213210> (a java.lang.Class)
        at sun.java2d.SunGraphicsEnvironment.addPathFonts(Unknown Source)
        at sun.java2d.SunGraphicsEnvironment.registerFonts(Unknown Source)
        at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source)
        at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.java2d.SunGraphicsEnvironment.loadFonts(Unknown Source)
        - locked <0x1050d5e8> (a sun.awt.Win32GraphicsEnvironment)
        at sun.java2d.SunGraphicsEnvironment.mapFontName(Unknown Source)
        at java.awt.Font.initializeFont(Unknown Source)
        at java.awt.Font.(Unknown Source)
        at sun.awt.windows.WDesktopProperties.setFontProperty(Unknown Source)
        - locked <0x100900c8> (a sun.awt.windows.WDesktopProperties)
        at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native Method)
        at sun.awt.windows.WDesktopProperties.(Unknown Source)
        at sun.awt.windows.WToolkit.initializeDesktopProperties(Unknown Source)
        at java.awt.Toolkit.getDesktopProperty(Unknown Source)
        - locked <0x10090090> (a sun.awt.windows.WToolkit)
        at sun.awt.shell.ShellFolder.(Unknown Source)
        at javax.swing.filechooser.FileSystemView.getRoots(Unknown Source)
        at javax.swing.filechooser.WindowsFileSystemView.getHomeDirectory(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
        at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
        at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
        at javax.swing.JComponent.setUI(Unknown Source)
        at javax.swing.JFileChooser.updateUI(Unknown Source)
        at javax.swing.JFileChooser.setup(Unknown Source)
        at javax.swing.JFileChooser.(Unknown Source)
        at javax.swing.JFileChooser.(Unknown Source)
        at ui.XmlEditorFrame.(XmlEditorFrame.java:51)
        at ui.XmlEditorApp.main(XmlEditorApp.java:37)

Dynamic libraries:
0x00400000 - 0x00406000         C:\WINDOWS\system32\java.exe
0x77F50000 - 0x77FF7000         C:\WINDOWS\System32\ntdll.dll
0x77E20000 - 0x77F40000         C:\WINDOWS\system32\kernel32.dll
0x77D80000 - 0x77E1A000         C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000         C:\WINDOWS\system32\RPCRT4.dll
0x77BC0000 - 0x77C13000         C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08136000         C:\Program Files\Java\j2re1.4.2_01\bin\client\jvm.dll
0x77CF0000 - 0x77D7C000         C:\WINDOWS\system32\USER32.dll
0x77C20000 - 0x77C60000         C:\WINDOWS\system32\GDI32.dll
0x76AF0000 - 0x76B1A000         C:\WINDOWS\system32\WINMM.dll
0x762E0000 - 0x762FC000         C:\WINDOWS\System32\IMM32.DLL
0x62340000 - 0x62348000         C:\WINDOWS\system32\LPK.DLL
0x72EF0000 - 0x72F4A000         C:\WINDOWS\system32\USP10.dll
0x10000000 - 0x10007000         C:\Program Files\Java\j2re1.4.2_01\bin\hpi.dll
0x003F0000 - 0x003FE000         C:\Program Files\Java\j2re1.4.2_01\bin\verify.dll
0x008A0000 - 0x008B8000         C:\Program Files\Java\j2re1.4.2_01\bin\java.dll
0x008C0000 - 0x008CD000         C:\Program Files\Java\j2re1.4.2_01\bin\zip.dll
0x02EB0000 - 0x02FBF000         C:\Program Files\Java\j2re1.4.2_01\bin\awt.dll
0x72F50000 - 0x72F73000         C:\WINDOWS\system32\WINSPOOL.DRV
0x7CBD0000 - 0x7CCF1000         C:\WINDOWS\system32\ole32.dll
0x02FD0000 - 0x03020000         C:\Program Files\Java\j2re1.4.2_01\bin\fontmanager.dll
0x51000000 - 0x51047000         C:\WINDOWS\system32\ddraw.dll
0x73B10000 - 0x73B16000         C:\WINDOWS\system32\DCIMAN32.dll
0x5C000000 - 0x5C0C8000         C:\WINDOWS\system32\D3DIM700.DLL
0x74660000 - 0x746A4000         C:\WINDOWS\System32\MSCTF.dll
0x07220000 - 0x0724B000         C:\WINDOWS\System32\msctfime.ime
0x3AF30000 - 0x3AF4B000         C:\WINDOWS\System32\IMEKR70.IME
0x77380000 - 0x77B72000         C:\WINDOWS\system32\SHELL32.dll
0x70A70000 - 0x70AD5000         C:\WINDOWS\system32\SHLWAPI.dll
0x772F0000 - 0x7737B000         C:\WINDOWS\system32\COMCTL32.dll
0x78090000 - 0x78174000         C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
0x76C40000 - 0x76C62000         C:\WINDOWS\system32\imagehlp.dll
0x6D9D0000 - 0x6DA4D000         C:\WINDOWS\system32\DBGHELP.dll
0x77BB0000 - 0x77BB7000         C:\WINDOWS\system32\VERSION.dll
0x76BA0000 - 0x76BAB000         C:\WINDOWS\system32\PSAPI.DLL

Heap at VM Abort:
Heap
def new generation   total 576K, used 415K [0x10010000, 0x100b0000, 0x104f0000)
  eden space 512K,  68% used [0x10010000, 0x10067e30, 0x10090000)
  from space 64K, 100% used [0x10090000, 0x100a0000, 0x100a0000)
  to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation   total 1408K, used 467K [0x104f0000, 0x10650000, 0x14010000)
   the space 1408K,  33% used [0x104f0000, 0x10564c38, 0x10564e00, 0x10650000)
compacting perm gen  total 5120K, used 4999K [0x14010000, 0x14510000, 0x18010000)
   the space 5120K,  97% used [0x14010000, 0x144f1e90, 0x144f2000, 0x14510000)

Local Time = Thu Nov 27 15:52:48 2003
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)
#