purpleprotocol / mimalloc_rust

A Rust wrapper over Microsoft's MiMalloc memory allocator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work on Oracle Linux aarch64 VPS

nicolaspernoud opened this issue · comments

Hello,

I am aware that is somehow a blind shot, and please close this issue if it is not appropriate, but I have a very strange behaviour on aarch64 Linux.
A binary (in a docker container) compiled to aarch64-unknown-linux-musl works fine on a raspberry pi 4, but not at all on an ARM Oracle Linux VPS (in Oracle Cloud always free tier). The app eats ALL the available RAM (filling 24 GB), and does not seems to start at all.

Any idea on what could be the problem ? The behaviour is the same with all versions between 0.1.34 and 0.1.39 .

Hmm, v0.1.34 only changes the extended api and v0.1.33 is yanked because the extended api is not correct there. Seems like an upstream issue to me.

This is what changed in v0.1.33 according to the mimalloc changelog:

2022-12-23, v1.7.9, v2.0.9: Supports building with asan and improved Valgrind support. Support abitrary large alignments (in particular for std::pmr pools). 
Added C++ STL allocators attached to a specific heap (thanks @vmarkovtsev). Heap walks now visit all object (including huge objects). Support Windows nano server containers (by Johannes Schindelin,@dscho). Various small bug fixes.

Thanks for your reply. I'll try to investigate with several OS and kernel releases. I'll close the issue for now, if i manage to work out what the cause is, I'll update it afterwards.