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

new_handler must throw std::bad_alloc or something derived from it. #6542

Closed
hkaiser opened this issue Sep 11, 2024 · 0 comments · Fixed by #6543
Closed

new_handler must throw std::bad_alloc or something derived from it. #6542

hkaiser opened this issue Sep 11, 2024 · 0 comments · Fixed by #6543

Comments

@hkaiser
Copy link
Member

hkaiser commented Sep 11, 2024

Currently our new_handler that is invoked in OOM contexts throws an hpx::exception (see

[[noreturn]] HPX_CORE_EXPORT void HPX_CDECL new_handler()
{
HPX_THROW_EXCEPTION(hpx::error::out_of_memory, "new_handler",
"new allocator failed to allocate memory");
}
). This is UB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant