How to trigger memory check instead of aborting the program when memory error is discovered?

Solution In Progress - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content