Microsoft MVP성태의 닷넷 이야기
덤프 파일 분석 관련해서 문의 드려요. [링크 복사], [링크+제목 복사]
조회: 8685
글쓴 사람
신동열 (dongyoul.shin at gmail.com)
홈페이지
첨부 파일
 

저희가 개발해서 사용하던 프로그램이 일정 시점부터 프로그램 사용중 Hang이 걸려서 먹통이 되는 현상이 발생하였습니다.
원인은 어떤 프로그램 설치(자산관리 프로그램)후 부터 이런 현상이 발생했는데 해당 프로그램을 제거하면 정상적으로 동작을 합니다.
해서 프로그램이 먹통이된 시점에 덤프를 뜨서 DebugDialg를 이용해서 확인을 했는데 분석 요약 정보에 다음과 같은 설명이 나왔습니다.
개발 하면서 Debug은 해봤지만 덤프 파일로 디버깅은 해본적이 없어서 아래 내용으로 어떻게 분석을 시작해야할지 잘 몰라서 질문을 드립니다.

0번 쓰레드가 블럭되어서 대기중이라는 말로 이해를 했구요. 이 0번 쓰레드는 CallStack을 확인해보면 주 스레드 인걸로 보입니다.
때문에 0번 스레드가 blocked 된 상태라서 프로그램이 먹통이 된거 같은데 제가 맞게 이해를 한건가요?


 
The following threads in ERP.DMP are waiting in a WaitOne
( 0 )
4.76% of threads blocked (1 threads)

  
그리고 Top 5 Threads by CPU time에 대한 정보가 다음과 같이 보이구요.

Note - Times include both user mode and kernel mode for each thread
Thread ID: 0 Total CPU Time: 00:01:04.708 Entry Point for Thread: IHKorERP+3f4e
Thread ID: 8 Total CPU Time: 00:00:01.122 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc
Thread ID: 5 Total CPU Time: 00:00:00.607 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc
Thread ID: 12 Total CPU Time: 00:00:00.546 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc
Thread ID: 14 Total CPU Time: 00:00:00.405 Entry Point for Thread: mscorwks!Thread::intermediateThreadProc



.Net Analysis Report


CLR Information


 CLR version = 2.0.50727.8784
 Microsoft.Diagnostics.Runtime version = 0.9.2.0


.NET Threads Summary

Total Threads: 4
Running Threads: 0
Idle Threads: 4
Max Threads: 1000
Min Threads: 4

Debugger_Thread_ID |Managed Thread ID | OS Thread ID | Thread Object | GC Mode | Domain | Lock Count | Apt | Exception
        0 1     4732 2b8660 Preemptive 2b4120 0 STA
        2 2     5600 2c4300 Preemptive 2b4120 0 MTA (Finalizer)
        5 3     2936 2ed3d0 Preemptive 2b4120 0 STA
        7 5     3024 9324988 Preemptive 2b4120 0 MTA
        8 6     2408 932f488 Preemptive 2b4120 0 MTA (Threadpool Worker)
        11 9     2056 93c3288 Preemptive 2b4120 0 MTA
        12 10     4952 93c9888 Preemptive 2b4120 0 MTA (Threadpool Worker)
        13 11     4284 93ddd10 Preemptive 2b4120 0 MTA (Threadpool Completion Port)
                           13     93ee380 Preemptive 2b4120 0
        14 8     5484 9428b50 Preemptive 2b4120 0 MTA (Threadpool Worker)
                           12     125af2d8 Preemptive 2b4120 0
                           7     125afaa8 Preemptive 2b4120 0
        18 4     6084 125af6c0 Preemptive 2b4120 0 MTA (Threadpool Worker)






Thread 0 - System ID 4732



Entry point IHKorERP+3f4e
Create time 2018-07-09 오전 7:39:14
Time spent in user mode 0 Days 00:00:37.143
Time spent in kernel mode 0 Days 00:00:27.565


This thread is waiting in a WaitOne





.NET Call Stack




[[HelperMethodFrame_1OBJ] (System.Threading.WaitHandle.WaitOneNative)] System.Threading.WaitHandle.WaitOneNative(Microsoft.Win32.SafeHandles.SafeWaitHandle, UInt32, Boolean, Boolean)
mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int64, Boolean)
mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)
System_Windows_Forms_ni!System.Windows.Forms.Control.WaitForWaitHandle(System.Threading.WaitHandle)
System_Windows_Forms_ni!System.Windows.Forms.Control.MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
System_Windows_Forms_ni!System.Windows.Forms.Control.Invoke(System.Delegate, System.Object[])
System_Windows_Forms_ni!System.Windows.Forms.WindowsFormsSynchronizationContext.Send(System.Threading.SendOrPostCallback, System.Object)
System_ni!Microsoft.Win32.SystemEvents+SystemEventInvokeInfo.Invoke(Boolean, System.Object[])
System_ni!Microsoft.Win32.SystemEvents.RaiseEvent(Boolean, System.Object, System.Object[])
System_ni!Microsoft.Win32.SystemEvents.OnUserPreferenceChanged(Int32, IntPtr, IntPtr)
System_ni!Microsoft.Win32.SystemEvents.WindowProc(IntPtr, Int32, IntPtr, IntPtr)
[[InlinedCallFrame]]
System_Windows_Forms_ni!System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
System_Windows_Forms_ni!System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
System_Windows_Forms_ni!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext)
SiS.Dev.Main.ClientManager.WindowApplicationStart()
ERPExecute.ERPAppModule.Main(System.String[])
[[GCFrame]]








[최초 등록일: ]
[최종 수정일: 8/8/2018]


비밀번호

댓글 작성자
 



2018-08-08 05시07분
네, 현상으로 봐서는 맞습니다. Wait... 메서드가 호출되었으니 기다리고 있는 중입니다.
정성태

1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
5729김기헌10/2/20224176안녕하세요 선생님 뮤텍스 관련 질문 드립니다 [2]
5728김경환9/29/20224186그리드뷰관련마지막질문하나드리겠습니다선생님 [5]파일 다운로드1
5727김경환9/26/20224065c# 윈폼 tcp/ip 기반 데이터그리드뷰질문하나드리겟습니다 [3]
5726양승조 donator9/22/20224782C# dll 과 C++ 간 배열 전달. SafeArray [10]파일 다운로드1
5725김기헌9/21/20223683안녕하세요 선생님 윈폼 컨트롤 Dispose 관련 질문드립니다 [2]
5724감사합니...9/19/20223719스레드와 스레드 안전한 객체 사용관련 문의드립니다. [5]
5723드리렁9/13/20223640Pinned Object에 대해서 질문이 있습니다. [2]
5722김인태9/8/20223811대화상자에서 alt + tab 후킹 작업 [1]
5721우종9/7/20223959C++ DLL 과 C# 연동 문의 [2]
5720한예지 donator9/6/20223679학습 방법 질문 있습니다. [7]
5719김경한9/6/20224017안녕하세요 질문하나만드리겠습니다...! [10]
5718김민아9/2/20224043안녕하세요 생성자 호출 시 초기화 순서 질문드립니다 [2]
5716iili...8/26/20224283WinDbg 커널 디버깅에서의 thread freeze [2]
5715에릭8/19/20224680WMI 쿼리 결과값이 Windows Service와 Console 출력에서 상이한 이유가 있을까요? [9]파일 다운로드1
5714허니빠8/18/20224710.net6 hint path 를 프로젝트 단위로 지정할 수 있는 방법을 알고싶습니다 [8]
5713김기헌8/17/20224632안녕하세요 rgb 계산 오차가 있는데 원인을 모르겠습니다.. [3]
5712하태8/17/20224124안녕하세요 background service에서 user32dll 접근 질문 드리겠습니다.! [2]
5711하태8/16/20223642안녕하세요! 윈도우즈 해상도 관련 질문 드립니다. [1]
5710장성욱8/12/20223858c# 시리얼 통신 관련 질문 [3]
5709초보8/12/20223648WPF 커맨드 관련 질문 [2]
5708민성8/11/20223912안녕하세요 c#에서 화면의 배율 및 레이아웃을 변경할려면 어떻게 해야 할까요? [2]파일 다운로드1
5707민성8/10/20223537WPF 엣지 컨트롤에서 화면이 안보이는 현상 [2]파일 다운로드1
5706종규8/7/20225942WPF 에서 SVG 아이콘 사용 방법 문의 [2]
5705김기헌8/6/20224676안녕하세요 선생님 싱글톤 패턴 간단 질문 [2]
5704따봉이8/4/20224552EventHandler 관련 [1]
5703조민준8/3/20223977안녕하세요 정적 멤버 초기화 관련 간단한 질문 [2]
1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...