mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

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

Open enihcam opened this issue 2 years ago • 2 comments

          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 avatar Jul 23 '23 02:07 enihcam

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 avatar Jul 23 '23 03:07 enihcam

ping. @daanx

enihcam avatar Apr 04 '24 02:04 enihcam