Why do I get sporadic crashes with some applications in Red Hat Enterprise Linux when the MALLOC_CHECK_ environment variable is set?

Solution Verified - Updated -

Issue

  • I receive sporadic crashes with some applications in Red Hat Enterprise Linux (RHEL) 5.4 or 5.5 when the MALLOC_CHECK_ environment variable is set
  • SIGSEGV occurs when freeing memory with checking free() with MALLOC_CHECK_.
    # MALLOC_CHECK_=3 ./malloc_test
    malloc: using debugging hooks
    Segmentation fault
    

Environment

  • Red Hat Enterprise Linux 5.4

  • Red Hat Enterprise Linux 5.5

  • MALLOC_CHECK_ environment variable is  set

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