malloc hook LD_PRELOAD experiment - not to be taken seriously.
The following should be enough to compile and witness the breakage (before reaching main
):
$> make
$> LD_PRELOAD=./malloc.so /bin/ls -l > dump
The > dump
may not include the most crucial last printed lines. I presume to do with cache not being flushed appropriately.
Nothing untoward should happen from running this code, but use at your own risk.