-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Assert failed in _mi_segments_collect #1031
Comments
Same here:
|
Same here, see WebAssembly/binaryen#7378 (comment) and https://github.com/WebAssembly/binaryen/actions/runs/13925295048/job/38975354336?pr=7378#step:10:2629
I tried
Interestingly, when I don't link statically (which is what we try in WebAssembly/binaryen#7378) but instead replace the allocator via Could it be that I am missing some option related to pthreads when building/linking mimalloc as a static library? Since this assertion is behind a Line 526 in f11732a
|
Strange! I cannot repro and not sure what is the cause. Can you repro with v1.8.9 as well? If you can break on it, can you check if |
Repro instructions of the assertion failure on x64 Linux with mimalloc
Input .wasm file for the last step compose-benchmarks-benchmarks-wasm-js.zip With v1.8.9 (i.e., rebuilding after |
When building mimalloc, are these lines problematic/surprising: See output of the cmake step above (
Also, there are a bunch of compiler warnings related to atomic loads, what's up with those?
|
Is GCC supported? By default I build with
but if I switch to Clang, the failing library checks go away, as do the atomic load warnings:
|
Hi @danleh -- thanks for all the feedback! Looking into it.
tbc. |
Hi @danleh -- I tried to repro but when I clone the binaryen repository as above, there is no |
@daanx it landed just a few hours ago on (can see it here: https://github.com/WebAssembly/binaryen/tree/main/third_party ) |
My bad, the repro instructions in the comment above were missing a checkout of the mimalloc-static branch. Note that instructions clone from danleh/binaryen - a fork that contains said branch. It then should have the third_party/mimalloc directory. |
It is fixed now. The assertion was wrong -- it is only true if |
Awesome, thanks a lot! (and for fixing the visibility warning as well :) ) |
And following up on your earlier questions in #1031 (comment)
I am compiling on a Linux Debian Testing derivate, x64, gcc 14. However, the issue seems to be the integration with binaryen's build again. The problem was that binaryen adds
The warnings are gone with any of the |
And some minor drive-by fixes: gitignore Ninja in-tree build file, update mimalloc to latest stable release. This gets rid of warnings in the mimalloc cmake/make step. See microsoft/mimalloc#1031 (comment) and microsoft/mimalloc#1038.
The assert
failed during function "_mi_segments_collect" called by "mi_heap_collect_ex" in heap.c :161, this only happened in the latest version 1.9.3.
The text was updated successfully, but these errors were encountered: