microsoft / microsoft/mimalloc
Mimalloc v2.0.6 conflicts with Nvidia Nsight
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
Hello!
I found an issue while using mimalloc v2.0.6 and Nvidia Nsight.
Here are the steps:
- You need an application with mimalloc integrated (D:/app.exe for example)
- Run it using Nvidia Nsight:

- In the debug configuration we get an assert:

- Here is the mimalloc output:

It looks like the problem is that Nvidia Nsight conflicts with mimalloc. Both are injected into the DLL load order to intercept the messages they need, and in this case Nsight is loaded first and prevents mimalloc from properly intercepting malloc/free calls.
Any thoughts on how this can be fixed?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported assert with mimalloc v2.0.6 and Nvidia Nsight using the DLL load order described in the issue. Inspect how mimalloc intercepts malloc/free when Nsight is loaded first, then define a fix that preserves correct interception and confirms the application runs without the assert.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100