/proc/$PID/maps is a marvellous debugging aid. It helps answer questions like 'is this pointer in range for the heap?'