mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

mimalloc is a compact general purpose allocator with excellent performance.

Results 266 mimalloc issues
Sort by recently updated
recently updated
newest added

Root cause located: Instead of glibc standard malloc, I'm using Microsoft [mimalloc](https://github.com/microsoft/mimalloc) as my memory allocator. ```bash ~ $ cat /etc/ld.so.preload /usr/lib/libmimalloc.so ``` after reverting back to glibc, the projects...

Stacktrace: ![image](https://github.com/microsoft/mimalloc/assets/20509814/3e82f100-2cdb-4011-af29-938ec7d79817) While assembling a JSON with RapidJSON, a temporary rvalue std::string is created and the C array is copied. When the string is destroyed, the crash happens. ![image](https://github.com/microsoft/mimalloc/assets/20509814/3debbbdb-5d60-4c6c-9582-3a713ad8d378) ![image](https://github.com/microsoft/mimalloc/assets/20509814/2c73838a-37d0-4425-a348-560b2bdf42b8)

in commit f5f61a65f544fc24cd87080d264647714b6c30da, version is bumped to 2.1.4, but no new tag is pushed since 2.1.2

At application start, I am seeing the following output: ``` mimalloc-redirect: error: mimalloc-redirect.dll seems to be initialized after ucrtbase.dll (hint: try to link with 'mimalloc-override.lib' earlier on the command line?)...

- I have a dynamic library which cannot be linked against mimalloc for some reason `// MyDynLib.cpp` ![image](https://github.com/microsoft/mimalloc/assets/115399898/9dc97e71-ae34-4718-add3-a42cdcc2b18f) `add_library(myDynLib SHARED MyDynLib.cpp)` - in my main program which link against mimalloc,...

Does `MI_OVERRIDE=ON` cmake option imply that new/delete are overridden in addition to the C malloc/etc interface? If I compile with `MI_OVERRIDE` on Linux, I get "multiple definition" linker errors when...

I am trying to override the new/delete operators as suggested in the [documentation](https://microsoft.github.io/mimalloc/using.html). I am using vcpkg and added the following statements in my CMakeLists.txt file: ``` find_package(mimalloc 1.6 REQUIRED)...

After configuring the build by cmake and with `MI_USE_CXX=ON` option, it fails to build for android with ndk `25.2` (clang 14.0.6) due to a template type deduction on a function...

The problem does not occur on linux. https://github.com/microsoft/mimalloc/blob/master/src/alloc.c#L212 ``` (lldb) r Process 93543 launched: './bin/arangodbtests' (x86_64) mimalloc: option 'secure': 0 mimalloc: option 'pool_commit': 0 mimalloc: process init: 0x7fffc980c3c0 mimalloc: debug...

Version: mimalloc v2.1.2 Mode: Static linking, override, ASAN OS: Linux (RHEL 7.9.2009) Compiler: GCC 10.3.0 Minimal repro: mimalloc built with: `cmake3 .. -DCMAKE_BUILD_TYPE=Debug -DMI_TRACK_ASAN=ON` Source code `testing.cpp` ``` #include #include...