microsoft / mimalloc

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

[BUG] `free(): invalid pointer` (moved from `vscode-dotnettools` repo) #792

Open enihcam opened 1 year ago

enihcam commented 1 year ago
          Root cause located: Instead of glibc standard malloc, I'm using Microsoft [mimalloc](https://github.com/microsoft/mimalloc) as my memory allocator.
~ $ cat /etc/ld.so.preload 
/usr/lib/libmimalloc.so

after reverting back to glibc, the projects can be successfully loaded.

Originally posted by @enihcam in https://github.com/microsoft/vscode-dotnettools/issues/275#issuecomment-1646731337

enihcam commented 1 year ago

Steps To Reproduce

  1. create a remote environment that can be SSH-ed.
  2. in the remote environment, install mimalloc and write /usr/lib/libmimalloc.so to /etc/ld.so.preload, and reboot.
  3. open the remote environment with VSCode.
  4. install C# extension and C# Dev Kit extension
  5. open all.sln from https://github.com/Azure/Bridge-To-Kubernetes.git
enihcam commented 6 months ago

ping. @daanx