Parse a stack trace