Hello I have an IIS server that is hanging up to 3 times a day. It is
running a third party application called Mailsite Express which is
written in ASP. The output from the debug diag lists some threads that
are most likely the cause (shown below). Can anyone suggest what I
might be able to do to resolve this? I can provide more infor from the
report if required.


Thread 68 - System ID 664
Entry point msvcrt!_endthreadex+2f
Create time 8/05/2007 7:12:21 p.m.
Time spent in user mode 0 Days 0:0:0.31
Time spent in kernel mode 0 Days 0:0:0.609


This thread is processing a client request and is/are not fully
resolved. Further analysis of these threads is recommended in order to
determine what may be blocking the request(s).

Function Source
ntdll!KiFastSystemCallRet
ntdll!ZwCreateFile+c
kernel32!CreateFileW+377
kernel32!CreateFileA+30
MailUtil!CFileSystem::CreateFileA+20c
MFldrMgr!CMailMessage::GetFlags+1407
MFldrMgr!CMailMessage::GetFlags+c6e
MFldrMgr!CMailMessage::GetFlags+1671
MFldrMgr!CMailMessage::GetFlags+1619
MFldrMgr!CMailMessage::GetFlags+ee0
MFldrMgr!CMessageInMessageStore::LoadMessageStructure+1ab0
MFldrMgr!CMessageInMessageStore::LoadMessageStructure+d71
MFldrMgr!CDependancy<CMailServer>::Term+a794
MFldrMgr!IsValidMailFolderHandle+110
MFldrMgr!GetSortedMessageListXml+e9
MsCom!DllUnregisterServer+80bd
MsCom!DllUnregisterServer+7f59
oleaut32!DispCallFunc+16a
oleaut32!CTypeInfo2::Invoke+234
MsCom!CUtf8String::operator=+23d2
MsCom!CDependancy<CMailServer>::Term+292
vbscript!CatchIDispatchInvoke+46
vbscript!IDispatchInvoke2+af
vbscript!IDispatchInvoke+59
vbscript!InvokeDispatch+13a
vbscript!InvokeByName+42
vbscript!CScriptRuntime::Run+2581
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+20ce
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+1f02
vbscript!CScriptEntryPoint::Call+5c
vbscript!CSession::Execute+b4
vbscript!COleScript::ExecutePendingScripts+13e
vbscript!COleScript::SetScriptState+150
asp!CActiveScriptEngine::TryCall+19
asp!CActiveScriptEngine::Call+31
asp!CallScriptFunctionOfEngine+5b
asp!ExecuteRequest+17e
asp!Execute+249
asp!CHitObj::ViperAsyncCallback+3e8
asp!CViperAsyncRequest::OnCall+92
comsvcs!CSTAActivityWork::STAActivityWorkHelper+32
ole32!EnterForCallback+c4
ole32!SwitchForCallback+1a3
ole32!PerformCallback+54
ole32!CObjectContext::InternalContextCallback+159
ole32!CObjectContext::DoCallback+1c
comsvcs!CSTAActivityWork::DoWork+12d
comsvcs!CSTAThread::DoWork+18
comsvcs!CSTAThread::ProcessQueueWork+37
comsvcs!CSTAThread::WorkerLoop+17c
msvcrt!_endthreadex+a3
kernel32!BaseThreadStart+34


ASP request executing on thread 68
POST request for /express/imap4.asp
Request alive for 0 day(s) 00:00:08
QueryString
Request mapped to E:\Program Files\MailSite\Express\Web\imap4.asp
ASP Application /LM/W3SVC/1/root/Express
ASP Template E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP


Script call stack for thread 68

Function Scope Line Of Code Source File Line Number
GetXMLEnvelopes strXMLEnvelopes =
objEnvelopes.GetEnvelopesInXML(intFirst, intLast) E:\PROGRAM FILES
\MAILSITE\EXPRESS\WEB\IMAP4PROCLIB.ASP 1
ShowMessageList Set objXMLEnvelopes = GetXMLEnvelopes(objFolder, 1,
intMessageCount, mspSortBy, mspSortorder) E:\PROGRAM FILES\MAILSITE
\EXPRESS\WEB\IMAP4.ASP 40
Global Scope ShowMessageList Request.QueryString("Folder"),
Request.QueryString("index"), Request.QueryString("extid") E:
\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP 40


Back to Top


Thread 69 - System ID 4116
Entry point msvcrt!_endthreadex+2f
Create time 8/05/2007 7:12:23 p.m.
Time spent in user mode 0 Days 0:0:0.109
Time spent in kernel mode 0 Days 0:0:0.312


This thread is processing a client request and is/are not fully
resolved. Further analysis of these threads is recommended in order to
determine what may be blocking the request(s).

Function Source
ntdll!KiFastSystemCallRet
ntdll!ZwCreateFile+c
kernel32!CreateFileW+377
kernel32!CreateFileA+30
MailUtil!CFileSystem::CreateFileA+20c
MFldrMgr!CMailMessage::GetFlags+1407
MFldrMgr!CMailMessage::GetFlags+c6e
MFldrMgr!CMailMessage::GetFlags+1671
MFldrMgr!CMailMessage::GetFlags+f8e
MFldrMgr!CMessageInMessageStore::LoadMessageStructure+1c62
MFldrMgr!CMessageInMessageStore::LoadMessageStructure+d71
MFldrMgr!CDependancy<CMailServer>::Term+a794
MFldrMgr!IsValidMailFolderHandle+110
MFldrMgr!GetSortedMessageListXml+e9
MsCom!DllUnregisterServer+80bd
MsCom!DllUnregisterServer+7f59
oleaut32!DispCallFunc+16a
oleaut32!CTypeInfo2::Invoke+234
MsCom!CUtf8String::operator=+23d2
MsCom!CDependancy<CMailServer>::Term+292
vbscript!CatchIDispatchInvoke+46
vbscript!IDispatchInvoke2+af
vbscript!IDispatchInvoke+59
vbscript!InvokeDispatch+13a
vbscript!InvokeByName+42
vbscript!CScriptRuntime::Run+2581
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+20ce
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+1f02
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+1f02
vbscript!CScriptEntryPoint::Call+5c
vbscript!CSession::Execute+b4
vbscript!COleScript::ExecutePendingScripts+13e
vbscript!COleScript::SetScriptState+150
asp!CActiveScriptEngine::TryCall+19
asp!CActiveScriptEngine::Call+31
asp!CallScriptFunctionOfEngine+5b
asp!ExecuteRequest+17e
asp!Execute+249
asp!CHitObj::ViperAsyncCallback+3e8
asp!CViperAsyncRequest::OnCall+92
comsvcs!CSTAActivityWork::STAActivityWorkHelper+32
ole32!EnterForCallback+c4
ole32!SwitchForCallback+1a3
ole32!PerformCallback+54
ole32!CObjectContext::InternalContextCallback+159
ole32!CObjectContext::DoCallback+1c
comsvcs!CSTAActivityWork::DoWork+12d
comsvcs!CSTAThread::DoWork+18
comsvcs!CSTAThread::ProcessQueueWork+37
comsvcs!CSTAThread::WorkerLoop+17c
msvcrt!_endthreadex+a3
kernel32!BaseThreadStart+34


ASP request executing on thread 69
POST request for /express/smtp.asp
Request alive for 0 day(s) 00:00:07
QueryString
Request mapped to E:\Program Files\MailSite\Express\Web\smtp.asp
ASP Application /LM/W3SVC/1/root/Express
ASP Template E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\SMTP.ASP


Script call stack for thread 69

Function Scope Line Of Code Source File Line Number
GetXMLEnvelopes strXMLEnvelopes =
objEnvelopes.GetEnvelopesInXML(intFirst, intLast) E:\PROGRAM FILES
\MAILSITE\EXPRESS\WEB\IMAP4PROCLIB.ASP 1
ShowForm Set objXMLEnvelopes = GetXMLEnvelopes(objFolder, 1,
intMessageCount, "Subject", 0) E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB
\SMTP.ASP 73
SendMail ShowForm "", "", "", "", "", "", "", "", "", "", "", "",
"", False, "", "" E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\SMTP.ASP
73
Global Scope SendMail Request.Form("txtTo"),
Request.Form("txtSubject"), Request.Form("txtCC"),
Request.Form("txtBCC"), Request.Form("txtAttach"),
Request.Form("txtBody"), Request.Form("optHtml"),
Request.Form("selPriority"), Request.Form("chkReturnRecipt"),
Request.Form("chkSignature"), Request.Form("chkOutBox"),
Request.Form("txtURL"), Request.Form("txtHasAttach"),
Request.Form("selPersonality"), Request.Form E:\PROGRAM FILES
\MAILSITE\EXPRESS\WEB\SMTP.ASP 73


Back to Top


Thread 70 - System ID 4208
Entry point msvcr80!_threadstart
Create time 8/05/2007 7:12:25 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


This thread is waiting on data to be returned from another server via
WinSock.

The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba

Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForSingleObject+c
mswsock!SockWaitForSingleObject+19d
mswsock!WSPRecv+203
ws2_32!recv+83
MsRemote!InitiateRetryRemote+3dba
MsRemote!InitiateRetryRemote+3c5d
MailUtil!Ordinal151+408
MailUtil!Ordinal151+85c
msvcr80!_callthreadstart+1b
msvcr80!_threadstart+5a
kernel32!BaseThreadStart+34


Back to Top


Thread 71 - System ID 5228
Entry point msvcrt!_endthreadex+2f
Create time 8/05/2007 7:12:26 p.m.
Time spent in user mode 0 Days 0:0:0.46
Time spent in kernel mode 0 Days 0:0:0.203


Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForMultipleObjects+c
kernel32!WaitForMultipleObjectsEx+11a
user32!RealMsgWaitForMultipleObjectsEx+141
user32!MsgWaitForMultipleObjects+1f
comsvcs!CSTAThread::WorkerLoop+1e5
msvcrt!_endthreadex+a3
kernel32!BaseThreadStart+34


Back to Top


Thread 72 - System ID 4236
Entry point msvcrt!_endthreadex+2f
Create time 8/05/2007 7:12:28 p.m.
Time spent in user mode 0 Days 0:0:0.46
Time spent in kernel mode 0 Days 0:0:0.31


This thread is processing a client request and is/are not fully
resolved. Further analysis of these threads is recommended in order to
determine what may be blocking the request(s).

Function Source
ntdll!KiFastSystemCallRet
ntdll!ZwCreateFile+c
kernel32!CreateFileW+377
kernel32!CreateFileA+30
MailUtil!CFileSystem::CreateFileA+20c
MFldrMgr!CDependancy<CMailServer>::Term+66de
MFldrMgr!CDependancy<CMailServer>::Term+137c
MFldrMgr!CDependancy<CMailServer>::Term+88b3
MFldrMgr!CDependancy<CMailServer>::Term+cf61
MFldrMgr!LockMailFolder+7c
MsCom!CMlbxMgrDependancy::operator=+7b3
MsCom!CMlbxMgrDependancy::operator=+51a
oleaut32!DispCallFunc+16a
oleaut32!CTypeInfo2::Invoke+234
MsCom!CUtf8String::operator=+23d2
MsCom!CDependancy<CMailServer>::Term+10e2
vbscript!CatchIDispatchInvoke+46
vbscript!IDispatchInvoke2+af
vbscript!IDispatchInvoke+59
vbscript!InvokeDispatch+13a
vbscript!InvokeByName+42
vbscript!CScriptRuntime::Run+1331
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+1f02
vbscript!CScriptEntryPoint::Call+5c
vbscript!CScriptRuntime::Run+1f02
vbscript!CScriptEntryPoint::Call+5c
vbscript!CSession::Execute+b4
vbscript!COleScript::ExecutePendingScripts+13e
vbscript!COleScript::SetScriptState+150
asp!CActiveScriptEngine::TryCall+19
asp!CActiveScriptEngine::Call+31
asp!CallScriptFunctionOfEngine+5b
asp!ExecuteRequest+17e
asp!Execute+249
asp!CHitObj::ViperAsyncCallback+3e8
asp!CViperAsyncRequest::OnCall+92
comsvcs!CSTAActivityWork::STAActivityWorkHelper+32
ole32!EnterForCallback+c4
ole32!SwitchForCallback+1a3
ole32!PerformCallback+54
ole32!CObjectContext::InternalContextCallback+159
ole32!CObjectContext::DoCallback+1c
comsvcs!CSTAActivityWork::DoWork+12d
comsvcs!CSTAThread::DoWork+18
comsvcs!CSTAThread::ProcessQueueWork+37
comsvcs!CSTAThread::WorkerLoop+17c
msvcrt!_endthreadex+a3
kernel32!BaseThreadStart+34


ASP request executing on thread 72
GET request for /express/imap4.asp
Request alive for 0 day(s) 00:00:04
QueryString action=showmessage&folder=INBOX&msgid=554075181
Request mapped to E:\Program Files\MailSite\Express\Web\imap4.asp
ASP Application /LM/W3SVC/1/root/Express
ASP Template E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP


Script call stack for thread 72

Function Scope Line Of Code Source File Line Number
DisplayGroupsDropDown intMessageCount = objFolder.MessageCount E:
\PROGRAM FILES\MAILSITE\EXPRESS\WEB\CLEANHTML.ASP 3
ShowMessage Call DisplayGroupsDropDown("",
"javascript:document.Address.selGroup.value = this.value") E:
\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP 40
Global Scope ShowMessage Request.QueryString("Folder"),
Request.QueryString("msgid"), Request.QueryString("filename") E:
\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP 40


Back to Top


Thread 73 - System ID 1364
Entry point msvcrt!_endthreadex+2f
Create time 8/05/2007 7:12:28 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForMultipleObjects+c
kernel32!WaitForMultipleObjectsEx+11a
user32!RealMsgWaitForMultipleObjectsEx+141
user32!MsgWaitForMultipleObjects+1f
comsvcs!CSTAThread::WorkerLoop+1e5
msvcrt!_endthreadex+a3
kernel32!BaseThreadStart+34


Back to Top


Thread 74 - System ID 4720
Entry point msvcr80!_threadstart
Create time 8/05/2007 7:12:29 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


This thread is waiting on data to be returned from another server via
WinSock.

The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba

Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForSingleObject+c
mswsock!SockWaitForSingleObject+3a
mswsock!WSPRecv+203
ws2_32!recv+83
MsRemote!InitiateRetryRemote+3dba
MsRemote!InitiateRetryRemote+3c5d
MailUtil!Ordinal151+408
MailUtil!Ordinal151+85c
msvcr80!_callthreadstart+1b
msvcr80!_threadstart+5a
kernel32!BaseThreadStart+34


Back to Top


Thread 75 - System ID 3140
Entry point msimap4!DllUnregisterServer+134fd
Create time 8/05/2007 7:12:29 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


This thread is waiting on data to be returned from another server via
WinSock.

The call to WinSock originated from msimap4!DllUnregisterServer+1a6db

Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForSingleObject+c
mswsock!SockWaitForSingleObject+3a
mswsock!WSPSelect+380
ws2_32!select+b9
msimap4!DllUnregisterServer+1a6db
kernel32!BaseThreadStart+34


Back to Top


Thread 76 - System ID 5696
Entry point msimap4!DllUnregisterServer+134fd
Create time 8/05/2007 7:12:30 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


This thread is waiting on data to be returned from another server via
WinSock.

The call to WinSock originated from msimap4!DllUnregisterServer+1a6db

Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForSingleObject+c
mswsock!SockWaitForSingleObject+3a
mswsock!WSPSelect+380
ws2_32!select+b9
msimap4!DllUnregisterServer+1a6db
kernel32!BaseThreadStart+34


Back to Top


Thread 77 - System ID 6104
Entry point msvcr80!_threadstart
Create time 8/05/2007 7:12:30 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


This thread is waiting on data to be returned from another server via
WinSock.

The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba

Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForSingleObject+c
mswsock!SockWaitForSingleObject+3a
mswsock!WSPRecv+203
ws2_32!recv+83
MsRemote!InitiateRetryRemote+3dba
MsRemote!InitiateRetryRemote+3c5d
MailUtil!Ordinal151+408
MailUtil!Ordinal151+85c
msvcr80!_callthreadstart+1b
msvcr80!_threadstart+5a
kernel32!BaseThreadStart+34


Back to Top


Thread 78 - System ID 5732
Entry point msvcr80!_threadstart
Create time 8/05/2007 7:12:30 p.m.
Time spent in user mode 0 Days 0:0:0.0
Time spent in kernel mode 0 Days 0:0:0.0


This thread is waiting on data to be returned from another server via
WinSock.

The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba

Function Source
ntdll!KiFastSystemCallRet
ntdll!NtWaitForSingleObject+c
mswsock!SockWaitForSingleObject+3a
mswsock!WSPRecv+203
ws2_32!recv+83
MsRemote!InitiateRetryRemote+3dba
MsRemote!InitiateRetryRemote+3c5d
MailUtil!Ordinal151+408
MailUtil!Ordinal151+85c
msvcr80!_callthreadstart+1b
msvcr80!_threadstart+5a
kernel32!BaseThreadStart+34

Re: DebugDiag output - please help to interpret by David

David
Tue May 08 22:19:54 CDT 2007

Your report snippet does not indicate anything wrong. Either the issue
is elsewhere in the report, or you did not have DebugDiag analyze the
process that is "hanging".

Just to set expectations -- it is most likely that the "IIS hang" is
caused by Mailsite Express, at which point the proper thing for you to
do is to contact support personel for Mailsite Express to debug your
issue.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//





On May 8, 1:21 pm, bruce.parr...@vuw.ac.nz wrote:
> Hello I have an IIS server that is hanging up to 3 times a day. It is
> running a third party application called Mailsite Express which is
> written in ASP. The output from the debug diag lists some threads that
> are most likely the cause (shown below). Can anyone suggest what I
> might be able to do to resolve this? I can provide more infor from the
> report if required.
>
> Thread 68 - System ID 664
> Entry point msvcrt!_endthreadex+2f
> Create time 8/05/2007 7:12:21 p.m.
> Time spent in user mode 0 Days 0:0:0.31
> Time spent in kernel mode 0 Days 0:0:0.609
>
> This thread is processing a client request and is/are not fully
> resolved. Further analysis of these threads is recommended in order to
> determine what may be blocking the request(s).
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!ZwCreateFile+c
> kernel32!CreateFileW+377
> kernel32!CreateFileA+30
> MailUtil!CFileSystem::CreateFileA+20c
> MFldrMgr!CMailMessage::GetFlags+1407
> MFldrMgr!CMailMessage::GetFlags+c6e
> MFldrMgr!CMailMessage::GetFlags+1671
> MFldrMgr!CMailMessage::GetFlags+1619
> MFldrMgr!CMailMessage::GetFlags+ee0
> MFldrMgr!CMessageInMessageStore::LoadMessageStructure+1ab0
> MFldrMgr!CMessageInMessageStore::LoadMessageStructure+d71
> MFldrMgr!CDependancy<CMailServer>::Term+a794
> MFldrMgr!IsValidMailFolderHandle+110
> MFldrMgr!GetSortedMessageListXml+e9
> MsCom!DllUnregisterServer+80bd
> MsCom!DllUnregisterServer+7f59
> oleaut32!DispCallFunc+16a
> oleaut32!CTypeInfo2::Invoke+234
> MsCom!CUtf8String::operator=+23d2
> MsCom!CDependancy<CMailServer>::Term+292
> vbscript!CatchIDispatchInvoke+46
> vbscript!IDispatchInvoke2+af
> vbscript!IDispatchInvoke+59
> vbscript!InvokeDispatch+13a
> vbscript!InvokeByName+42
> vbscript!CScriptRuntime::Run+2581
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+20ce
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+1f02
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CSession::Execute+b4
> vbscript!COleScript::ExecutePendingScripts+13e
> vbscript!COleScript::SetScriptState+150
> asp!CActiveScriptEngine::TryCall+19
> asp!CActiveScriptEngine::Call+31
> asp!CallScriptFunctionOfEngine+5b
> asp!ExecuteRequest+17e
> asp!Execute+249
> asp!CHitObj::ViperAsyncCallback+3e8
> asp!CViperAsyncRequest::OnCall+92
> comsvcs!CSTAActivityWork::STAActivityWorkHelper+32
> ole32!EnterForCallback+c4
> ole32!SwitchForCallback+1a3
> ole32!PerformCallback+54
> ole32!CObjectContext::InternalContextCallback+159
> ole32!CObjectContext::DoCallback+1c
> comsvcs!CSTAActivityWork::DoWork+12d
> comsvcs!CSTAThread::DoWork+18
> comsvcs!CSTAThread::ProcessQueueWork+37
> comsvcs!CSTAThread::WorkerLoop+17c
> msvcrt!_endthreadex+a3
> kernel32!BaseThreadStart+34
>
> ASP request executing on thread 68
> POST request for /express/imap4.asp
> Request alive for 0 day(s) 00:00:08
> QueryString
> Request mapped to E:\Program Files\MailSite\Express\Web\imap4.asp
> ASP Application /LM/W3SVC/1/root/Express
> ASP Template E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP
>
> Script call stack for thread 68
>
> Function Scope Line Of Code Source File Line Number
> GetXMLEnvelopes strXMLEnvelopes =
> objEnvelopes.GetEnvelopesInXML(intFirst, intLast) E:\PROGRAM FILES
> \MAILSITE\EXPRESS\WEB\IMAP4PROCLIB.ASP 1
> ShowMessageList Set objXMLEnvelopes = GetXMLEnvelopes(objFolder, 1,
> intMessageCount, mspSortBy, mspSortorder) E:\PROGRAM FILES\MAILSITE
> \EXPRESS\WEB\IMAP4.ASP 40
> Global Scope ShowMessageList Request.QueryString("Folder"),
> Request.QueryString("index"), Request.QueryString("extid") E:
> \PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP 40
>
> Back to Top
>
> Thread 69 - System ID 4116
> Entry point msvcrt!_endthreadex+2f
> Create time 8/05/2007 7:12:23 p.m.
> Time spent in user mode 0 Days 0:0:0.109
> Time spent in kernel mode 0 Days 0:0:0.312
>
> This thread is processing a client request and is/are not fully
> resolved. Further analysis of these threads is recommended in order to
> determine what may be blocking the request(s).
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!ZwCreateFile+c
> kernel32!CreateFileW+377
> kernel32!CreateFileA+30
> MailUtil!CFileSystem::CreateFileA+20c
> MFldrMgr!CMailMessage::GetFlags+1407
> MFldrMgr!CMailMessage::GetFlags+c6e
> MFldrMgr!CMailMessage::GetFlags+1671
> MFldrMgr!CMailMessage::GetFlags+f8e
> MFldrMgr!CMessageInMessageStore::LoadMessageStructure+1c62
> MFldrMgr!CMessageInMessageStore::LoadMessageStructure+d71
> MFldrMgr!CDependancy<CMailServer>::Term+a794
> MFldrMgr!IsValidMailFolderHandle+110
> MFldrMgr!GetSortedMessageListXml+e9
> MsCom!DllUnregisterServer+80bd
> MsCom!DllUnregisterServer+7f59
> oleaut32!DispCallFunc+16a
> oleaut32!CTypeInfo2::Invoke+234
> MsCom!CUtf8String::operator=+23d2
> MsCom!CDependancy<CMailServer>::Term+292
> vbscript!CatchIDispatchInvoke+46
> vbscript!IDispatchInvoke2+af
> vbscript!IDispatchInvoke+59
> vbscript!InvokeDispatch+13a
> vbscript!InvokeByName+42
> vbscript!CScriptRuntime::Run+2581
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+20ce
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+1f02
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+1f02
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CSession::Execute+b4
> vbscript!COleScript::ExecutePendingScripts+13e
> vbscript!COleScript::SetScriptState+150
> asp!CActiveScriptEngine::TryCall+19
> asp!CActiveScriptEngine::Call+31
> asp!CallScriptFunctionOfEngine+5b
> asp!ExecuteRequest+17e
> asp!Execute+249
> asp!CHitObj::ViperAsyncCallback+3e8
> asp!CViperAsyncRequest::OnCall+92
> comsvcs!CSTAActivityWork::STAActivityWorkHelper+32
> ole32!EnterForCallback+c4
> ole32!SwitchForCallback+1a3
> ole32!PerformCallback+54
> ole32!CObjectContext::InternalContextCallback+159
> ole32!CObjectContext::DoCallback+1c
> comsvcs!CSTAActivityWork::DoWork+12d
> comsvcs!CSTAThread::DoWork+18
> comsvcs!CSTAThread::ProcessQueueWork+37
> comsvcs!CSTAThread::WorkerLoop+17c
> msvcrt!_endthreadex+a3
> kernel32!BaseThreadStart+34
>
> ASP request executing on thread 69
> POST request for /express/smtp.asp
> Request alive for 0 day(s) 00:00:07
> QueryString
> Request mapped to E:\Program Files\MailSite\Express\Web\smtp.asp
> ASP Application /LM/W3SVC/1/root/Express
> ASP Template E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\SMTP.ASP
>
> Script call stack for thread 69
>
> Function Scope Line Of Code Source File Line Number
> GetXMLEnvelopes strXMLEnvelopes =
> objEnvelopes.GetEnvelopesInXML(intFirst, intLast) E:\PROGRAM FILES
> \MAILSITE\EXPRESS\WEB\IMAP4PROCLIB.ASP 1
> ShowForm Set objXMLEnvelopes = GetXMLEnvelopes(objFolder, 1,
> intMessageCount, "Subject", 0) E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB
> \SMTP.ASP 73
> SendMail ShowForm "", "", "", "", "", "", "", "", "", "", "", "",
> "", False, "", "" E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\SMTP.ASP
> 73
> Global Scope SendMail Request.Form("txtTo"),
> Request.Form("txtSubject"), Request.Form("txtCC"),
> Request.Form("txtBCC"), Request.Form("txtAttach"),
> Request.Form("txtBody"), Request.Form("optHtml"),
> Request.Form("selPriority"), Request.Form("chkReturnRecipt"),
> Request.Form("chkSignature"), Request.Form("chkOutBox"),
> Request.Form("txtURL"), Request.Form("txtHasAttach"),
> Request.Form("selPersonality"), Request.Form E:\PROGRAM FILES
> \MAILSITE\EXPRESS\WEB\SMTP.ASP 73
>
> Back to Top
>
> Thread 70 - System ID 4208
> Entry point msvcr80!_threadstart
> Create time 8/05/2007 7:12:25 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> This thread is waiting on data to be returned from another server via
> WinSock.
>
> The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForSingleObject+c
> mswsock!SockWaitForSingleObject+19d
> mswsock!WSPRecv+203
> ws2_32!recv+83
> MsRemote!InitiateRetryRemote+3dba
> MsRemote!InitiateRetryRemote+3c5d
> MailUtil!Ordinal151+408
> MailUtil!Ordinal151+85c
> msvcr80!_callthreadstart+1b
> msvcr80!_threadstart+5a
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 71 - System ID 5228
> Entry point msvcrt!_endthreadex+2f
> Create time 8/05/2007 7:12:26 p.m.
> Time spent in user mode 0 Days 0:0:0.46
> Time spent in kernel mode 0 Days 0:0:0.203
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForMultipleObjects+c
> kernel32!WaitForMultipleObjectsEx+11a
> user32!RealMsgWaitForMultipleObjectsEx+141
> user32!MsgWaitForMultipleObjects+1f
> comsvcs!CSTAThread::WorkerLoop+1e5
> msvcrt!_endthreadex+a3
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 72 - System ID 4236
> Entry point msvcrt!_endthreadex+2f
> Create time 8/05/2007 7:12:28 p.m.
> Time spent in user mode 0 Days 0:0:0.46
> Time spent in kernel mode 0 Days 0:0:0.31
>
> This thread is processing a client request and is/are not fully
> resolved. Further analysis of these threads is recommended in order to
> determine what may be blocking the request(s).
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!ZwCreateFile+c
> kernel32!CreateFileW+377
> kernel32!CreateFileA+30
> MailUtil!CFileSystem::CreateFileA+20c
> MFldrMgr!CDependancy<CMailServer>::Term+66de
> MFldrMgr!CDependancy<CMailServer>::Term+137c
> MFldrMgr!CDependancy<CMailServer>::Term+88b3
> MFldrMgr!CDependancy<CMailServer>::Term+cf61
> MFldrMgr!LockMailFolder+7c
> MsCom!CMlbxMgrDependancy::operator=+7b3
> MsCom!CMlbxMgrDependancy::operator=+51a
> oleaut32!DispCallFunc+16a
> oleaut32!CTypeInfo2::Invoke+234
> MsCom!CUtf8String::operator=+23d2
> MsCom!CDependancy<CMailServer>::Term+10e2
> vbscript!CatchIDispatchInvoke+46
> vbscript!IDispatchInvoke2+af
> vbscript!IDispatchInvoke+59
> vbscript!InvokeDispatch+13a
> vbscript!InvokeByName+42
> vbscript!CScriptRuntime::Run+1331
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+1f02
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CScriptRuntime::Run+1f02
> vbscript!CScriptEntryPoint::Call+5c
> vbscript!CSession::Execute+b4
> vbscript!COleScript::ExecutePendingScripts+13e
> vbscript!COleScript::SetScriptState+150
> asp!CActiveScriptEngine::TryCall+19
> asp!CActiveScriptEngine::Call+31
> asp!CallScriptFunctionOfEngine+5b
> asp!ExecuteRequest+17e
> asp!Execute+249
> asp!CHitObj::ViperAsyncCallback+3e8
> asp!CViperAsyncRequest::OnCall+92
> comsvcs!CSTAActivityWork::STAActivityWorkHelper+32
> ole32!EnterForCallback+c4
> ole32!SwitchForCallback+1a3
> ole32!PerformCallback+54
> ole32!CObjectContext::InternalContextCallback+159
> ole32!CObjectContext::DoCallback+1c
> comsvcs!CSTAActivityWork::DoWork+12d
> comsvcs!CSTAThread::DoWork+18
> comsvcs!CSTAThread::ProcessQueueWork+37
> comsvcs!CSTAThread::WorkerLoop+17c
> msvcrt!_endthreadex+a3
> kernel32!BaseThreadStart+34
>
> ASP request executing on thread 72
> GET request for /express/imap4.asp
> Request alive for 0 day(s) 00:00:04
> QueryString action=showmessage&folder=INBOX&msgid=554075181
> Request mapped to E:\Program Files\MailSite\Express\Web\imap4.asp
> ASP Application /LM/W3SVC/1/root/Express
> ASP Template E:\PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP
>
> Script call stack for thread 72
>
> Function Scope Line Of Code Source File Line Number
> DisplayGroupsDropDown intMessageCount = objFolder.MessageCount E:
> \PROGRAM FILES\MAILSITE\EXPRESS\WEB\CLEANHTML.ASP 3
> ShowMessage Call DisplayGroupsDropDown("",
> "javascript:document.Address.selGroup.value = this.value") E:
> \PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP 40
> Global Scope ShowMessage Request.QueryString("Folder"),
> Request.QueryString("msgid"), Request.QueryString("filename") E:
> \PROGRAM FILES\MAILSITE\EXPRESS\WEB\IMAP4.ASP 40
>
> Back to Top
>
> Thread 73 - System ID 1364
> Entry point msvcrt!_endthreadex+2f
> Create time 8/05/2007 7:12:28 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForMultipleObjects+c
> kernel32!WaitForMultipleObjectsEx+11a
> user32!RealMsgWaitForMultipleObjectsEx+141
> user32!MsgWaitForMultipleObjects+1f
> comsvcs!CSTAThread::WorkerLoop+1e5
> msvcrt!_endthreadex+a3
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 74 - System ID 4720
> Entry point msvcr80!_threadstart
> Create time 8/05/2007 7:12:29 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> This thread is waiting on data to be returned from another server via
> WinSock.
>
> The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForSingleObject+c
> mswsock!SockWaitForSingleObject+3a
> mswsock!WSPRecv+203
> ws2_32!recv+83
> MsRemote!InitiateRetryRemote+3dba
> MsRemote!InitiateRetryRemote+3c5d
> MailUtil!Ordinal151+408
> MailUtil!Ordinal151+85c
> msvcr80!_callthreadstart+1b
> msvcr80!_threadstart+5a
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 75 - System ID 3140
> Entry point msimap4!DllUnregisterServer+134fd
> Create time 8/05/2007 7:12:29 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> This thread is waiting on data to be returned from another server via
> WinSock.
>
> The call to WinSock originated from msimap4!DllUnregisterServer+1a6db
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForSingleObject+c
> mswsock!SockWaitForSingleObject+3a
> mswsock!WSPSelect+380
> ws2_32!select+b9
> msimap4!DllUnregisterServer+1a6db
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 76 - System ID 5696
> Entry point msimap4!DllUnregisterServer+134fd
> Create time 8/05/2007 7:12:30 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> This thread is waiting on data to be returned from another server via
> WinSock.
>
> The call to WinSock originated from msimap4!DllUnregisterServer+1a6db
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForSingleObject+c
> mswsock!SockWaitForSingleObject+3a
> mswsock!WSPSelect+380
> ws2_32!select+b9
> msimap4!DllUnregisterServer+1a6db
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 77 - System ID 6104
> Entry point msvcr80!_threadstart
> Create time 8/05/2007 7:12:30 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> This thread is waiting on data to be returned from another server via
> WinSock.
>
> The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForSingleObject+c
> mswsock!SockWaitForSingleObject+3a
> mswsock!WSPRecv+203
> ws2_32!recv+83
> MsRemote!InitiateRetryRemote+3dba
> MsRemote!InitiateRetryRemote+3c5d
> MailUtil!Ordinal151+408
> MailUtil!Ordinal151+85c
> msvcr80!_callthreadstart+1b
> msvcr80!_threadstart+5a
> kernel32!BaseThreadStart+34
>
> Back to Top
>
> Thread 78 - System ID 5732
> Entry point msvcr80!_threadstart
> Create time 8/05/2007 7:12:30 p.m.
> Time spent in user mode 0 Days 0:0:0.0
> Time spent in kernel mode 0 Days 0:0:0.0
>
> This thread is waiting on data to be returned from another server via
> WinSock.
>
> The call to WinSock originated from MsRemote!InitiateRetryRemote+3dba
>
> Function Source
> ntdll!KiFastSystemCallRet
> ntdll!NtWaitForSingleObject+c
> mswsock!SockWaitForSingleObject+3a
> mswsock!WSPRecv+203
> ws2_32!recv+83
> MsRemote!InitiateRetryRemote+3dba
> MsRemote!InitiateRetryRemote+3c5d
> MailUtil!Ordinal151+408
> MailUtil!Ordinal151+85c
> msvcr80!_callthreadstart+1b
> msvcr80!_threadstart+5a
> kernel32!BaseThreadStart+34



Re: DebugDiag output - please help to interpret by Goosey

Goosey
Wed May 09 15:54:51 CDT 2007

Thanks David,

The previous report was taken when the application pool had not
completely hung (was just exceeding the Hang threshold in DebugDiag).
However, I have since had some proper hangs with teh following report:

"Detected a serious critical section related problem in
w3wp.exe__DefaultAppPool__PID__4148__Date__05_09_2007__Time_03_57_53PM__724__IIS
Hang Dump.dmp
Lock at ntdll!LdrpLoaderLock is Orphaned

Impact analysis

97.78% of executing ASP Requests blocked

71.53% of threads blocked

(Threads 18 19 21 24 25 26 28 30 31 33 34 35 37 38 39 40 41 42 43 45
48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72
73 74 75 76 77 78 79 80 81 82 83 84 86 88 89 90 91 92 93 94 95 96 97
98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116
118 119 120 122 124 125 126 130 131 132 133 134 135 136)

The following functions are involved in the root cause
ntdll!LdrpGetProcedureAddress+128
ntdll!LdrLockLoaderLock+e4
ntdll!LdrShutdownThread+33
ntdll!LdrpInitializeThread+68

The following modules are involved in the root cause
C:\WINDOWS\system32\ntdll.dll from Microsoft Corporation"


The DebugDiag report recommended running a Crash rule, but the next
time it happened, the Hang rule was triggered, but the Crash rule
didn't. Do I need to remove the hang rule for the Crash rule to catch
the problem?

Also, I am fully expecting that it will be a Mailsite Express issue,
and we are making sure we are up to the latest releases with their
product etc, but I am hoping to be able to give them as much
information as to the cause of the issue, so I would like to be able
to pinpoint what is causing ntdll.dll to be orphaned.

Thanks for your help


Re: DebugDiag output - please help to interpret by David

David
Thu May 10 03:14:45 CDT 2007

Orphaning NT Loader Lock is certainly an application issue. However,
you want to fix the code that orphans the lock... but the lock is
currently orphaned so we don't know the owner -- DebugDiag report will
not be able to help much further than that.

One can certainly debug with a debugger and more instrumentation to
pinpoint the cause, but that is way beyond DebugDiag reports or the
scope of this newsgroup.

What we do know is that the misbehaving code launched from a 3rd party
DLL's DllMain() entry point. There aren't many such entry points in
code running on you w3wp.exe...


> The DebugDiag report recommended running a Crash
> rule, but the next time it happened, the Hang rule
> was triggered, but the Crash rule didn't. Do I need
> to remove the hang rule for the Crash rule to catch
> the problem?

Not necessarily. You are working with the assumption that there is a
single problem and that it is caught with one rule, but that may not
be true. I suspect you have multiple problems going on within the
process, and the problems either trigger unhandled exceptions (i.e.
crash) caught by Crash rule or delayed execution (i.e. hang) caught by
Hang rule. I think you should just give then what you have. You've
identified NT Loader Lock orphaning, which is good enough.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//





On May 9, 1:54 pm, Goosey <bruce.parr...@vuw.ac.nz> wrote:
> Thanks David,
>
> The previous report was taken when the application pool had not
> completely hung (was just exceeding the Hang threshold in DebugDiag).
> However, I have since had some proper hangs with teh following report:
>
> "Detected a serious critical section related problem in
> w3wp.exe__DefaultAppPool__PID__4148__Date__05_09_2007__Time_03_57_53PM__7=
24=AD__IIS
> Hang Dump.dmp
> Lock at ntdll!LdrpLoaderLock is Orphaned
>
> Impact analysis
>
> 97.78% of executing ASP Requests blocked
>
> 71.53% of threads blocked
>
> (Threads 18 19 21 24 25 26 28 30 31 33 34 35 37 38 39 40 41 42 43 45
> 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 65 66 67 68 69 70 71 72
> 73 74 75 76 77 78 79 80 81 82 83 84 86 88 89 90 91 92 93 94 95 96 97
> 98 99 100 101 102 103 104 105 106 107 109 110 111 112 113 114 115 116
> 118 119 120 122 124 125 126 130 131 132 133 134 135 136)
>
> The following functions are involved in the root cause
> ntdll!LdrpGetProcedureAddress+128
> ntdll!LdrLockLoaderLock+e4
> ntdll!LdrShutdownThread+33
> ntdll!LdrpInitializeThread+68
>
> The following modules are involved in the root cause
> C:\WINDOWS\system32\ntdll.dll from Microsoft Corporation"
>
> The DebugDiag report recommended running a Crash rule, but the next
> time it happened, the Hang rule was triggered, but the Crash rule
> didn't. Do I need to remove the hang rule for the Crash rule to catch
> the problem?
>
> Also, I am fully expecting that it will be a Mailsite Express issue,
> and we are making sure we are up to the latest releases with their
> product etc, but I am hoping to be able to give them as much
> information as to the cause of the issue, so I would like to be able
> to pinpoint what is causing ntdll.dll to be orphaned.
>
> Thanks for your help