Efficient forensics to identify package failure cause and mechanism