What is the proper way to implement MALLOC_CHECK_ on Linux?

  • 7009879
  • 09-Dec-2011
  • 28-Dec-2017

Environment

Novell eDirectory 8.8 for Linux

Situation

If eDirectory cores, Novell Technical Support may find that there is memory corruption.  They will ask that you enable "MALLOC_CHECK".  The sole goal of this document is to identify the proper way to implement this setting and point to other documents on this topic.

Resolution

For Linux -- Open Enterprise Server 2 (OES2) or Suse Linux Enterprise Server servers, do the following:
  1. identify the location of the pre_ndsd_start script
    (current location is in /opt/novell/eDirectory/sbin)

  2. edit the pre_ndsd_start script and put the following line at the top

    export MALLOC_CHECK_=3
    NOTE: eDirectory on SLES 12 or RHEL 7:  You must add all environment variables required for the eDirectory service in the env file located in the /etc/opt/novell/eDirectory/conf directory.export
  3. Restart ndsd    (rcndsd restart)
    Note: this will restart ncpserv as well, and other services like clustering on OES may *not* reconnect properly.  In this case, it may be more expedient to restart the entire server.


Additional Information