Skip to content
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

detect linker error due to bus error and categorize it as spurious #759

Merged

Conversation

Skgland
Copy link
Contributor

@Skgland Skgland commented Dec 19, 2024

This should handle the linker errors as requested in #700 (comment)

@@ -16,6 +16,7 @@ impl ResultName for FailureReason {
FailureReason::OOM => "OOM".into(),
FailureReason::ICE => "ICE".into(),
FailureReason::NoSpace => "no space left on device".into(),
FailureReason::BusErrorWhileLinking => "bus error while linking".into(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we instead categorize this failure as Failure::NoSpace? "bus error while linking" is not that helpful if you don't know what causes it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I was missing that causal relationship myself. In that case it makes sense to sort the bus error while linking under no space if it is the underlying fault. I will make the change when I am back in front of a computer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have amended the PRs commit accordingly.

- sorted under NoSpace as thats the underlying reason for the bus error
@Skgland Skgland force-pushed the detect-spurious-linker-errors branch from fb87d45 to 31306ad Compare December 30, 2024 14:22
@Skgland Skgland requested a review from pietroalbini December 30, 2024 17:02
Copy link
Member

@pietroalbini pietroalbini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pietroalbini pietroalbini added this pull request to the merge queue Dec 30, 2024
Merged via the queue into rust-lang:master with commit 01049c0 Dec 30, 2024
3 checks passed
@Skgland Skgland deleted the detect-spurious-linker-errors branch December 30, 2024 23:00
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