How to trigger memory check instead of aborting the program when memory error is discovered?
Issue
- Is it possible to trigger memory checking before exit() runs? I’d like to do something similar to mcheck() during the run of a sanitized program.
- How do I disable aborting when a memory error is discovered? I’ve exported ASAN_OPTIONS=abort_on_error=0 but it has no effect.
Environment
- Red Hat Enterprise Linux 6
- gcc-4.9.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
