首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何调试非法指令异常?

如何调试非法指令异常?
EN

Stack Overflow用户
提问于 2009-11-09 12:37:33
回答 1查看 3.9K关注 0票数 1

当我试图在ASDumpAnalyzer.exe: 0xC000001D:非法指令中使用mdbglib:First-chance exception at 0x037ba4f4 (dbgeng.dll)时,我得到了这个异常。我想知道如何进行调试?

它抛出了汇编指令vmcpuid。当我跳过这条指令时,代码会按预期工作。

堆栈跟踪:

代码语言:javascript
复制
dbgeng.dll!X86IsVirtualMachine()  + 0x44 bytes
dbgeng.dll!LiveUserDebugServices::GetTargetInfo()  + 0x95 bytes
dbgeng.dll!LiveUserTargetInfo::InitFromServices()  + 0x95 bytes
dbgeng.dll!LiveUserTargetInfo::WaitForEvent()  + 0x4f bytes
dbgeng.dll!WaitForAnyTarget()  + 0x5f bytes
dbgeng.dll!RawWaitForEvent()  + 0x2ae bytes
dbgeng.dll!DebugClient::WaitForEvent()  + 0xb0 bytes
[Managed to Native Transition]
mdbglib.dll!MS::Debuggers::DbgEng::DebugControl::WaitForEvent(unsigned int timeout = 0) Line 107 + 0x38 bytes   C++
mdbglib.dll!MS::Debuggers::DbgEng::Debuggee::WaitForEvent(unsigned int timeout = 0) Line 365    C++
ASDumpAnalyzer.exe!ASDumpAnalyzer.Program.WriteMemoryDump() Line 51 + 0xd bytes C#
ASDumpAnalyzer.exe!ASDumpAnalyzer.Program.Main() Line 21 + 0x5 bytes    C#
mscoree.dll!__CorExeMain@0()  + 0x34 bytes
kernel32.dll!_BaseProcessStart@4()  + 0x23 bytes
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2009-12-21 01:25:34

你有没有试过不打破第一次机会的例外情况?我打赌X86IsVirtualMachine在VMCPUID周围有一个__try/__finally块...因为它不是有效的指令,所以您可能没有在VM下运行。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1699115

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档