microsoft / microsoft/mimalloc
Error 0xC000005 in MSVC
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
Currently I'm testing mimalloc for our internal neural network inference engine. I'm using the overriding method (linking mimalloc-override.lib). Error 0xC000005 is reported by MSVC.
Our engine uses JIT (xbyak) to generate kernels, and for one certain model, the whole program crashes at one of the operators. Notably, every time it happens, it is at the very beginning of accessing the JIT kernel, and the starting address always ends with 0000.
This implies that the kernel is aligned to 64KB, right? Any thoughts why the crash might happen?
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository file or test is named. Start by reproducing the crash with MSVC, mimalloc-override.lib, and the xbyak-generated kernel, then inspect the operator failure and its reported starting address; done means identifying whether mimalloc causes the invalid access and documenting a confirmed fix or minimal reproducer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100