我們有我們無法重現的問題,它隨機發生運行ASP.NET 4w3wp.exe的崩潰 - ThreadAbortException
我們的Web服務器(Windows Server 2008數據中心64位,託管在亞馬遜EC2)上它在錯誤日誌中ASP.NET警告(用一個很長的URL一個奇怪的GET請求)開始:
Exception information:
Exception type: HttpException
Exception message: The length of the URL for this request exceeds the configured maxUrlLength value.
at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)
然後一個錯誤:
Application ID: /LM/W3SVC/2/ROOT
Process ID: 4604
Exception: System.Threading.ThreadAbortException
Message: Thread was being aborted.
StackTrace: at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
然後另一個錯誤:
Application ID: DefaultDomain
Process ID: 4604
Exception: System.Threading.ThreadAbortException
Message: Thread was being aborted.
StackTrace:
然後應用程序錯誤:
Faulting application w3wp.exe, version 7.0.6002.18005, time stamp 0x49e03238, faulting module kernel32.dll, version 6.0.6002.18005, time stamp 0x49e041d1, exception code 0xe0434352, fault offset 0x00000000000176fd, process id 0x%9, application start time 0x%10.
WinDBG的
我得到了一個轉儲與ADPlus的崩潰,但我真的不知道該找什麼。我之前用Windbg解決了一些堆棧溢出問題,但我不知道使用哪種方法來處理這個錯誤。
線程與錯誤的PE:!
Exception object: 00000001c323d948
Exception type: System.Threading.ThreadAbortException
Message: Thread was being aborted.
InnerException:
StackTrace (generated):
StackTraceString:
HResult: 80131530
clrstack
Child SP IP Call Site
0000000015f7f078 0000000076c176fd [GCFrame: 0000000015f7f078]
0000000015f7f258 0000000076c176fd [GCFrame: 0000000015f7f258]
ķ
Child-SP RetAddr Call Site
0000000015f7edf0 000007fe
f2826e39 kernel32!RaiseException+0x39
0000000015f7eec0 000007fe
f2bbbfb4 clr!RaiseTheExceptionInternalOnly+0x363
0000000015f7eff0 000007fe
f2bbc906 clr!RaiseTheException+0xa4
0000000015f7f020 000007fe
f2c3b99b clr!BStrFromString+0x66
0000000015f7f050 000007fe
f2c3b9a9 clr!RealCOMPlusThrow+0x3b
0000000015f7f0c0 000007fe
f2c93156 clr!RealCOMPlusThrow+0x9
0000000015f7f0f0 000007fe
f2b229f3 clr!Thread::RaiseCrossContextException+0x2a7
0000000015f7f310 000007fe
f2830886 clr! ?? ::FNODOBFM::string'+0xafb03
15f7f4c0 000007fe
00000000f27fcce3 clr!UM2MDoADCallBack+0x9e
15f7f530 000007fe
00000000f845ba59 clr!UMThunkStubAMD64+0x273
15f7f5c0 000007fe
00000000f8458f02 webengine4!W3_MGD_HANDLER::ProcessNotification+0x79
15f7f5f0 000007fe
00000000f27d4595 webengine4!ProcessNotificationCallback+0x43
15f7f620 000007fe
00000000f27d3ac8 clr!UnManagedPerAppDomainTPCount::DispatchWorkItem+0x181
15f7f6d0 000007fe
00000000f294658f clr!ThreadpoolMgr::NewWorkerThreadStart+0x2e5
15f7f770 000007fe
00000000f29447c6 clr!ThreadpoolMgr::WorkerThreadStart+0x3b
15f7f810 00000000
0000000076c1be3d clr!Thread::intermediateThreadProc+0x7d
15f7fbd0 00000000
0000000076d56a51 kernel32!BaseThreadInitThunk+0xd
15f7fc00 00000000`00000000 ntdll!RtlUserThreadStart+0x1d
00000000
任何人有一個線索可能是什麼?或者可以點我正確的方向來分析Windbg?
編輯: 進入的網址通常是這樣的: foo.bar.com/wEPDwULLTE1MTk5MzIzMTFkGAMFFmN0bDAwJGRiMSRkZGxEYXRhYmFzZXMPFCsAAmRkZAU7Y3RsMDAkU2VhcmNoQ2xvdWQxJF9SaWdodENvbHVtbiRfU2VhcmNoQ2xvdWQkbHN2U2VhcmNoVGVybXMPFCsADmRkZGRkZGQ8KwAUAAIUZGRkZgL/D2QFK2N0bDAwJHN1cnZleTEkX1JpZ2h0Q29sdW1uJF9JUiR1c2VyQ29tbWVudHMPFCsAA2VnZGQeuUcvQDsShDIp1k7YjJw70Ry 9/Q1B9Sd1egrovYgkw ==/
,但我在事件日誌中發現,這種發生此網址,這樣as well: foo.bar.com/ & (.NET 4中的「危險請求」)
啓用IIS日誌記錄以查看實際的傳入url /查詢字符串。 – leppie 2011-01-12 08:46:42