-
Notifications
You must be signed in to change notification settings - Fork 917
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
mimalloc (v2, v3) immediately crashes in mi_free on MacOS #1029
Comments
Darn -- I just released a fresh version -- ah well. I will look into this; if you have a small repro that would be great. btw. I noticed too that recently the thread local data allocation is hard coded to use the system allocator :-(. |
Reading about different TLS modes, it seems like |
Looking at
seems to be calling into this https://github.com/apple-oss-distributions/dyld/blob/b492ac15734277d89795b6f97f0e2feb1aa45595/libdyld/LibSystemHelpers.cpp#L75-L78:
wondering if such calls can be intercepted ... (not with dynamic linking, i assume, since mimalloc has to be loaded after |
Good news is that I was able to get it working with static override. |
Hi, I woke up the other day - and it seems to magically work now :) I can't repo the issue anymore -- perhaps, I was not recompiling with the right TLS model? ... Weird. |
MacOS 15.3.1, XCode 15.2.
Hi! I'm hitting the following issue: mimalloc seems to reliably crash our application.
The callstack is always the same:
I suspect (and it what I've seen when I set breakpoint on "malloc") that TLS data is not allocated via mimalloc, ex:
but still is being deallocated via mimalloc... Any ideas or suggestions here? Thanks!
The text was updated successfully, but these errors were encountered: