본문 바로가기

WinDbg

(7)
Crash덤프만들고 디버깅하기 Article ID: 892277 - Last Review: May 18, 2007 - Revision: 2.4Troubleshooting ASP.NET using WinDbg and the SOS extensionView products that this article applies to.ASP .NET Support Voice ColumnTroubleshooting ASP.NET using WinDbg and the SOS extensionTo customize this column to your needs, we want to invite you to submit your ideas about topics that interest you and issues that you want to see ad..
Windbg를 사용하기 .NET Breakpoint 설정하기 http://blogs.msdn.com/b/kristoffer/archive/2007/01/02/setting-a-breakpoint-in-managed-code-using-windbg.aspx 위에서 퍼온 글입니다. One of the great features of managed code is getting call stacks and proper class and member function names without debug symbols. We can examine the methods of a class and set breakpoints based on name. To see the methods on an object in Windbg we first need to find its meth..
Windbg로 닷넷 Exception 메모리 덤프뜨기 Since a .net exception is a .NET object like any other, it gets stored on the GC heap when you (or some code you call) calls new XXException(). This means that if you have a memory dump of a process you can dump out all the recent exceptions that have occurred, or rather all exceptions that have not yet been garbage collected, which will give you a good feel for what exceptions occurred recently..
windbg 의 mscordacwks DLL 로드 문제 [출처] windbg 의 mscordacwks DLL 로드 문제|작성자 techshare http://blog.naver.com/techshare/100144174167 위에서 퍼온 글입니다. 예전에 mscordacwks.dll 의 로드 문제에 대해서 한번 이야기를 한 적이 있었는데요. Windbg - ERROR: Unable to load DLL mscordacwks_x86_x86_2.0.50727.4200.dll, Win32 error 0n2 ; http://www.sysnet.pe.kr/2/0/994 최근에, 다시 한번 그 문제를 보게 되었습니다. 특이한 점은, dmp 파일을 받은 바로 그 컴퓨터에서 "Debug Diagnostics Tool" 을 실행했는데도 발생했다는 점입니다. 반면, 공통점이 있다면 이번에도 예전의 그 컴퓨터와 동일하게 "Windows Server 2008 SP2"..
일반 참조형의 기본 메모리 소비는 얼마나 될까요? [출처] 일반 참조형의 기본 메모리 소비는 얼마나 될까요?|작성자 techshare http://blog.naver.com/techshare/100143356959 위의 글을 퍼왔습니다. 지난 번 글을 통해서, 배열과 관련된 인스턴스의 메모리를 살펴보는 방법을 알아봤습니다. .NET Array는 왜 12 bytes 의 기본 메모리를 점유할까? ; http://www.sysnet.pe.kr/2/0/1173 Primitive 타입의 배열은 12 bytes, 기타 배열의 경우에는 Element Type 의 MT 값 - 4 bytes 를 포함해서 16 bytes가 기본소비되는 데요. 그렇다면 일반적인 클래스의 경우에는 얼마나 메모리를 소비할까요? 처음 이 의문이 들었을 때, 저는 간단하게 8 bytes 라고 생각했습니다. 왜냐 하면, ^^ 배열과 비교해서 '요소 수'로 할당된 4 bytes 가..
windbg - 힙에서 .NET 타입에 대한 배열을 찾는 방법 [출처] windbg - 힙에서 .NET 타입에 대한 배열을 찾는 방법|작성자 techshare http://blog.naver.com/techshare/100143182037 위의 링크에서 퍼온글입니다. .NET 입장에서, 배열은 결국 System.Array 를 상속받은 개체로 다뤄집니다. 지난 번 이야기에서 "System.Char[]" 개체가 "dumpheap -stat" 명령으로 확인되었던 것을 볼 수 있었는데요. StringBuilder 에서의 OutOfMemoryException 오류 원인 분석 ; http://www.sysnet.pe.kr/2/0/1171 Primitive 타입에 대한 배열은 그렇다 치고, 기타 타입들에 대한 배열은 "dumpheap -stat"에서 직접적으로 보이지 않습니다. 이에 대한 이해를 돕기 위해 예제를 다뤄볼까요? namespace ConsoleApplicati..
WinDbg 이용해서 Dump 파일 분석 하는 방법 http://bwangel.egloos.com/4732522 이 글은 위의 글을 그대로 카피한 글입니다. WinDbg 이용해서 Dump 파일 분석 하는 방법 1. http://www.microsoft.com/whdc/devtools/debugging/default.mspx 사이트로 이동 합니다. 2. Install Debugging Tools for Windows 32-bit Version 으로 이동 합니다 http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx 3. 가장 최신 버전의 WinDbg 를 다운로드 받아서 설치 합니다 4. 덤프 파일이 생성된 환경에 맞게 심볼 파일을 다운로드 받습니다 http://www.microsoft.com/wh..