Re: Frame-based exception handling problem on Server 2008
- From: Corinna Vinschen <corinna@xxxxxxxxxxxxxxxx>
- Date: Sat, 23 Feb 2008 10:37:00 +0000 (UTC)
Ivan Brugiolo [MSFT] wrote:
Vista SP1 and WinSrv2008 are build from the same code, and,
the only SKU difference is the exception validation behavior that
is triggered by the NX boot and CPU options
(among other things: there are specific
appcompt shims to skip exception handlers validation for binaries
known to have issues).
That said, the safe exception handler table has nothing to do with C++.
It's a structure referenced in the debug-directory of the PE, and it is
used for exception handler validation.
Using the MS toolset, if you do
`link -dump -all <binary> | findstr /c:"Safe Exception Handler Table"`
you should see that yourself.
Well, no. The above command prints nothing for my executables.
To debug debug the issue, start from KeUserExceptionDispatcher.
That's the first function you can set a breakpoint on in user mode.
Then, with good symbols, observer the code that walks the frame-handler
list,
and, check if some Rtl*Validate* function is called.
The example code I sent in my reply to Jeffrey (message-id:
<fpmnif$7i4$1@xxxxxxxxxxxxxxx>) is a self-contained testcase. It does
not involve linking against the Cygwin DLL. It shows clearly that the
problem happens *only* on 2008 Server. No other OS has this problem,
regardless of Vista being from the same codebase or not. From my point
of view something is broken specificially in 2008 Server. But your
reply sounds as if this application code has to take the blame.
I'm not fluent in debugging the OS DLLs. I can surely look into this
after I have set up and learned how to use windbg.
OTOH, is there any chance that *you* look into this? After all, you're
obviously much better suited to debug your OS.
Corinna
P.S.: How do I get the symbols for 2008?
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat
.
- Follow-Ups:
- Re: Frame-based exception handling problem on Server 2008
- From: Corinna Vinschen
- Re: Frame-based exception handling problem on Server 2008
- References:
- Frame-based exception handling problem on Server 2008
- From: Corinna Vinschen
- RE: Frame-based exception handling problem on Server 2008
- From: "Jeffrey Tan[MSFT]"
- Re: Frame-based exception handling problem on Server 2008
- From: Corinna Vinschen
- Re: Frame-based exception handling problem on Server 2008
- From: Ivan Brugiolo [MSFT]
- Re: Frame-based exception handling problem on Server 2008
- From: Corinna Vinschen
- Re: Frame-based exception handling problem on Server 2008
- From: Ivan Brugiolo [MSFT]
- Frame-based exception handling problem on Server 2008
- Prev by Date: Re: shared memory, VirtualAlloc, UnmapViewOfFile
- Next by Date: Re: Frame-based exception handling problem on Server 2008
- Previous by thread: Re: Frame-based exception handling problem on Server 2008
- Next by thread: Re: Frame-based exception handling problem on Server 2008
- Index(es):
Relevant Pages
|