Access violation in RtlDebugCreateHeap api on enabling gflags

145 Views Asked by At

Debugging on a Windows Server 2016 Standard version 1607. Launched a process from windbg 10.0.19041.685 and set the below gflags:

0:038> !gflag 0x020011f0
New NtGlobalFlag contents: 0x020011f0
    htc - Enable heap tail checking
    hfc - Enable heap free checking
    hpc - Enable heap parameter checking
    hvc - Enable heap validation on call
    vrf - Enable application verifier
    ust - Create user mode stack trace database
    hpa - Place heap allocations at ends of pages 

Consistently get the below access violation on continue:

(140c.7ec): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
ntdll!RtlDebugCreateHeap+0x2bb:
00007ff8`f96da01b 66898730010000  mov     word ptr [rdi+130h],ax ds:000001d5`dced0130=eeee

This happens while in a loadlibrary call. Is there a known issue with this gflag setting? Any thoughts?

0

There are 0 best solutions below