G
Guest
I am writing a managed/unmanaged C++ application which runs on Windows XP and
2003 server without any problem. Under Windows 2003 Server with SP1
the application won't start. I get a System.ExecutionEngineException in
mscorwks.dll before even my main function starts.
Any help appreciated
Joseph
mscorwks.dll:
_KiRaiseUserExceptionDispatcher@0:
push ebp
mov ebp,esp
sub esp,50h
mov dword ptr [esp+0Ch],eax
mov eax,dword ptr fs:[00000018h]
mov eax,dword ptr [eax+000001A4h]
mov dword ptr [esp],eax
mov dword ptr [esp+4],0
mov dword ptr [esp+8],0
mov dword ptr [esp+10h],0
push esp
call 7C94ED67
mov eax,dword ptr [esp]
mov esp,ebp
pop ebp
ret
lea esp,[esp+00000000h]
lea esp,[esp+00000000h]
_KiFastSystemCall@0:
mov edx,esp
sysenter
_KiFastSystemCallRet@0:
=>ret <== Exception!
lea esp,[esp+00000000h]
lea esp,[esp]
_KiIntSystemCall@0:
lea edx,[esp+8]
int 2Eh
ret
Call Stack:
kernel32.dll!_WaitForSingleObjectEx@12() + 0x88
kernel32.dll!_WaitForSingleObject@8() + 0x12
mscorwks.dll!Debugger::BlockAndReleaseTSLIfNecessary() + 0x3e
mscorwks.dll!Debugger::SendException() + 0x196
mscorwks.dll!Debugger::LastChanceManagedException() + 0xb6
mscorwks.dll!FailFast() + 0xb0
mscorwks.dll!ComPlusCoopFrameSEH() + 0x79239f41
Threads:
'hog.exe': Loaded 'C:\hog\hog.exe', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Symbols loaded.
'hog.exe': Loaded 'C:\hog\MFC71.dll', PDB format is obsolete.
'hog.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\msvcp71.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\odbc32.dll', Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.1830_x-ww_1B6F474A\comctl32.dll', Symbols
loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\hog\LicenceReaderDLL.dll', Exports loaded.
'hog.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.1830_x-ww_7AE38CCF\comctl32.dll', Symbols
loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\odbcint.dll', No symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll',
Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll', Symbols
loaded.
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', Symbols loaded.
'hog': Loaded 'c:\hog\hog.exe', Symbols loaded.
'hog.exe': Loaded 'C:\hog\Logger.dll', No symbols loaded.
'hog.exe': Loaded 'c:\hog\logger.dll', No symbols loaded.
First-chance exception at 0x791f260e (mscorwks.dll) in hog.exe: 0xC0000005:
Access violation reading location 0x00000f34.
An unhandled exception of type 'System.ExecutionEngineException' occurred in
Unknown Module.
Net Framework 1.1
The application uses MFC and a few selfmade c# DLLs
2003 server without any problem. Under Windows 2003 Server with SP1
the application won't start. I get a System.ExecutionEngineException in
mscorwks.dll before even my main function starts.
Any help appreciated
Joseph
mscorwks.dll:
_KiRaiseUserExceptionDispatcher@0:
push ebp
mov ebp,esp
sub esp,50h
mov dword ptr [esp+0Ch],eax
mov eax,dword ptr fs:[00000018h]
mov eax,dword ptr [eax+000001A4h]
mov dword ptr [esp],eax
mov dword ptr [esp+4],0
mov dword ptr [esp+8],0
mov dword ptr [esp+10h],0
push esp
call 7C94ED67
mov eax,dword ptr [esp]
mov esp,ebp
pop ebp
ret
lea esp,[esp+00000000h]
lea esp,[esp+00000000h]
_KiFastSystemCall@0:
mov edx,esp
sysenter
_KiFastSystemCallRet@0:
=>ret <== Exception!
lea esp,[esp+00000000h]
lea esp,[esp]
_KiIntSystemCall@0:
lea edx,[esp+8]
int 2Eh
ret
Call Stack:
ntdll.dll!_NtWaitForSingleObject@12() + 0xcntdll.dll!_KiFastSystemCallRet@0()
kernel32.dll!_WaitForSingleObjectEx@12() + 0x88
kernel32.dll!_WaitForSingleObject@8() + 0x12
mscorwks.dll!Debugger::BlockAndReleaseTSLIfNecessary() + 0x3e
mscorwks.dll!Debugger::SendException() + 0x196
mscorwks.dll!Debugger::LastChanceManagedException() + 0xb6
mscorwks.dll!FailFast() + 0xb0
mscorwks.dll!ComPlusCoopFrameSEH() + 0x79239f41
Threads:
3332 <No Name> Normal 0
'hog.exe': Loaded 'C:\hog\hog.exe', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Symbols loaded.
'hog.exe': Loaded 'C:\hog\MFC71.dll', PDB format is obsolete.
'hog.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\msvcp71.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\odbc32.dll', Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.1830_x-ww_1B6F474A\comctl32.dll', Symbols
loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\comdlg32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\shell32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll', Symbols loaded.
'hog.exe': Loaded 'C:\hog\LicenceReaderDLL.dll', Exports loaded.
'hog.exe': Loaded
'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.1830_x-ww_7AE38CCF\comctl32.dll', Symbols
loaded.
'hog.exe': Loaded 'C:\WINDOWS\system32\odbcint.dll', No symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll', Symbols loaded.
'hog.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll',
Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll', Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll', Symbols
loaded.
'DefaultDomain': Loaded
'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols
loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorsn.dll', Symbols loaded.
'hog.exe': Loaded
'C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorjit.dll', Symbols loaded.
'hog': Loaded 'c:\hog\hog.exe', Symbols loaded.
'hog.exe': Loaded 'C:\hog\Logger.dll', No symbols loaded.
'hog.exe': Loaded 'c:\hog\logger.dll', No symbols loaded.
First-chance exception at 0x791f260e (mscorwks.dll) in hog.exe: 0xC0000005:
Access violation reading location 0x00000f34.
An unhandled exception of type 'System.ExecutionEngineException' occurred in
Unknown Module.
Net Framework 1.1
The application uses MFC and a few selfmade c# DLLs