Skip to content

debuginfo: Add temporary workaround for #14871. #14909

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

Closed

Conversation

michaelwoerister
Copy link
Member

Whenever something is added to the debuginfo::TypeMap there's a consistency check, making sure that the code does what it is supposed to do. For some types (e.g. slices in a recursion cycle) this check rightfully fails. However, there's no need to actually abort compilation as the inconsistency won't lead to corrupt state, due to LLVM metadata uniquing.

A later, more thorough fix (coming next week) should remove the inconsistency altogether and also make this check non-fatal. For the time being, omit the check so people can compile their code with -g.

@pnkfelix
Copy link
Member

@michaelwoerister thanks, I was literally just about to do this (but with a far less informative comment...)

@michaelwoerister
Copy link
Member Author

@pnkfelix Thanks for taking a look at this. Mind that I had to force-update this just now, as there was an unused variable warning in the first version :/
I'm running RUSTFLAGS_STAGE2=-g make check locally at moment. It will take a little before this is finished, but if it passes, we can be reasonably sure that there are no ICEs lurking somewhere in there...

@michaelwoerister
Copy link
Member Author

Well, unfortunately it seems that the inconsistency is not so harmless after all. I'm running into LLVM assertions without the check. I guess, we're stuck with these crashes until I have time for a proper fix. Sorry for the inconvenience. However, I should be able to switch around my schedule for next week and take care of this tomorrow...

@pnkfelix
Copy link
Member

Ah I had noticed that privately last night when giving my own version of this a shot, and had assumed (because I wasn't thinking) that it was an orthogonal bug. In hindsight that was silly of me. Thanks for being thorough.

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
Run CI on nightly rust when proc-macro-* crates change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants