Repository navigation
Conversation
|
@octavonce @svix-jbrown @DouglasDwyer It would be great to get this PR merged in! |
|
v3.4.4 is already out :) |
|
Is it possible to make some solution to update mimalloc without releasing a new version of crate? Other than a fork. |
|
Would it be possible to get updated to v3.4.4? It contains one critical fix for macOS (microsoft/mimalloc#1327 (comment)) |
+1 cc @xonatius |
|
@octavonce @svix-jbrown @DouglasDwyer possible to get this PR merged and released? As it contains a critical memory corruption fix for macOS 🙏 |
|
mimalloc v3.4.5 (and 2.4.5) released yesterday, could this MR be updated with the newer versions before merge? |
+1 cc @xonatius |
|
@octavonce Would you like to add another person as a maintainer so that this crate can be updated more frequently? (I can offer mе) I think this would be more convenient than having every user create their own fork, since this repository is the most popular one. |
Bump the v2 submodule from v2.3.2 to v2.4.5 and the v3 submodule from v3.3.2 to v3.4.5. The v3 bump fixes a segmentation fault in the currently shipped v3.3.2 sources: mimalloc v3.3.0-v3.3.2 crashes under multi-threaded use (SIGSEGV in _mi_theap_default_set during thread heap init), which affects this crate since v3 is the default. Fixed upstream in v3.4.x. See microsoft/mimalloc#1287.
|
Yeah it should be beneficial to have another maintainer who can code review / merge / publish. ping @octavonce |
|
Is @octavonce the only person with write permissions to this repo? Does anyone know how to get ahold of him outside of GitHub? |
|
mimalloc 3.5.1 out already too |
|
https://github.com/houseme/rustfs-mimalloc Only v3 versions are supported |
|
This update would also fix a Windows crash that Symptom: access violation (0xC0000005) reading address 0x8 in Cause: on Windows, Minimal C reproduction (MSVC 2022, #include <stdio.h>
#include <windows.h>
#include <mimalloc.h>
static void* block;
static DWORD WINAPI worker(LPVOID arg) {
block = mi_realloc(block, 600); // first mimalloc call on this thread; shrinks 1000 -> 600
return 0;
}
int main(void) {
block = mi_malloc(1000);
HANDLE t = CreateThread(NULL, 0, worker, NULL, 0, NULL);
WaitForSingleObject(t, INFINITE);
mi_free(block);
puts("OK");
return 0;
}v3.3.2: exits with 0xC0000005. v3.4.0: prints OK. As a workaround, we use the |
|
Another independent Windows report that this PR fixes, with a different fault site than the one above. Symptom: access violation (0xC0000005) reading address 0x18 in Cause: in three minidumps Verification: we rebuilt the same Polars tag with only Full write-up with the disassembly: pola-rs/polars#29883. A merge and a crates.io release would let downstream projects drop their private builds. |
|
There is now the official create in upstream (microsoft/mimalloc#1405) so its possible to avoid the issues with Hopefully |
|
Bump to say it would be great to get this fixed - having issues with polars in a Streamlit app that will crash on Windows |
The crates.io mimalloc wrapper still bundles 3.3.2, and its upgrade PR has been open since July. Microsoft leaves registry publishing to downstream projects. The active mimalloc3 fork automates update PRs but has no public publishing workflow. purpleprotocol/mimalloc_rust#169 microsoft/mimalloc#1405 (comment) https://github.com/Mnwa/mimalloc_rust/tree/master/.github/workflows Mimalloc 3.5 reduces cache contention and speeds up small-block frees. 3.6 avoids over-allocation for naturally aligned requests, and 3.7 retains less excess capacity when Rust buffers shrink. https://github.com/microsoft/mimalloc/blob/v3.7.0/readme.md#releases microsoft/mimalloc#1488
Bump the v2 submodule from v2.3.2 to v2.4.5 and the v3 submodule from v3.3.2 to v3.4.5.
The v3 bump fixes a segmentation fault in the currently shipped v3.3.2 sources: mimalloc v3.3.0-v3.3.2 crashes under multi-threaded use (SIGSEGV in _mi_theap_default_set during thread heap init), which affects this crate since v3 is the default. Fixed upstream in v3.4.x. See microsoft/mimalloc#1287.
Resolves #168