DynamoRIO / DynamoRIO/drmemory

drmemory causes HeapValidate to fail with FALSE return

Open
#2,109 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

I'm using drmemory on Windows 10 10.0.10240 Build 10240:
>Dr. Memory version 1.11.0 build 2

My test program is:

```c
#include
#include

int main(void) {
HANDLE heap = GetProcessHeap();
BOOL worked = HeapValidate(heap, 0, NULL);

if(!worked) {
printf("Invalid heap!\n"); // Output when executed with drmemory
return -1;
}
printf("Valid heap.\n"); // Output without drmemory
return 0;
}
```
When I execute my application without drmemory:
>\>./app.exe
>Valid heap.

and with drmemory:
>\>drmemory.exe -- ./app.exe
>Invalid heap!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.