Penguin
Note: You are viewing an old revision of this page. View the current version.

Another special environment variable that the c library uses to aid in debugging.

$ export MALLOC_CHECK_=n

where
n=0 => ignore corruptions n=1 => print to stderr n=2 => abort immediately

Mainly useful for bugs that corrupt the memory structures.


See also mcheck, LD_DEBUG, CommonProgrammingBugs