I have a dynamic library which cannot be linked against mimalloc for some reason
// MyDynLib.cppadd_library(myDynLib SHARED MyDynLib.cpp)
in my main program which link against mimalloc, i use dlopen/dlsym to explicitly call the function in the above prebuilt dynamic library
// TestMimalloc.cppadd_executable(MyProgram TestMimalloc.cpp)target_link_libraries(MyProgram PUBLIC mimalloc -ldl)
i ran my program using LD_PRELOAD=/path/to/libmimalloc-debug.so and MIMALLOC_VERBOSE=1, but it crashed (saying free(): invalid pointer)where i call the function defined in the prebuilt dynamic library
I have a dynamic library which cannot be linked against mimalloc for some reason
// MyDynLib.cpp
add_library(myDynLib SHARED MyDynLib.cpp)
in my main program which link against mimalloc, i use dlopen/dlsym to explicitly call the function in the above prebuilt dynamic library
// TestMimalloc.cpp
add_executable(MyProgram TestMimalloc.cpp)
target_link_libraries(MyProgram PUBLIC mimalloc -ldl)
i ran my program using LD_PRELOAD=/path/to/libmimalloc-debug.so and MIMALLOC_VERBOSE=1, but it crashed (saying free(): invalid pointer)where i call the function defined in the prebuilt dynamic library![image](https://github.com/microsoft/mimalloc/assets/115399898/da4629ff-8e67-499d-8931-824fef7d0f2d)