且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何匹配崩溃的“故障偏移”到源代码?

更新时间:2022-01-20 01:05:27

你还需要知道偏移属于哪个模块,如果你得到0xC0000008( STATUS_INVALID_HANDLE ),那么异常可能会抛出ntdll.dll,这不会帮助你调试你的程序,因为你关心的是更深的堆栈。

You also need to know what module the offset belongs too, if you are getting 0xC0000008 (STATUS_INVALID_HANDLE), then the exception is likely thrown from ntdll.dll, which isn't going to help you debug your program, since what you care about is deeper in the stack.

你应该做的是有你的客户启用 LocalDumps ,然后向您发送一个minidump文件

What you should be doing is have your customer enable LocalDumps, and then send you a minidump file which you can debug.

示例注册表设置:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpFolder"="d:\\miniDumps"
"DumpType"=dword:00000002
"CustomDumpFlags"=dword:00001124