Skip to content

Better error message when receiving SIGBUS #8

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

Forestryks
Copy link

While we have a disk space check to avoid getting SIGBUS when writing to mmaped output file, this check is a bit racy as available disk space can go down between this check and actual write. In this feature we add a special handling for SIGBUS, that will change error message from

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.

to

Linker received SIGBUG which most likely means that there is insufficient disk space available. If you think this is not the case, please reach out internally for assistance.

@poechsel poechsel merged commit 3dbb0fb into main Apr 22, 2025
1 check passed
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