.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Sporadic .NET application crash with "Fatal Execution Engine Error"

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :.NET Framework
I have a .NET application that runs for several hours.  It is a multi-threaded app that does some calculations and saves the results to the database.   On one machine in particular, it has been crashing recently with the following exception recorded in the Event Log: .NET Runtime version 2.0.50727.4206 - Fatal Execution Engine Error (6C9D7B6E) (80131506) Faulting application AnalyzerConsole.exe, version, time stamp 0x4c76d28b, faulting module mscorwks.dll, version 2.0.50727.4206, time stamp 0x4bf4c6a7, exception code 0xc0000005, fault offset 0x0011627d, process id 0x%9, application start time 0x%10. Sometimes it runs for hours without crashing, but usually it will crash eventually. I have captured a dump, and this is the call stack: > ntdll.dll!_DbgBreakPoint@0()   mscorwks.dll!WatsonLastChance()  + 0x133 bytes   mscorwks.dll!EEPolicy::LogFatalError()  + 0x23c bytes   mscorwks.dll!EEPolicy::HandleFatalError()  + 0x47 bytes   mscorwks.dll!CLRVectoredExceptionHandlerPhase3()  + 0x10dae2 bytes   mscorwks.dll!CLRVectoredExceptionHandlerPhase2()  + 0x20 bytes   mscorwks.dll!CLRVectoredExceptionHandler()  + 0xb7 bytes   mscorwks.dll!CPFH_RealFirstPassHandler()  + 0x8ac bytes   mscorwks.dll!_COMPlusFrameHandler()  + 0xb9 bytes   ntdll.d

View Complete Post

More Related Resource Links

Visual C++ 6.0: Don't Let Memory Allocation Failures Crash Your Legacy STL Application


Most C++ developers make extensive use of the Standard Template Library (STL) in their code. If you are one of them and are using STL and Visual C++ 6.0 directly out of the box, your application is at high risk of crashing under low memory conditions. The problem arises because checking for failure of operator new is such an uncommon practice. To make things worse, when new does fail, the response is not standard. Some language compilers return NULL while others throw an exception.In addition, if you are using STL in an MFC project, be aware that MFC has its own set of rules. This article discusses these problems, explains how the default behavior has changed in Visual C++ .NET 2003, and outlines the changes you must make if you're using Visual C++ 6.0 so that you can safely use the STL when operator new fails.

James Hebben

MSDN Magazine September 2003

IIS Crash with Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42

The scenario is that, a .Net Webservice is making calls to C++ DLL (made from VC6 studio) This app works perfectly well for sometimes or over a period or for a high volume of hits and suddenly you see IIS crash along with service crash with the following error "Faulting application w3wp.exe, faulting module mscorwks.dll, version 2.0.50727.42" There is no pattern for this problem. The work around is to restart the IIS.    Can anybody tell me what could be the issue here?

.tmp file created after process crash when application upgraded to 2.0

After upgrading an asp.net application to 2.0 from 1.1 I am receiving a large 100+MB .tmp file in C:\Temp on the web server when the w3wp process serving that application crashes. If you open the file it looks like it is some sort of dump file. Any ideas how to turn this off. I know what is crashing the application and process. Any help is appreciated. Thanks

.NET 2.0 application crash with mscorwks!DoJITFailFast



 I have an application running in production which crashes after running for a long time. Analysis on crash dump has the below information on a specific thread that is suspiciou. What is this GS Cookie and buffer overrun? Can anybody help?

0:000> ~27s
eax=ffffffff ebx=00f9d0a0 ecx=77e769aa edx=7c8285ec esi=00f9cf40 edi=00000000
eip=77e42004 esp=00f9cb74 ebp=00f9cea8 iopl=0         nv up ei ng nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000286
77e42004 8bff             mov     edi,edi
0:027> k
ChildEBP RetAddr 
00f9cb70 7a2888bf kernel32!TerminateProcess
00f9cea8 7a0ca47e mscorwks!__report_gsfailure+0x102
00f9ceac 7a122f89 mscorwks!DoJITFailFast+0x5
00f9cebc 79e8d677 mscorwks!CrawlFrame::SetCurGSCookie+0x1c
00f9d0a0 79e8dc07 mscorwks!Thread::StackWalkFramesEx+0xd3
00f9d3d0 79f8d650 mscorwks!Thread::StackWalkFrames+0xb8
00f9d400 79f9338b mscorwks!CNameSpace::GcScanRoots+0x119
00f9d444 79f92cbf mscorwks!WKS::gc_heap::mark_phase+0x93
00f9d468 79f93245 mscorwks!WKS::gc_heap

How to debug application crash with ExceptionCode: c0000409 (Stack buffer overflow)?



I searched many areas (from google to msdn forum) for the last 1.5 months on application crash with ExceptionCode: c0000409 (Stack buffer overflow) but nothing seems similar to what I have. Most of the queries manged to find something wrong with unmanged string management or wrong parameters.

Can someone enlighten me on this application crash?

Program structure:

Application in WPF C#, main body is RichTexBox; Wrapper for unmanged code and event; C++ usb communication.

1 unmanged thread will raise a event (callback) whenever a data comes back from USB or COM communication. The callback is being wrapped and using delegate to sent event to the application. The data is then update to the richtextbox via Dispatcher.BeginInvoke

TextRange tr = new TextRange(rtb.Document.ContentEnd, rtb.Document.ContentEnd);
tr.Text = message;
tr.ApplyPropertyValue(TextElement.ForegroundProperty, Brushes.Red);
tr.ApplyPropertyValue(TextElement.FontWeightProperty, FontWeights.Bold);
rtb.CaretPosition = rtb.CaretPosition.DocumentEnd; //richtextbox caret position to end doc.
srtb.ScrollToBottom(); // Scroll viewer to scroll to bottom

1 managed thread call a

Application crash in exe and not in debug




I have a really strange problem in, my application (on my computer).

When I start my application in debug mode from VB2010, all is fine, but if I launch the exe file manually (from the debug directory) the application crashes and no message is shown.

In the applicatiopn log I have the following error

I have no idea about what I can do and I can't put any messagebox in the program because the crash happens before the InitializeComponent (of the designer).

A few weeks ago, all was fine, but now I have the problem.

Can you please help me ? What should I look for to solve the problem.

My application uses the NET 4 Client profile and I use Windows 7 x64 (all updaters from Windows Update applied).

Thank you


Report 1-----------------------------------------------------------------------------------------------------

Faulting application name: allWin.exe, version:, time stamp: 0x4ced0caf
Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdbdf
Exception code: 0xe0434352
Fault offset: 0x0000b727
Faulting process id: 0xf58
Faulting application start time: 0x01cb8be669f6b117
Faulting application path: D:\SVN\NET2005\allWin.NET\allWin.NET\bin\Debug\allWin.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dl

Application crash caused by mscorwks



I've been trying to debug an issue that crashes my application.

The issue is: faulting module name: mscorwks.dll, version: 2.0.50727.4927, time stamp:0x4a275a68.

The application is a 32-bit VB6 executable and calls some c# (.net 2.0) classes through COM interop.  The c# code makes uses a asynchronous delegates in a few locations.  The crash cannot systematically be reproduced, but will happen from time to time.

I've tried debugging the application with WinDbg but am not getting anywhere.  Some help would be appreciated.

Here's the exception and call stack retrieved while debugging with WinDbg:

(15e8.10d0): Unknown exception - code c000008f (first chance)
(15e8.1258): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000000 ebx=00000000 ecx=116308c0 edx=02000000 esi=0eb0e8c8 edi=0eb0e888
eip=634d08c9 esp=0b02f814 ebp=0b02f820 iopl=0         nv up ei pl zr na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246
634d08c9 f70000000800    test  &n

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Application architecture in asp .net

Application Architecture is the most important process of developing a good application. Some people tends to jump into coding without any architecture laid. Later we see those people changing the architecture and finally the application had to be developed from the scratch with the correct architecture.

In this article I will describe some details about how you can improve the architecture of you application. This article is targeted to the beginner's audience.

Improving Application Performance in .Net

Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application performance in ASP.NET.

Logic behind N -Tier Application Development

In the arena of application development, developers all over the world use various programming languages, technical processes, and technical tools. While using number of technical & non technical elements the processes or methods become complex, for simplification of the application development process, developers use various techniques such as dividing the application architecture into layers or parts. In the professional & technical language this separation or division process is called N-Tier Application Development process, where "N" stands for number and "tire" stands for layers or parts.

How to create 3 tier application using LINQ

As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)

Using Lightbox in an ASP.NET Application

The article describes Lightbox as, "... a simple, unobtrusive script used to overlay images on the current page." It delivers a nice, professional looking method for displaying images as overlays through the use of hyperlinks.

Application Architecture: An N-Tier Approach - Part 1


Free Trial: SQL Backup Pro
Sponsored by Red Gate
Exceptional DBAs make the most of their office hours. That's why they love Red Gate SQL Backup Pro. Its faster, smaller, secure SQL Server backups mean more time spare to accomplish more tasks and professional training. Make time to be an Exceptional DBA. Download it now! »

Free Trial: SQL Toolbelt
Sponsored by Red Gate
The SQL Toolbelt is a set of twelve powerful and intuitive tools that will help you burn through SQL Server chores with astonishing speed and accuracy. Download it now! »

Download: SQL Backup Evaluation Center
Sponsored by Red Gate
Download the T-SQL scripts in the SQL Backup Evaluation Center to compare Red Gate SQL Backup Pro's compressed backups with the size of backups created using native SQL Server. Download it now! »

Autodesk Inventor®
Go Beyond 3D To Digital Prototyping With Autodesk Inventor. Learn How.
Virtualization Solutions
Optimize, Simplify, & Save Today. Learn About Microsoft Solutions.
Microsoft SQL Server® 2008 - Free Trial
Download the Free 180-day Trial of SQL Server® 2008 Enterprise Edition!
Hot Careers in Internet Marketing
Get prepared for your new career with online degrees from Full Sail University!
Microsoft Te
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend