본문 바로가기

Dump

(3)
First chance exception 0X406D1388 크롬과 엣지에서 Exception 0X406D1388 덤프가 많이 발생했다. 덤프파일을 windbg 로 열어 analyze -v 를 실행한 스택내용은 다음과 같았다. (크롬 심볼서버 세팅함.) STACK_TEXT: KERNELBASE!RaiseException+0x6a chrome!base::PlatformThreadBase::SetName+0x1ae chrome!base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::OnMainEntry+0x74 chrome!base::internal::WorkerThread::RunWorker+0x81 chrome!base::internal::WorkerThread::RunPooledWorker+0x18 chrome!..
[SWIFT] dump() 함수 출력을 문자열로 바꾸는 방법 dump 함수는 클래스 인스턴스의 내부 속성까지 간단히 출력해 주기 때문에 디버깅시에 편리하다. 그런데, 출력 내용을 문자열로 저장하여, stdout, stderr 가 아닌 곳으로도 출력/저장하고 싶었다. 스택오버플로우에 간단한 답변이 있었다. https://stackoverflow.com/a/42094841/100093 let myClass = MyClass() var myClassDumped = String() dump(myClass, to: &myClassDumped) https://github.com/apple/swift/blob/master/stdlib/public/core/OutputStream.swift 위 링크를 인용하고 있는데, 직접 영문설명을 읽어보는 게 좋겠지만, 요약하면, print..
WinDbg|전체 프로세스 메모리에서 특정 패턴 스캔하기 http://voneinem-windbg.blogspot.kr/2007/06/scan-full-process-memory-for-pattern.html 전체 프로세스 메모리에서 특정 패턴 스캔하기Scan the full process memory for a pattern 프로세스 메모리에서 특정 패턴을 스캔해야 할 때가 매우 많았다.특정 포인터이거나 문자열일 수도 있고 무엇이라도 될 수 있다.Very often I need to scan the process memory for a specific pattern.This can be either a pointer or a string or whatever and I want to find out, which other memory references th..