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

2

5

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)
Juggler answered 20/2, 2013 at 11:38 Comment(0)
R
4

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.

Repossess answered 20/2, 2013 at 11:45 Comment(3)
This dump file has an exception of interest stored in it implies an exception was raised. The seg fault is an exception. Do not confuse C++ exceptions with SEH exceptions.Mobocracy
@RemusRusanu I would assume that under windows an access violation is a SEH exception that is system generated, right?Repossess
Yes, my question is, since the exception was raised, what does "first/second chance not available" mean here?Juggler
B
3

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).

Bellyful answered 21/2, 2013 at 8:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.