microsoft / microsoft/mimalloc

Mimalloc v2.0.6 conflicts with Nvidia Nsight

Open
#626 5 comments 2 reactions 0 assignees View on GitHub

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:

  1. You need an application with mimalloc integrated (D:/app.exe for example)
  2. Run it using Nvidia Nsight:
    image
  3. In the debug configuration we get an assert:
    image
  4. Here is the mimalloc output:
    image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.