English 中文(简体)
关于漏洞细节
原标题:
  • 时间:2009-02-11 04:47:01
  •  标签:

我是一个Java初学者。在运行Java应用程序时,我遇到了下面提到的bug。为什么会出现这个bug?

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (exceptions.cpp:367), pid=2552, tid=2532
#  Error: ExceptionMark destructor expects no pending exceptions
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
# 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 (0x00385800):  JavaThread "main" [_thread_in_vm, id=2532, stack(0x00390000,0x003e0000)]

Stack: [0x00390000,0x003e0000]
[error occurred during error reporting (printing stack bounds), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::Interpreter
v  ~BufferBlob::StubRoutines (1)

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

Java Threads: ( => current thread )
  0x029c6000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2648, stack(0x02c70000,0x02cc0000)]
  0x029b8000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2876, stack(0x02c20000,0x02c70000)]
  0x029b6c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1464, stack(0x02bd0000,0x02c20000)]
  0x029b6000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1248, stack(0x02b80000,0x02bd0000)]
  0x029b1800 JavaThread "Finalizer" daemon [_thread_blocked, id=4084, stack(0x02b30000,0x02b80000)]
  0x029ad400 JavaThread "Reference Handler" daemon [_thread_blocked, id=4068, stack(0x02ae0000,0x02b30000)]
=>0x00385800 JavaThread "main" [_thread_in_vm, id=2532, stack(0x00390000,0x003e0000)]

Other Threads:
  0x029ac000 VMThread [stack: 0x02a90000,0x02ae0000] [id=4064]
  0x029e1400 WatcherThread [stack: 0x02cc0000,0x02d10000] [id=2656]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 960K, used 271K [0x228d0000, 0x229d0000, 0x22db0000)
  eden space 896K,  30% used [0x228d0000, 0x22913ea8, 0x229b0000)
  from space 64K,   0% used [0x229b0000, 0x229b0000, 0x229c0000)
  to   space 64K,   0% used [0x229c0000, 0x229c0000, 0x229d0000)
 tenured generation   total 4096K, used 0K [0x22db0000, 0x231b0000, 0x268d0000)
   the space 4096K,   0% used [0x22db0000, 0x22db0000, 0x22db0200, 0x231b0000)
 compacting perm gen  total 12288K, used 23K [0x268d0000, 0x274d0000, 0x2a8d0000)
   the space 12288K,   0% used [0x268d0000, 0x268d5cd0, 0x268d5e00, 0x274d0000)
    ro space 8192K,  62% used [0x2a8d0000, 0x2add2a60, 0x2add2c00, 0x2b0d0000)
    rw space 12288K,  52% used [0x2b0d0000, 0x2b7186e0, 0x2b718800, 0x2bcd0000)

Dynamic libraries:
0x00400000 - 0x00423000     C:Program FilesJavajre1.6.0_06injavaw.exe
0x77cc0000 - 0x77d75000     C:WINDOWSsystem32
tdll.dll
0x77e60000 - 0x77f50000     C:WINDOWSsystem32kernel32.dll
0x77f50000 - 0x77feb000     C:WINDOWSsystem32ADVAPI32.dll
0x77340000 - 0x773d1000     C:WINDOWSsystem32RPCRT4.dll
0x77d80000 - 0x77e11000     C:WINDOWSsystem32USER32.dll
0x773e0000 - 0x77425000     C:WINDOWSsystem32GDI32.dll
0x7c340000 - 0x7c396000     C:Program FilesJavajre1.6.0_06inmsvcr71.dll
0x6d7c0000 - 0x6da10000     C:Program FilesJavajre1.6.0_06inclientjvm.dll
0x76b40000 - 0x76b6d000     C:WINDOWSsystem32WINMM.dll
0x6d270000 - 0x6d278000     C:Program FilesJavajre1.6.0_06inhpi.dll
0x76bf0000 - 0x76bfb000     C:WINDOWSsystem32PSAPI.DLL
0x6d770000 - 0x6d77c000     C:Program FilesJavajre1.6.0_06inverify.dll
0x6d310000 - 0x6d32f000     C:Program FilesJavajre1.6.0_06injava.dll
0x6d7b0000 - 0x6d7bf000     C:Program FilesJavajre1.6.0_06inzip.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252 
java_command: com.screen.Splash
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:Program FilesJavajdk1.6.0_06in;.;
CLASSPATH=C:Program FilesJavajdk1.6.0_06in;.;
PATH=C:/Program Files/Java/jre1.6.0_07/bin/client;C:/Program Files/Java/jre1.6.0_07/bin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesMicrosoft Visual StudioCommonToolsWinNT;C:Program FilesMicrosoft Visual StudioCommonMSDev98Bin;C:Program FilesMicrosoft Visual StudioCommonTools;C:Program FilesMicrosoft Visual StudioVC98in;C:Program FilesJavajdk1.6.0_06in;.;
USERNAME=sun
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 3, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2, v.2096

CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 8 stepping 3, cmov, cx8, fxsr, mmx, sse

Memory: 4k page, physical 261616k(53616k free), swap 633092k(297116k free)

vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1

time: Tue Feb 10 16:59:05 2009
elapsed time: 0 seconds
问题回答

你也在使用jre1.6.0_07版本 - 但你的classpath和java_home指向的是……(Need more context to complete the translation)

JAVA_HOME=C:Program FilesJavajdk1.6.0_06in;.; CLASSPATH=C:Program FilesJavajdk1.6.0_06in;.;

这些路径的混合可能会给运行时造成一些问题。

我建议卸载所有版本的Java(似乎您有几个版本),并升级到最新版本。然后确保所有变量都指向单个版本。

你是否在IE 7中运行某些网页应用程序?我看过互联网上发布的几个类似的崩溃情况。如果是这样,请尝试使用其他浏览器。

可能的接受方式可以是,

  • Try other browser then IE, if you are running some application under IE
  • Try de-install JRE/JDK, and install a new from the scratch. Choose a released version, not beta. And please don t do it under program files this time, choose a path without spaces. Although, spaces can t be the reason of the crash

这个崩溃不应该再发生了。如果仍然持续发生,请按照错误提示报告。

内部错误应该始终提交给Sun。无论您的代码有多糟糕,这些错误都不应该发生。Sun的提交网页在这里或在这里。

只需确保它尚未报告,并且您可以轻松地重现它。

如果您偶爾或經常遇到這個問題,則可以向sun記錄錯誤。此外,我建議您如果可能的話升級您的JVM版本,因為這是sun首先建議的。





相关问题
热门标签