This is an archive of the discontinued LLVM Phabricator instance.

[crashlog] Change heuristic to stripping the meta data from crashlogs
ClosedPublic

Authored by JDevlieghere on Feb 14 2022, 11:47 AM.

Details

Summary

Instead of pro-actively trying to determine if the first line in a crashlog contains meta data, change the heuristic to trying to parse the whole file first. If that fails, strip the first line and try again. If that fails again, we assume the input is not JSON and we fall back to the old textual parser.

rdar://88580543

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Feb 14 2022, 11:47 AM
JDevlieghere created this revision.
mib accepted this revision.Feb 14 2022, 11:54 AM

LGTM

This revision is now accepted and ready to land.Feb 14 2022, 11:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 12:18 PM