Skip to content

Address Sanitizer doesn't call new_handler when allocation fails #15916

@mclow

Description

@mclow
Bugzilla Link 15544
Version trunk
OS MacOS X
Attachments Example program - taken from libc++ test suite
CC @chandlerc,@ramosian-glider,@kcc,@seanm,@timurrrr

Extended Description

After calling set_new_handler(), if I attempt to allocate memory, and that fails, I expect to have my new handler called.

This works fine w/o ASan. But with ASan, the new handler is not called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions