-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
fd segfaults on macos Catalina #498
Comments
Thank you very much for reporting this. This seems to be related to gnzlbg/jemallocator#136 and jemalloc/jemalloc#1633 Rolling back to fd v7.3.0 could work, because it did not include jemalloc. Alternatively, you could also take the current MacOS Catalina really seems to be cause (or reveal?) a lot of problems, first in bat, now here. Maybe related: https://tyler.io/broken/ |
You're welcome! It does appear that this is related to jemallocator. Thanks for the pointers. My personal experience with Catalina has been quite positive TBH. I do hear that it's not been smooth sailing for a lot of folks. I assume that this issue is to remain open until the upstream issue is resolved ? Thanks. PS: Thanks also for a great tool! :) |
I can confirm we are seeing this in Homebrew builds. This is fixed by applying the following patch:
|
Waiting until jemalloc/jemalloc#1633 gets resolved... |
Well, this still is relevant. Why wouldn't put jemalloc behind a feature? Or exclude it from macOS? |
|
It's okay. It will be better to be able to install without a feature ( |
Homebrew is already shipping fd without jemalloc, and we have 7,792 installs per month. There really is no other choice, given that with jemalloc in the default it segfaults. However, if the issue is not fixed, we will have to consider dropping fd from the software we distribute: we do not want to patch and deviate from the upstream version from the long term. |
The only thing we can do here (as a workaround) is to disable jemalloc on MacOS completely (I don't think Rust feature gates support filtering by OS version: https://doc.rust-lang.org/reference/conditional-compilation.html#target_os). This would be a (performance) regression for users of older MacOS versions as this only seems to be an issue on Catalina 😞. What we would really need is someone with a MacOS Catalina setup that could help debug the original issue with jemalloc in jemalloc/jemalloc#1633 |
Confirm, 8.1.0 works well on Catalina. |
Hi.
Here are some details:
To demonstrate the problem, I reinstalled fd as below:
The resulting binary segfaults as follows:
On prying with lldb, I see this:
Note that the problem goes away if I build fd in debug mode:
Happy to provide any other info as needed.
Thanks!
The text was updated successfully, but these errors were encountered: