c++异常处理:0x77688F05 (ntdll.dll)异常 && 设置VS release模式下可调试

本文介绍了如何解决C++ release版本中出现的0x77688F05(ntdll.dll)异常问题,通过调整配置使release模式支持调试,包括设置调试信息格式为程序数据库、禁用优化以及生成调试信息。

一、0x77688F05 (ntdll.dll)异常

c++release 版报异常退出,debug版好着,找了半天问题找不到,查了一堆资料明白了debug和release版的区别,知道release版也是可以debug调试的,只有可以调试就能定位错误的地方

二.设置release模式下调试

有三个步骤:

1、设置 C++ =>调试信息格式 =>程序数据库

2、设置C++ => 优化 =>禁用

3、设置链接器 =>调试 =>生成调试信息

完成

三、我的错误 

socket异常

 

上面的错误,我使用了!analyze -v 指令后 SYSTEM_SERVICE_EXCEPTION (3b) An exception happened while executing a system service routine. Arguments: Arg1: 00000000c000001d, Exception code that caused the BugCheck Arg2: ffffbf8942103b20, Address of the instruction which caused the BugCheck Arg3: ffffdf815547d070, Address of the context record for the exception that caused the BugCheck Arg4: 0000000000000000, zero. Debugging Details: ------------------ KEY_VALUES_STRING: 1 Key : Analysis.CPU.mSec Value: 3109 Key : Analysis.Elapsed.mSec Value: 15964 Key : Analysis.IO.Other.Mb Value: 0 Key : Analysis.IO.Read.Mb Value: 14 Key : Analysis.IO.Write.Mb Value: 2 Key : Analysis.Init.CPU.mSec Value: 1625 Key : Analysis.Init.Elapsed.mSec Value: 336944 Key : Analysis.Memory.CommitPeak.Mb Value: 121 Key : Analysis.Version.DbgEng Value: 10.0.27829.1001 Key : Analysis.Version.Description Value: 10.2503.24.01 amd64fre Key : Analysis.Version.Ext Value: 1.2503.24.1 Key : Bugcheck.Code.KiBugCheckData Value: 0x3b Key : Bugcheck.Code.LegacyAPI Value: 0x3b Key : Bugcheck.Code.TargetModel Value: 0x3b Key : Failure.Bucket Value: 0x3B_C000001D_HyperHideDrv!HookedNtContinue Key : Failure.Exception.IP.Address Value: 0xffffbf8942103b20 Key : Failure.Hash Value: {8e106373-5690-bf65-5b28-0541e087c782} Key : Hypervisor.Enlightenments.Value Value: 13088 Key : Hypervisor.Enlightenments.ValueHex Value: 0x3320 Key : Hypervisor.Flags.AnyHypervisorPresent Value: 1 Key : Hypervisor.Flags.ApicEnlightened Value: 0 Key : Hypervisor.Flags.ApicVirtualizationAvailable Value: 0 Key : Hypervisor.Flags.AsyncMemoryHint Value: 0 Key : Hypervisor.Flags.CoreSchedulerRequested Value: 0 Key : Hypervisor.Flags.CpuManager Value: 0 Key : Hypervisor.Flags.DeprecateAutoEoi Value: 1 Key : Hypervisor.Flags.DynamicCpuDisabled Value: 0 Key : Hypervisor.Flags.Epf Value: 0 Key : Hypervisor.Flags.ExtendedProcessorMasks Value: 0 Key : Hypervisor.Flags.HardwareMbecAvailable Value: 0 Key : Hypervisor.Flags.MaxBankNumber Value: 0 Key : Hypervisor.Flags.MemoryZeroingControl Value: 0 Key : Hypervisor.Flags.NoExtendedRangeFlush Value: 1 Key : Hypervisor.Flags.NoNonArchCoreSharing Value: 0 Key : Hypervisor.Flags.Phase0InitDone Value: 1 Key : Hypervisor.Flags.PowerSchedulerQos Value: 0 Key : Hypervisor.Flags.RootScheduler Value: 0 Key : Hypervisor.Flags.SynicAvailable Value: 1 Key : Hypervisor.Flags.UseQpcBias Value: 0 Key : Hypervisor.Flags.Value Value: 536632 Key : Hypervisor.Flags.ValueHex Value: 0x83038 Key : Hypervisor.Flags.VpAssistPage Value: 1 Key : Hypervisor.Flags.VsmAvailable Value: 0 Key : Hypervisor.RootFlags.AccessStats Value: 0 Key : Hypervisor.RootFlags.CrashdumpEnlightened Value: 0 Key : Hypervisor.RootFlags.CreateVirtualProcessor Value: 0 Key : Hypervisor.RootFlags.DisableHyperthreading Value: 0 Key : Hypervisor.RootFlags.HostTimelineSync Value: 0 Key : Hypervisor.RootFlags.HypervisorDebuggingEnabled Value: 0 Key : Hypervisor.RootFlags.IsHyperV Value: 0 Key : Hypervisor.RootFlags.LivedumpEnlightened Value: 0 Key : Hypervisor.RootFlags.MapDeviceInterrupt Value: 0 Key : Hypervisor.RootFlags.MceEnlightened Value: 0 Key : Hypervisor.RootFlags.Nested Value: 0 Key : Hypervisor.RootFlags.StartLogicalProcessor Value: 0 Key : Hypervisor.RootFlags.Value Value: 0 Key : Hypervisor.RootFlags.ValueHex Value: 0x0 Key : SecureKernel.HalpHvciEnabled Value: 0 Key : WER.OS.Branch Value: vb_release Key : WER.OS.Version Value: 10.0.19041.1 BUGCHECK_CODE: 3b BUGCHECK_P1: c000001d BUGCHECK_P2: ffffbf8942103b20 BUGCHECK_P3: ffffdf815547d070 BUGCHECK_P4: 0 FAULTING_THREAD: ffffbf8943364080 CONTEXT: ffffdf815547d070 -- (.cxr 0xffffdf815547d070) rax=ffffbf8942103b10 rbx=ffffbf8943364080 rcx=000000e265bff770 rdx=0000000000000001 rsi=0000000000000000 rdi=0000000000000000 rip=ffffbf8942103b20 rsp=ffffdf815547da78 rbp=ffffdf815547db80 r8=00000000ffffffff r9=7ffff80119936b30 r10=7ffffffffffffffc r11=0000000000336cb0 r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000 iopl=0 nv up ei ng nz ac po cy cs=0010 ss=0018 ds=002b es=002b fs=0053 gs=002b efl=00010297 ffffbf89`42103b20 ff ??? Resetting default scope PROCESS_NAME: msedgewebview2.exe STACK_TEXT: ffffdf81`5547da78 fffff801`1992bc21 : ffffbf89`48c74080 fffff801`00000013 00000000`00000000 ffffdf81`5547db80 : 0xffffbf89`42103b20 ffffdf81`5547da80 fffff801`14811f05 : 000000e2`65bff770 00000000`00000001 00000000`00000001 ffffbf89`00000000 : HyperHideDrv!HookedNtContinue+0x1b1 [C:\Users\pc\Desktop\vt-debuuger-main\HyperHideDrv\HookedFunctions.cpp @ 1540] ffffdf81`5547db00 00007ff9`79badd54 : 00007ff9`79b85c28 000000e2`65bff770 00000000`00000000 00000000`00000000 : nt!KiSystemServiceCopyEnd+0x25 000000e2`65bff718 00007ff9`79b85c28 : 000000e2`65bff770 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!NtContinue+0x14 000000e2`65bff720 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!LdrInitializeThunk+0x18 FAULTING_SOURCE_LINE: C:\Users\pc\Desktop\vt-debuuger-main\HyperHideDrv\HookedFunctions.cpp FAULTING_SOURCE_FILE: C:\Users\pc\Desktop\vt-debuuger-main\HyperHideDrv\HookedFunctions.cpp FAULTING_SOURCE_LINE_NUMBER: 1540 FAULTING_SOURCE_CODE: 1536: } 1537: } 1538: 1539: return OriginalNtContinue(Context, TestAlert); > 1540: } 1541: 1542: NTSTATUS(NTAPI* OriginalNtQueryInformationJobObject)(HANDLE JobHandle, JOBOBJECTINFOCLASS JobInformationClass, PVOID JobInformation, ULONG JobInformationLength, PULONG ReturnLength); 1543: NTSTATUS NTAPI HookedNtQueryInformationJobObject(HANDLE JobHandle, JOBOBJECTINFOCLASS JobInformationClass, PVOID JobInformation, ULONG JobInformationLength, PULONG ReturnLength) 1544: { 1545: NTSTATUS Status = OriginalNtQueryInformationJobObject(JobHandle, JobInformationClass, JobInformation, JobInformationLength, ReturnLength); SYMBOL_NAME: HyperHideDrv!HookedNtContinue+1b1 MODULE_NAME: HyperHideDrv IMAGE_NAME: HyperHideDrv.sys STACK_COMMAND: .cxr 0xffffdf815547d070 ; kb BUCKET_ID_FUNC_OFFSET: 1b1 FAILURE_BUCKET_ID: 0x3B_C000001D_HyperHideDrv!HookedNtContinue OS_VERSION: 10.0.19041.1 BUILDLAB_STR: vb_release OSPLATFORM_TYPE: x64 OSNAME: Windows 10 FAILURE_ID_HASH: {8e106373-5690-bf65-5b28-0541e087c782} Followup: MachineOwner ---------
08-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值