-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fix TLS dtor + memory leaks on macOS #443
Comments
IIUC this was fixed here: |
The issue here is about Miri entirely ignoring |
I'd like to take a crack at this issue. I have a macOS laptop, just need some guidance on where to get started. 😄 |
@kennethbgoodin great! Not knowing the macOS APIs in detail, I can only guess here. The first step is to make sure that you can locally build and run Miri; please let me know if you need any help with that. Then remove macOS from this line to enable leak checking on macOS. My guess for what you will need to implement is this stub. Unfortunately I found no docs for These are high-level instructions; I can go into more detail once you have concrete questions. :) |
Okay I've done the first steps and have which tests are failing (168!). From looking at what rustc does it sounds like our Adding the field to |
That's likely the same cause for all of them, just pick one (let's say
Why a list? All I can see is a single function pointer, and a pointer that is passed to that function as an argument. |
We currently ignore memory leaks on macOS. Likely, this is due to not properly executing TLS destructors in
_tlv_atexit
. Debugging this requires a libstd with full MIR for macOS, which currently we do not know how to do cross-platform -- so, someone who's actually using macOS should take this.The text was updated successfully, but these errors were encountered: