microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
10.45k stars 843 forks source link

Crash on application startup on Win7 but normal on Win10 #848

Open Sdalin1 opened 8 months ago

Sdalin1 commented 8 months ago

When I use mimalloc by static linking, my program runs normally. However, when I use dynamic linking (mimalloc-override.dll + mimalloc-redirect.dll), my program crashes before the main function starts, indicating an error related to ntdll.dll. The stack shows ntdll.dll*4 then mimalloc-redirect.dll*3 then ntdll.dll*1 then mimalloc-redirect.dll*3 then ntdll.dll*3. It only crashes on Win7, but runs OK on Win10. I've tested version 1.7.6 and 2.1.2, and the results are the same.

nickdademo commented 3 months ago

I am also seeing this Win7 crash on 2.1.7.