Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong mimalloc stat with asan #938

Open
thweetkomputer opened this issue Sep 11, 2024 · 0 comments
Open

Wrong mimalloc stat with asan #938

thweetkomputer opened this issue Sep 11, 2024 · 0 comments

Comments

@thweetkomputer
Copy link

#include <stdlib.h>

int main() {
    int *a = (int *)malloc(sizeof(int));
    *a = 1;
    
    return 0;
}

Hi, I wrote a demo and want to use mimalloc with asan enabled.

 gcc test.c -I/usr/local/include/mimalloc-2.1 -lmimalloc-asan-debug -fsanitize=address -fsanitize-recover=address -lpthre

I found that the stats all become zero, is this normal?
image

But the stat shows normally when asan is disabled.
image

Can you help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant