Community
Participate
Working Groups
Build Identifier: I20110613-1736 We have a testsuite which performs tests on our toolchain. This involves lots of CDT interaction (creating projects, indexing, debugging, etc.). Sometimes we get a JVM crash, usually when running test suites containing 20+ tests. # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x62874451, pid=6764, tid=8892 # # JRE version: 7.0-b147 # Java VM: Java HotSpot(TM) Client VM (21.0-b17 mixed mode windows-x86 ) # Problematic frame: # V [jvm.dll+0x224451] # # 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 # A bit further down in the crash report I see: Current CompileTask: C1: 42149 4809 org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor::createType (363 bytes) This led me to believe that this was an instance of bug #351234, but since I can reproduce this on a 32-bit 1.7.0-JVM, I'm not so sure. I'm not sure how to create a minimally reproducible example, since the crash only happens under fairly high load. Reproducible: Sometimes
Created attachment 203395 [details] JVM crash log
Additional note: specifying -Xint causes the test suites to run without any crashes, so presumably this is related to the JIT-compiler.
The log indicates that the JIT compiler is crashing, which is not CDT's fault.
You might want to file a bug with Oracle. As a workaround you could try to disable JIT compilation of the affected method: -XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPVisitor,createType
(In reply to comment #4) > You might want to file a bug with Oracle. As a workaround you could try to > disable JIT compilation of the affected method: > > -XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPVisitor,createType This worked, thanks. I will report this to Oracle.