-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.1.2: Assertion failure on arm64 (16 vCPU graviton2) #851
Comments
That assertion should not fail -- I pushed a possible fix (to |
No dice. Seems like for whatever reason When i remove the I did a quick test on godbolt with variations of:
[godbolt] x86-64, gcc 7.1 - 9.5 don't like the compound preprocessor statement [godbolt] x86-64 gcc 10.x are okay with the compound preprocessor statement, but still gives the error on the [godbolt] x86-64 gcc 11.1 - 13.2 built succeesfully. [godbolt] ARM64 gcc 7.5 still doesn't like the compound statement, but will compile separated out, but oddly the interior of the |
Apologies for the late followup; wow-- thanks for trying all these variations .. but yikes, not sure how to deal with such inconsistent behaviour. Even without thread_pointer the assembly should work I think.. or otherwise the portable fall back to a thread local solution; can you try to run with that option in |
I’m on vacation this week and most of next but will try to spare some time
to take a look when I’m back.
…On Tue, Mar 26, 2024 at 9:51 AM Daan ***@***.***> wrote:
Apologies for the late followup; wow-- thanks for trying all these
variations .. but yikes, not sure how to deal with such inconsistent
behaviour. Even without thread_pointer the assembly should work I think..
or otherwise the portable fall back to a thread local solution; can you try
to run with that option in include/prim.h:248. ? (you would need to
disable some of the preceding #ifs.
—
Reply to this email directly, view it on GitHub
<#851 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM6MXYFKV4LRGGXJJH65XTY2C2ABAVCNFSM6AAAAABDIYR5QKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJZGEYTSMZVHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I think release |
This seems similar to #354 and I suspect the solution is similar.
Mimalloc v2.1.2
Assertion:
This is running on a m6g.4xlarge AWS instance with a graviton2 CPU.
At application startup,
_mi_heap_main.thread_id
is initialized to0xfffff7fefcd0
and that is what_mi_thread_id()
returns as well.However, at some point the return value of
_mi_thread_id()
changes:It's not immediately apparent what triggers it.
Worth pointing out that neither value matches what GDB thinks the thread ID or the LWP is:
The library is built on a different host using Conan, and I'm not sure what the params of that host are.
Kernel is
5.4.0-1103-aws #111~18.04.1-Ubuntu SMP
and GLIBC is2.27-3ubuntu1.5
on the host that it's running on.The text was updated successfully, but these errors were encountered: