United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6508889 HotSpot crash in JDK 6, IntelliJ with -Xincgc
JDK-6508889 : HotSpot crash in JDK 6, IntelliJ with -Xincgc

Details
Type:
Bug
Submit Date:
2007-01-02
Status:
Resolved
Updated Date:
2010-12-08
Project Name:
JDK
Resolved Date:
2007-04-24
Component:
hotspot
OS:
windows_xp
Sub-Component:
compiler
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
hs10 (b12)

Related Reports
Backport:
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
I recently experienced excruciatingly bad performance, followed by a HotSpot crash, when I tried executing the IntelliJ Idea product, build 6141, loading (on startup) a moderately large project of mine. I used the following JVM options to start Idea:

-Xincgc
-ea
-agentlib:yjpagent

My computer has 512MB of memory.

Idea is usually rather slow to start up when it needs to load a big project, but this was unusual even so. Windows XP virtually ground to a halt while Idea was trying to load, with CPU usage pegged at around 92%. After this went on for about ten minutes, the Idea window suddenly disappeared, and I found a HotSpot error log in the directory that Idea had tried to start from. The contents of the log are below.

I had previously run Idea on the exact same project, with the exact same configuration except that the JVM options were:

-Xms128m
-Xmx384m
-XX:MaxPermSize=99m
-ea
-agentlib:yjpagent

This seemed to work more or less OK (although the application often paused for long periods of time to do garbage collection). So it appears to me that allowing the JVM to self-configure, and using the -Xincgc option, were what led to the severe slowdown and crash. Attempting to run the program again with the same -Xincgc options as above led to another severe slowdown, although I got impatient waiting at around fifteen minutes and did not continue to see if it would crash again.



THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See above

EXPECTED VERSUS ACTUAL BEHAVIOR :
The JVM should not crash, regardless of what application is being executed.
ERROR MESSAGES/STACK TRACES THAT OCCUR :




REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Don't run in -Xincgc mode.
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81a98a, pid=33112, tid=33828
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x5a98a]
#
# 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 (0x0b111000):  JavaThread "CompilerThread0" daemon [_thread_in_vm, id=33828]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000014

Registers:
EAX=0x61766100, EBX=0x00000000, ECX=0x00000006, EDX=0x00000000
ESP=0x0beaf928, EBP=0x0beafa60, ESI=0x0b0aca00, EDI=0x0b111000
EIP=0x6d81a98a, EFLAGS=0x00010246

  Top of Stack: (sp=0x0beaf928)
0x0beaf928:   0b111000 00000006 00000000 0beafa60
0x0beaf938:   00000000 0dc60f88 6d7ebf33 00000000
0x0beaf948:   0beafa60 000000b6 0000003e 01c88ee0
0x0beaf958:   0dc60b50 0dc60b50 00000000 0dc60fe8
0x0beaf968:   0dc5d060 0df15158 00000000 6d7ed6fb
0x0beaf978:   000000b6 0beafa60 0dc886d0 00000040
0x0beaf988:   00000000 6d812352 0dc5d010 0dc5d060
0x0beaf998:   0dc5ead0 00000000 0df15348 0dc5ea90

Instructions: (pc=0x6d81a98a)
0x6d81a97a:   8b f8 6a 06 57 e8 5c b5 ff ff 8b 46 18 8b 56 20
0x6d81a98a:   8b 4a 14 8b 9f 88 01 00 00 83 c4 08 6a 00 48 50


Stack: [0x0be60000,0x0beb0000),  sp=0x0beaf928,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x5a98a]


Current CompileTask:
C1:2115      java.lang.ThreadLocal$ThreadLocalMap.<init>(Ljava/lang/ThreadLocal$ThreadLocalMap;)V (172 bytes)


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

Java Threads: ( => current thread )
  0x0defac00 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=38704]
  0x0df7c400 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=38400]
  0x0de15400 JavaThread "EditorCaretThread" [_thread_blocked, id=38304]
  0x0c87a000 JavaThread "pool-3-thread-1" [_thread_blocked, id=37188]
  0x0dbf0400 JavaThread "UserActivityMonitor thread" [_thread_blocked, id=36192]
  0x0c8a8c00 JavaThread "/66.245.145.136 IDEtalk Multicast Thread" [_thread_in_native, id=36056]
  0x0c733800 JavaThread "User Monitor Thread" [_thread_blocked, id=36052]
  0x0c669800 JavaThread "XML-RPC Weblistener" [_thread_in_native, id=35940]
  0x0c795800 JavaThread "Network Message Dispatcher" [_thread_blocked, id=35776]
  0x0dcf9800 JavaThread "pool-1-thread-1" [_thread_blocked, id=35156]
  0x0c742800 JavaThread "AlarmThread" [_thread_blocked, id=35556]
  0x0c612800 JavaThread "Error Icon Blinker" [_thread_blocked, id=35068]
  0x0c849800 JavaThread "Fatal Errors Grouper" [_thread_blocked, id=40020]
  0x0c5dc800 JavaThread "TimerQueue" daemon [_thread_blocked, id=35232]
  0x0c678400 JavaThread "Exe4JStartupThread" daemon [_thread_blocked, id=34524]
  0x0c5fd400 JavaThread "StoreRefreshStatusThread" daemon [_thread_blocked, id=32968]
  0x0c4ef800 JavaThread "WatchForChangesThread" [_thread_in_native, id=33280]
  0x0c072800 JavaThread "Progress Cancel Checker" [_thread_blocked, id=32940]
  0x0c773000 JavaThread "XML-RPC Weblistener" [_thread_in_native, id=32136]
  0x0c5c3800 JavaThread "AWT-Shutdown" [_thread_blocked, id=34052]
  0x0b123400 JavaThread "AlarmThread" [_thread_blocked, id=34072]
  0x0c0ab000 JavaThread "AlarmThread" [_thread_blocked, id=34024]
  0x0b0e5800 JavaThread "Timer-0" daemon [_thread_blocked, id=33396]
  0x0c0ac800 JavaThread "SocketListenerThread" [_thread_in_native, id=33392]
  0x0b124400 JavaThread "SocketListenerThread" [_thread_in_native, id=33996]
  0x0b122c00 JavaThread "MessageDeliveryThread" [_thread_blocked, id=34004]
  0x0c094800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=33036]
  0x0c0ae400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=33128]
  0x0c014800 JavaThread "Lock thread" [_thread_in_native, id=34316]
  0x0bf72000 JavaThread "Exe4JStartupThread" daemon [_thread_blocked, id=33976]
  0x0b112c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=33832]
=>0x0b111000 JavaThread "CompilerThread0" daemon [_thread_in_vm, id=33828]
  0x0b110400 JavaThread "YJPAgent-CPUSampler" daemon [_thread_blocked, id=33784]
  0x0b103400 JavaThread "YJPAgent-RequestListener" daemon [_thread_in_native, id=33788]
  0x0b107000 JavaThread "YJPAgent-Telemetry" daemon [_thread_blocked, id=33808]
  0x0b0f3400 JavaThread "Attach Listener" daemon [_thread_blocked, id=33632]
  0x0b0f2400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=33604]
  0x0b0f1400 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=33608]
  0x0b0d5c00 JavaThread "Finalizer" daemon [_thread_blocked, id=33484]
  0x0b0d1400 JavaThread "Reference Handler" daemon [_thread_blocked, id=33476]
  0x00b17400 JavaThread "main" [_thread_blocked, id=33212]

Other Threads:
  0x0b0cc400 VMThread [id=33528]
  0x0b125400 WatcherThread [id=33928]

VM state:synchronizing (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00b16020/0x00000150] Threads_lock - owner thread: 0x0b0cc400
[0x00b161f0/0x00000198] Heap_lock - owner thread: 0x0df7c400

Heap
 def new generation   total 14784K, used 94K [0x02fd0000, 0x03fd0000, 0x03fd0000)
  eden space 13184K,   0% used [0x02fd0000, 0x02fe7830, 0x03cb0000)
  from space 1600K,   0% used [0x03e40000, 0x03e40000, 0x03fd0000)
  to   space 1600K,   0% used [0x03cb0000, 0x03cb0000, 0x03e40000)
 concurrent mark-sweep generation total 49152K, used 27583K [0x03fd0000, 0x06fd0000, 0x06fd0000)
 concurrent-mark-sweep perm gen total 65536K, used 65535K [0x06fd0000, 0x0afd0000, 0x0afd0000)

Dynamic libraries:
0x00400000 - 0x00490000 	C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\idea.exe
0x7c900000 - 0x7c9b0000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 	C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 	C:\WINDOWS\system32\ADVAPI32.DLL
0x77e70000 - 0x77f01000 	C:\WINDOWS\system32\RPCRT4.dll
0x77f10000 - 0x77f57000 	C:\WINDOWS\system32\GDI32.dll
0x77d40000 - 0x77dd0000 	C:\WINDOWS\system32\USER32.dll
0x77c10000 - 0x77c68000 	C:\WINDOWS\system32\msvcrt.dll
0x7c9c0000 - 0x7d1d5000 	C:\WINDOWS\system32\SHELL32.DLL
0x77f60000 - 0x77fd6000 	C:\WINDOWS\system32\SHLWAPI.dll
0x76390000 - 0x763ad000 	C:\WINDOWS\system32\IMM32.DLL
0x773d0000 - 0x774d3000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5d090000 - 0x5d12a000 	C:\WINDOWS\system32\comctl32.dll
0x74720000 - 0x7476b000 	C:\WINDOWS\system32\MSCTF.dll
0x10000000 - 0x1000d000 	C:\WINDOWS\System32\tabhook.dll
0x755c0000 - 0x755ee000 	C:\WINDOWS\system32\msctfime.ime
0x774e0000 - 0x7761d000 	C:\WINDOWS\system32\ole32.dll
0x00ab0000 - 0x00aec000 	C:\Program Files\WinPortrait\WinpHook.dll
0x6d7c0000 - 0x6da07000 	c:\program files\java\jdk1.6.0\jre\bin\client\jvm.dll
0x76b40000 - 0x76b6d000 	C:\WINDOWS\system32\WINMM.dll
0x7c340000 - 0x7c396000 	C:\WINDOWS\system32\MSVCR71.dll
0x77120000 - 0x771ac000 	C:\WINDOWS\system32\OLEAUT32.DLL
0x6d310000 - 0x6d318000 	c:\program files\java\jdk1.6.0\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\system32\PSAPI.DLL
0x00cc0000 - 0x00d5b000 	C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\yjpagent.dll
0x71ab0000 - 0x71ac7000 	C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 	C:\WINDOWS\system32\WS2HELP.dll
0x6d770000 - 0x6d77c000 	c:\program files\java\jdk1.6.0\jre\bin\verify.dll
0x6d3b0000 - 0x6d3cf000 	c:\program files\java\jdk1.6.0\jre\bin\java.dll
0x6d7b0000 - 0x6d7bf000 	c:\program files\java\jdk1.6.0\jre\bin\zip.dll
0x6d570000 - 0x6d583000 	C:\Program Files\Java\jdk1.6.0\jre\bin\net.dll
0x71a50000 - 0x71a8f000 	C:\WINDOWS\system32\mswsock.dll
0x662b0000 - 0x66308000 	C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 	C:\WINDOWS\System32\wshtcpip.dll
0x6d560000 - 0x6d569000 	C:\Program Files\Java\jdk1.6.0\jre\bin\management.dll
0x6d000000 - 0x6d1c3000 	C:\Program Files\Java\jdk1.6.0\jre\bin\awt.dll
0x73000000 - 0x73026000 	C:\WINDOWS\system32\WINSPOOL.DRV
0x73760000 - 0x737a9000 	C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 	C:\WINDOWS\system32\DCIMAN32.dll
0x6d2b0000 - 0x6d303000 	C:\Program Files\Java\jdk1.6.0\jre\bin\fontmanager.dll
0x0c3a0000 - 0x0c3a9000 	C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\focuskiller.dll
0x76f20000 - 0x76f47000 	C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 	C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 	C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000 	C:\WINDOWS\system32\rasadhlp.dll
0x76d60000 - 0x76d79000 	C:\WINDOWS\system32\iphlpapi.dll
0x76d40000 - 0x76d58000 	C:\WINDOWS\system32\MPRAPI.dll
0x77cc0000 - 0x77cf2000 	C:\WINDOWS\system32\ACTIVEDS.dll
0x76e10000 - 0x76e35000 	C:\WINDOWS\system32\adsldpc.dll
0x5b860000 - 0x5b8b4000 	C:\WINDOWS\system32\NETAPI32.dll
0x76b20000 - 0x76b31000 	C:\WINDOWS\system32\ATL.DLL
0x76e80000 - 0x76e8e000 	C:\WINDOWS\system32\rtutils.dll
0x71bf0000 - 0x71c03000 	C:\WINDOWS\system32\SAMLIB.dll
0x77920000 - 0x77a13000 	C:\WINDOWS\system32\SETUPAPI.dll
0x6d3e0000 - 0x6d3e6000 	C:\Program Files\Java\jdk1.6.0\jre\bin\jawt.dll
0x0c2e0000 - 0x0c2ec000 	C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\transparency.dll
0x6d590000 - 0x6d599000 	C:\Program Files\Java\jdk1.6.0\jre\bin\nio.dll
0x00b70000 - 0x00b8f000 	C:\Program Files\JetBrains\IntelliJ IDEA 6.0\bin\FileWatcher2K.dll
0x71b20000 - 0x71b32000 	C:\WINDOWS\system32\MPR.dll
0x77b40000 - 0x77b62000 	C:\WINDOWS\system32\Apphelp.dll
0x6d1f0000 - 0x6d21f000 	C:\Program Files\Java\jdk1.6.0\jre\bin\cmm.dll
0x6d450000 - 0x6d474000 	C:\Program Files\Java\jdk1.6.0\jre\bin\jpeg.dll
0x6d220000 - 0x6d243000 	C:\Program Files\Java\jdk1.6.0\jre\bin\dcpr.dll

VM Arguments:
jvm_args: -Dexe4j.semaphoreName=c:_progra~1_jetbra~1_intell~1.0_bin_idea.exe -Dexe4j.moduleName=c:\progra~1\jetbra~1\intell~1.0\bin\idea.exe -Dexe4j.processCommFile=C:\DOCUME~1\Derek\LOCALS~1\Temp\e4j_p33112.tmp -Dexe4j.tempDir=C:\DOCUME~1\Derek\LOCALS~1\Temp\e4j99.tmp_dir9463 -Xincgc -ea -agentlib:yjpagent -Xbootclasspath/p:../lib/boot.jar -Didea.properties.file=${IDEA_PROPERTIES}
java_command: <unknown>
Launcher Type: generic

Environment Variables:
CLASSPATH=.;C:\Program Files\Java\jre1.6.0\lib\ext\QTJava.zip
PATH=C:\Programs\WinAVR\bin;C:\Programs\WinAVR\utils\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;c:\programs\PICCLITE\BIN
USERNAME=Derek
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 6 Stepping 2, AuthenticAMD



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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 family 6, cmov, cx8, fxsr, mmx, sse, mmxext, 3dnowext, 3dnow

Memory: 4k page, physical 523760k(85044k free), swap 1279976k(763192k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0-b105) for windows-x86, built on Nov 29 2006 00:48:48 by "java_re" with unknown MS VC++:1310








#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d81a98a, pid=33112, tid=33828
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode)
# Problematic frame:
# V  [jvm.dll+0x5a98a]
#
# 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 (0x0b111000):  JavaThread "CompilerThread0" daemon [_thread_in_vm, id=33828]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000014

Registers:
EAX=0x61766100, EBX=0x00000000, ECX=0x00000006, EDX=0x00000000
ESP=0x0beaf928, EBP=0x0beafa60, ESI=0x0b0aca00, EDI=0x0b111000
EIP=0x6d81a98a, EFLAGS=0x00010246

  Top of Stack: (sp=0x0beaf928)
0x0beaf928:   0b111000 00000006 00000000 0beafa60
0x0beaf938:   00000000 0dc60f88 6d7ebf33 00000000
0x0beaf948:   0beafa60 000000b6 0000003e 01c88ee0
0x0beaf958:   0dc60b50 0dc60b50 00000000 0dc60fe8
0x0beaf968:   0dc5d060 0df15158 00000000 6d7ed6fb
0x0beaf978:   000000b6 0beafa60 0dc886d0 00000040
0x0beaf988:   00000000 6d812352 0dc5d010 0dc5d060
0x0beaf998:   0dc5ead0 00000000 0df15348 0dc5ea90

Instructions: (pc=0x6d81a98a)
0x6d81a97a:   8b f8 6a 06 57 e8 5c b5 ff ff 8b 46 18 8b 56 20
0x6d81a98a:   8b 4a 14 8b 9f 88 01 00 00 83 c4 08 6a 00 48 50


Stack: [0x0be60000,0x0beb0000),  sp=0x0beaf928,  free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x5a98a]


Current CompileTask:
C1:2115      java.lang.ThreadLocal$ThreadLocalMap.<init>(Ljava/lang/ThreadLocal$ThreadLocalMap;)V (172 bytes)


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

Java Threads: ( => current thread )
  0x0defac00 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=38704]
  0x0df7c400 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=38400]
  0x0de15400 JavaThread "EditorCaretThread" [_thread_blocked, id=38304]
  0x0c87a000 JavaThread "pool-3-thread-1" [_thread_blocked, id=37188]
  0x0dbf0400 JavaThread "UserActivityMonitor thread" [_thread_blocked, id=36192]
  0x0c8a8c00 JavaThread "/66.245.145.136 IDEtalk Multicast Thread" [_thread_in_native, id=36056]
  0x0c733800 JavaThread "User Monitor Thread" [_thread_blocked, id=36052]
  0x0c669800 JavaThread "XML-RPC Weblistener" [_thread_in_native, id=35940]
  0x0c795800 JavaThread "Network Message Dispatcher" [_thread_blocked, id=35776]
  0x0dcf9800 JavaThread "pool-1-thread-1" [_thread_blocked, id=35156]
  0x0c742800 JavaThread "AlarmThread" [_thread_blocked, id=35556]
  0x0c612800 JavaThread "Error Icon Blinker" [_thread_blocked, id=35068]
  0x0c849800 JavaThread "Fatal Errors Grouper" [_thread_blocked, id=40020]
  0x0c5dc800 JavaThread "TimerQueue" daemon [_thread_blocked, id=35232]
  0x0c678400 JavaThread "Exe4JStartupThread" daemon [_thread_blocked, id=34524]
  0x0c5fd400 JavaThread "StoreRefreshStatusThread" daemon [_thread_blocked, id=32968]
  0x0c4ef800 JavaThread "WatchForChangesThread" [_thread_in_native, id=33280]
  0x0c072800 JavaThread "Progress Cancel Checker" [_thread_blocked, id=32940]
  0x0c773000 JavaThread "XML-RPC Weblistener" [_thread_in_native, id=32136]
  0x0c5c3800 JavaThread "AWT-Shutdown" [_thread_blocked, id=34052]
  0x0b123400 JavaThread "AlarmThread" [_thread_blocked, id=34072]
  0x0c0ab000 JavaThread "AlarmThread" [_thread_blocked, id=34024]
  0x0b0e5800 JavaThread "Timer-0" daemon [_thread_blocked, id=33396]
  0x0c0ac800 JavaThread "SocketListenerThread" [_thread_in_native, id=33392]
  0x0b124400 JavaThread "SocketListenerThread" [_thread_in_native, id=33996]
  0x0b122c00 JavaThread "MessageDeliveryThread" [_thread_blocked, id=34004]
  0x0c094800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=33036]
  0x0c0ae400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=33128]
  0x0c014800 JavaThread "Lock thread" [_thread_in_native, id=34316]
  0x0bf72000 JavaThread "Exe4JStartupThread" daemon [_thread_blocked, id=33976]
  0x0b112c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=33832]
=>0x0b111000 JavaThread "CompilerThread0" daemon [_thread_in_vm, id=33828]
  0x0b110400 JavaThread "YJPAgent-CPUSampler" daemon [_thread_blocked, id=33784]
  0x0b103400 JavaThread "YJPAgent-RequestListener" daemon [_thread_in_native, id=33788]
  0x0b107000 JavaThread "YJPAgent-Telemetry" daemon [_thread_blocked, id=33808]
  0x0b0f3400 JavaThread "Attach Listener" daemon [_thread_blocked, id=33632]
  0x0b0f2400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=33604]
  0x0b0f1400 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=33608]
  0x0b0d5c00 JavaThread "Finalizer" daemon [_thread_blocked, id=33484]
  0x0b0d1400 JavaThread "Reference Handler" daemon [_thread_blocked, id=33476]
  0x00b17400 JavaThread "main" [_thread_blocked, id=33212]

Other Threads:
  0x0b0cc400 VMThread [id=33528]
  0x0b125400 WatcherThread [id=33928]

VM state:synchronizing (normal execution)

VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
[0x00b16020/0x00000150] Threads_lock - owner thread: 0x0b0cc400
[0x00b161f0/0x00000198] Heap_lock - owner thread: 0x0df7c400

Heap
 def new generation   total 14784K, used 94K [0x02fd0000, 0x03fd0000, 0x03fd0000)
  eden space 13184K,   0% used [0x02fd0000, 0x02fe7830, 0x03cb0000)
  from space 1600K,   0% used [0x03e40000, 0x03e40000, 0x03fd0

                                    

Comments
EVALUATION

You used to run with 

    -Xms128m -Xmx384m -XX:MaxPermSize=99m

and then you decided to drop those options and run with just 

    -Xincgc

Doing that causes you to run with the default heap layout, 
with only 64MB in the Java object heap and only 64MB in the 
so-called permanent generation for meta-information about 
loaded classes, etc.  Apparently you need more than 64MB in 
each of those spaces.  (You've also changed from the serial 
mark-sweep-compact collector to the mostly-concurrent mark 
sweep collector, which should give you shorter collection 
pauses, except that you are out of memory.)

In fact, the crash dump reports:

    Heap
     def new generation   total 14784K, used 94K [0x02fd0000, 0x03fd0000, 0x03fd0000)
      eden space 13184K,   0% used [0x02fd0000, 0x02fe7830, 0x03cb0000)
      from space 1600K,   0% used [0x03e40000, 0x03e40000, 0x03fd0000)
      to   space 1600K,   0% used [0x03cb0000, 0x03cb0000, 0x03e40000)
     concurrent mark-sweep generation total 49152K, used 27583K [0x03fd0000, 0x06fd0000, 0x06fd0000)
     concurrent-mark-sweep perm gen total 65536K, used 65535K [0x06fd0000, 0x0afd0000, 0x0afd0000)

where the last line is the likely the first thing that causes 
problems: you are out of space in the permanent generation.  
Even so, we shouldn't crash the VM, so I'll leave this bug in 
place until we figure that out.  But the workaround is probably 
easy: go back to shaping the heap yourself.  If you want to 
try the mostly-concurrent mark-sweep collector to see if you do 
in fact get shorter pauses, you could add 

    -XX:+UseConcMarkSweepGC

to the heap shaping parameters.
                                     
2007-01-04
WORK AROUND

Continue to shape the heap the way you want it, e.g., with 

    -Xms128m -Xmx384m -XX:MaxPermSize=99m

and if you want the mostly-concurrent mark-sweep collector 
to see if it gives you shorter GC pauses, add the 

    -XX:+UseConcMarkSweepGC

option.  You might also want to look at the tuning guides for 
suggestions of heap sizing when using that collector.
                                     
2007-01-04
EVALUATION

After thinking about the code paths a little bit more, I realized that the problem was likely caused by returning the _unloaded_ciinstance_klass in a situation which expected an array class.  This would cause as_array_klass() to return NULL which could cause the base_element_klass to be NULL.  I modified the CIFireOOMAt code to live in the collectedHeap interface so it hit every possible perm allocation and ran specjvm98 with all values between about 20 and 600, which showed this crash plus one other one and a benign assertion failure in C1.
                                     
2007-03-06
SUGGESTED FIX

http://prt-web.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/main/c2_baseline/2007/20070314154356.never.6508889/workspace/webrevs/webrev-2007.03.14/index.html
                                     
2007-03-15



Hardware and Software, Engineered to Work Together