Re: Frame-based exception handling problem on Server 2008

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.



Relevant Pages

  • Re: Frame-based exception handling problem on Server 2008
    ... appcompt shims to skip exception handlers validation for binaries ... the safe exception handler table has nothing to do with C++. ... Server, as well as on earlier Server versions, so it shouldn't have ...
    (microsoft.public.win32.programmer.kernel)
  • RPC_E_SERVERFAULT exception
    ... I got the following exception when I'm calling a COM method from C#. ... The exception was caught by C# exception handler. ... Exception Message: The server threw an exception. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Backup & Monitoring not working!
    ... Error message in Windows Small Business Server 2003: ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.windows.server.sbs)
  • Re: Sharepoint 2007 - Installation Error - Failed to register SP s
    ... Windows 2000 Server. ... It is a bug with Beta 2 where the database server is running Windows 2000. ... Server I have the following exception: ... RunBehavior runBehavior, String resetOptionsString) ...
    (microsoft.public.sharepoint.portalserver)
  • return from server only works for built-in types
    ... But when I call _r.GetStatisticsthe client fails with the exception shown ... GetStatistics fails when client and server is on different networks. ... Win32 Version: 2.0.50727.832 ...
    (microsoft.public.dotnet.framework.remoting)