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

HiPE: Better crash message for internal errors and fix icode_call_elim crash #1253

Merged
merged 2 commits into from
Nov 23, 2016

Conversation

margnus1
Copy link
Contributor

It will now print the MFA/module being compiled, and pretty-print the backtrace with
lib:format_stacktrace/4.

Additionally, the error_msg/2 macro in hipe.hrl will now respect the
HIPE_LOGGING define, since messages produced by this macro just before
runtime shutdown were sometimes lost (since code_server:error_msg/2 is
asynchronous).

Print the MFA/module being compiled, and pretty-print the backtrace with
lib:format_stacktrace/4.

Additionally, make the error_msg/2 macro in hipe.hrl respect the
HIPE_LOGGING define, since messages produced by this macro just before
runtime shutdown were sometimes lost (since code_server:error_msg/2 is
asynchronous).
hipe_icode_call_elim could in some cases replace an #icode_call{} with
control flow with a move instruction. This would break the control flow
graph invariants and cause a crash.
@bjorng bjorng added fix team:VM Assigned to OTP team VM labels Nov 21, 2016
@sverker sverker added the testing currently being tested, tag is used by OTP internal CI label Nov 22, 2016
@sverker sverker self-assigned this Nov 22, 2016
Copy link
Contributor

@sverker sverker left a comment

Choose a reason for hiding this comment

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

This is a fix for a compile time crash, right?

@margnus1
Copy link
Contributor Author

@sverker Right. Hipe will crash at compile time trying to optimise away a call to maps:is_key/2 with a fail (exception handler) label.

@sverker sverker merged commit bb4624a into erlang:maint Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants