-
Notifications
You must be signed in to change notification settings - Fork 907
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
rustfmt crashes inside ./x.py test #5303
Comments
I realize things can be somewhat muddy given the subtrees/modules, but when you encounter an issue working in the rust-lang/rust repository it's typically best to report the issue in that same repository. We're not doing any work with raw pointers in rustfmt, so I'd assume this is actually surfacing up from the compiler internals of which rustfmt is a consumer. I'm going to reach out to the infra team to suggest that they transfer the issue, though I'd also encourage you to post some more specifics about your local environment where you're experiencing the issue, including the git details of your local rust-lang/rust repo |
Based on chat in Zulip I'm going to close as a functional dupe of rust-lang/rust#92173. Seems you should be able to work around this by enabling jemalloc in your local config.toml file |
Thank you, and apologies if this was misfiled. I was under the (probably wrong) assumption that the way the crash happens in stage0 rustfmt that it was a precompiled rustfmt that crashes. None of the suggestions in rust-lang/rust#92173 worked for me and it didn't describe rustfmt, therefore I opened an issue here. |
I'm seeing the same issue with my codebase after upgrading the toolchain to 1.60 (even though rustfmt version hasn't changed). The issue disappears if I downgrade to 1.59. That makes me wonder if it's a rustc issue in disguise. |
I am trying to run the rustc tests, but rustfmt is crashing like given below. I am on macOS Monterey, XCode 13.3, on an M1 Macbook Pro.
The text was updated successfully, but these errors were encountered: