Process Explorer - 64비트 윈도우에서 32비트 프로세스의 덤프를 뜰 때 "Error writing dump file: Access is denied." 오류
이상하군요, 분명히 지난 글을 쓸 때까지만 해도,
windbg - SOS does not support the current target architecture.
; https://www.sysnet.pe.kr/2/0/11262
Process Explorer를 이용해 64비트 시스템에서 32비트 프로세스에 대한 덤프를 정상적으로 떴었는데요, 이제는 "Error writing dump file: Access is denied."라는 오류 메시지가 발생하면서 덤프를 뜨지 못합니다.
어쩔 수 없습니다, ^^; 이렇게 되면
32비트 작업 관리자를 이용해 덤프를 뜨거나,
C:\Windows\SysWOW64\taskmgr.exe
또는
ProcDump,
DebugDiag 같은 툴을 이용해 덤프를 뜨면 됩니다.
참고로, (64비트) "작업 관리자(Task Manager)"가 뜬 32비트 프로세스의 덤프를 혹시나 싶어 최신 (StoreApp 버전의) WinDbg에서 로드했더니,
0:000> .loadby sos clr
The call to LoadLibrary(C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll) failed, Win32 error 0n193
"%1 is not a valid Win32 application."
Please check your debugger configuration and/or network access.
Extension DLL search Path:
...[생략]...
You may also consider deploying your extension to the UserExtensions extension gallery repository
located at %LOCALAPPDATA%\dbg\UserExtensions folder. It would require an extension manifest.
Error: Failed to load extension C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll
이제는 아예 로딩 단계에서 실패해 버립니다. 또한 Standalone 버전의 x86 WinDbg(10.0.22000.194)로 시도해 보면 로딩은 되지만 마찬가지로 오류는 여전합니다.
0:000> .loadby sos clr
0:000> !clrstack
SOS does not support the current target architecture (8664).
아마도 마지막의 (8664)라는 숫자는 "x86 on x64"의 의미일 듯합니다. ^^
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]