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

Exception menu: by default new aborts on OOM #7544

Closed
wants to merge 1 commit into from

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Aug 23, 2020

Previously: new was returning nullptr after calling constructor on null object

replaces and closes #7536

Previously: new was returning nullptr after calling constructor on null object
Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

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

I think this is only partially there.

The core abi.cpp new/new[] code needs to be modified, too, to set a special "OOM" flag and panic(). The core_postmortem should look at the flag (it already checks a bunch of other things) and dump the appropriate message.

Presently, this will let g++ to call new(), get a nullptr, and try to call the constructor on it...

@d-a-v
Copy link
Collaborator Author

d-a-v commented Aug 24, 2020

Closing in favor of #7536 which is now simplified, merged with this PR and consider the above review

@d-a-v d-a-v closed this Aug 24, 2020
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