4.54 SM_HEAP_CHECK
Memory-leak detection (V8.12 and above) Port with confENVDEF
The libsm library in the sendmail source distribution offers a way to provide memory leak
detection and error checking that overlays the usual malloc(3), realloc(3), and free(3) Clanguage
library routines. To disable extra checking, define SM_HEAP_CHECK as zero:
APPENDDEF(`confENVDEF??, `-DSM_HEAP_CHECK=0??)
If you choose to enable extra checking, it will not be turned on by default. Instead you will
need to turn it on and off with special debugging command-line switches (we cover this
soon). To enable extra checking, define SM_HEAP_CHECK as 1:
APPENDDEF(`confENVDEF??, `-DSM_HEAP_CHECK=1??)
Once extra checking has been included in your sendmail code, you can turn it on and off
with debugging command-line switches. The category is sm_check_heap, and there are four
meaningful levels:
# /usr/sbin/sendmail -dsm_check_heap.level ...
The four meaningful values for level are shown in Table 3-12.
The -dsm_check_heap command-line switchis most useful when porting sendmail to a new
machine. It can also be valuable when adding new functions to sendmail or to its
companion programs.
To see whether this compile-time macro is defined with your sendmail binary, use the -d0.12
debugging command-line switch.
3.4.55 SM_CONF_SHM
Use shared memory (V8.12 and above) Port with confENVDEF
Beginning withV8.
Pages:
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280