an example to show how 'malloc' failed