Check for memory errors