Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ExecutionEngineException occurs during Garbage Collection


Not sure if this is the right fix? We've added this issue to our memory dump diagnostic which can confirm.

↑ Back to the top


Symptoms

An x64 .Net 4 application crashes randomly.

↑ Back to the top


Cause

This bug can be encountered when the Garbage Collector is freeing and compacting memory. The error can happen when the Concurrent Garbage Collection is enabled and a certain combination of foreground Garbage Collection and background Garbage Collection occurs. When this situation happens you will see the same call stack over and over. On the heap you will see one free object and before it ends you will see another free object corrupting the heap.

↑ Back to the top


Resolution

Disable the concurrent GC as explained in the following document:

How to: Disable Concurrent Garbage Collection

↑ Back to the top


Keywords: kb

↑ Back to the top

Article Info
Article ID : 2679415
Revision : 1
Created on : 1/7/2017
Published on : 10/9/2014
Exists online : False
Views : 509