Fix bugs for the beam_debug_info option#10735
Merged
bjorng merged 4 commits intoerlang:masterfrom Feb 26, 2026
Merged
Conversation
Contributor
CT Test Results 5 files 548 suites 2h 0m 53s ⏱️ Results for commit 0f25922. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
0e19f2a to
8d4644f
Compare
lucioleKi
previously approved these changes
Feb 19, 2026
cff68a1 to
1cf2885
Compare
If a module is compiled with the `beam_debug_info` option, the
corresponding chunk for BEAM debug info ("DbgB") should not be
removed by the `slim` option for the compiler or by stripping
using `beam_lib`. That implies that the chunk should be essential
and also included in the calculation of MD5 for the module.
There could be a memory leak when attempting to load invalid BEAM files.
1cf2885 to
0f25922
Compare
lucioleKi
approved these changes
Feb 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix bugs where the compiler could generate invalid BEAM files when the
beam_debug_infooption was given.Also ensure that that loading will fail (instead of crashing the runtime system) when BEAM files lack the "DbgB" or "Recs" chunks when they are referenced by BEAM instructions.
Fixes #10557