Skip to content

fix: indicate in readModuleDataParts if memory is exhausted#13549

Merged
Kha merged 1 commit into
leanprover:masterfrom
eric-wieser:fix-module-malloc
May 5, 2026
Merged

fix: indicate in readModuleDataParts if memory is exhausted#13549
Kha merged 1 commit into
leanprover:masterfrom
eric-wieser:fix-module-malloc

Conversation

@eric-wieser
Copy link
Copy Markdown
Contributor

@eric-wieser eric-wieser commented Apr 27, 2026

This PR makes readModuleDataParts report a clearer error if there is insufficient memory to load a module.

changelog-ignores-my-messages-unless-i-edit-the-description-afterwards

Previously the message would suggest that the file was missing, since `read()` would fail with `EFAULT`.
@eric-wieser
Copy link
Copy Markdown
Contributor Author

changelog-library

@github-actions github-actions Bot added changelog-library Library toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN labels Apr 27, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase cae4decead7dae180b50b25f2225419a1ed4280e --onto 3c6317b6d77a565b4217532d1190ac6955dba842. You can force Mathlib CI using the force-mathlib-ci label. (2026-04-27 21:20:45)

@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase cae4decead7dae180b50b25f2225419a1ed4280e --onto 3fc99eef102549c743c6c63547983319bfae6f01. You can force reference manual CI using the force-manual-ci label. (2026-04-27 21:20:47)

@eric-wieser
Copy link
Copy Markdown
Contributor Author

@hargoniX, since you reviewed the other one hopefully this one is easy

@Kha Kha added this pull request to the merge queue May 5, 2026
Merged via the queue into leanprover:master with commit a2c4b73 May 5, 2026
20 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-library Library toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants