Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why get "first/second chance not available" in the core dump

I use windbg to debug the crash dump, in the following output from the windbg, you can see that "first/second chance not available", Why the first/second chance not available here? what does this mean?

This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(e38.2270): Access violation - code c0000005 (first/second chance not available)
like image 320
user1137890 Avatar asked Feb 20 '13 11:02

user1137890


2 Answers

first/second chance refers to exceptions that can be thrown and the handling mechanism of the debugger that can be utilized. When debugging an application with a debugger, the debugger get's to see the exceptions before the application does, and so get's a first chance at handling them.

A first chance exception is one that is handled by the debuggers first chance mechanism for handling exceptions.

The fact that none is available here most likely means that no exceptions were thrown where this error occurred or that no first chance handling mechanisms are available in the debugger to handle any exception that was thrown.

I would put my bets on the fact that this error has no exceptions being thrown because of it, it's just a seg fault.

like image 191
Tony The Lion Avatar answered Oct 14 '22 16:10

Tony The Lion


According to http://www.dumpanalysis.org/ (first/second chance not available) means that information about whether an exception was first-chance or second-chance is missing in a crash dump file. How to distinguish between 1st and 2nd chances

Demystifying first-chance exceptions (Part 1 , 2).

like image 34
sergmat Avatar answered Oct 14 '22 17:10

sergmat