DynamoRIO / DynamoRIO/drmemory
ASSERT: RtlWalkHeap calls RtlFreeHeap: "syscall_while_native: using NtFreeVirtualMemory - maybe hooked?"
- Dominant language
- C
- Stars
- 2.7k
- Forks
- 290
- PR merge metrics
- No merged PRs in 30d
Description
_From [derek.br...@gmail.com](https://code.google.com/u/117968039472581148324/) on December 10, 2010 17:58:29_
PR 601270
due to late injection I have to walk the heap and I use RtlWalkHeap which surprisingly
ends up calling RtlFreeHeap and triggering an assert as that's a hooked function:
03 1e929238 15218d6a dynamorio!notify+0x1d8 [e:\derek\dr\win32\opensource\core\utils.c @ 1852]
04 1e9292a0 1e962e58 dynamorio!syscall_while_native+0x50a [e:\derek\dr\win32\opensource\core\win32\syscall.c @ 480]
WARNING: Frame IP not in any known module. Following frames may be wrong.
05 1e929388 7d6292a1 0x1e962e58
06 1e9293d4 7d6290a4 ntdll!RtlpDeCommitFreeBlock+0x1fb
07 1e9294b8 7d674406 ntdll!RtlFreeHeap+0x44f
08 1e9294e0 1008b7f8 ntdll!RtlWalkHeap+0x8d
09 1e9295c8 100051a2 drmemorylib!heap_iterator+0x9e8 [e:\derek\dr\win32\oss-clients\drmemory\common\heap.c @ 237]
0a 1e9295d8 1000324a drmemorylib!heap_walk+0x12 [e:\derek\dr\win32\oss-clients\drmemory\drmemory\drmemory.c @ 982]
0b 1e9295e0 1001c9c4 drmemorylib!set_initial_layout+0x1a [e:\derek\dr\win32\oss-clients\drmemory\drmemory\drmemory.c @ 999]
0c 1e929a4c 10007880 drmemorylib!instrument_bb+0x34 [e:\derek\dr\win32\oss-clients\drmemory\drmemory\readwrite.c @ 2948]
_Original issue: http://code.google.com/p/drmemory/issues/detail?id=201_
Contributor guide
Assessment
This issue has not been assessed yet.