1. Install Dmalloc Redhat has been installed 2. AutoConf use shell: function dmalloc {eval `Command Dmalloc -b $ *`;} configure.ac: See Gateway's configure.ac header file: (must be placed in the last) #if Have_dmalloc_h #include
#ENDIF
3, test and use not the fork process is likeliking Logpkill login_server to go out, using Ctrl C may die
4. How to analyze the results: Use LDD to find the address example: use OX4017B2FE to find which library is or this life, if it is the library, use nm to find which or if it is itself, use GDB x 0x809Eae5 and Info line * (809EAE5) to find (to determine the address with ra_info.pl)