Debugging memory failure issue