Add a parser for JSON crashlogs. The CrashLogParser now defers to either the JSONCrashLogParser or the TextCrashLogParser. It first tries to interpret the input as JSON, and if that fails falling back to the textual parser. Differential revision: https://reviews.llvm.org/D91130
97 lines
2.7 KiB
Plaintext
97 lines
2.7 KiB
Plaintext
{"app_name":"a.out","timestamp":"2020-11-11 16:12:18.00 -0800","app_version":"","slice_uuid":"9b76648c-9b4e-33a9-a97e-10856e911631","build_version":"","platform":1,"share_with_app_devs":1,"is_first_party":1,"bug_type":"309","os_version":"macOS 11.0.1","incident_id":"598C4706-28B0-4D96-A2F9-AE6973BEC635","name":"a.out"}
|
|
{
|
|
"uptime" : 180,
|
|
"procLaunch" : "2020-11-11 16:12:12.4375 -0800",
|
|
"procRole" : "Unspecified",
|
|
"exception" : {
|
|
"type" : "EXC_BAD_ACCESS",
|
|
"signal" : "SIGSEGV",
|
|
"subtype" : "KERN_INVALID_ADDRESS at 0x00000000"
|
|
},
|
|
"userID" : 501,
|
|
"modelCode" : "iMacPro1,1",
|
|
"coalitionID" : 471,
|
|
"osVersion" : {
|
|
"train" : "macOS 11.0.1",
|
|
"build" : "",
|
|
"releaseType" : ""
|
|
},
|
|
"captureTime" : "2020-11-11 16:12:12.6267 -0800",
|
|
"incident" : "598C4706-28B0-4D96-A2F9-AE6973BEC635",
|
|
"pid" : 2187,
|
|
"cpuType" : "X86-64",
|
|
"procName" : "a.out",
|
|
"procPath" : "\/private\/tmp\/a.out",
|
|
"parentProc" : "fish",
|
|
"parentPid" : 1651,
|
|
"coalitionName" : "io.alacritty",
|
|
"crashReporterKey" : "DCEF35CB-68D5-F524-FF13-060901F52EA8",
|
|
"responsiblePid" : 428,
|
|
"responsibleProc" : "alacritty",
|
|
"bridgeVersion" : {"build":"","train":""},
|
|
"sip" : "enabled",
|
|
"is_corpse" : 1,
|
|
"termination" : {"reason":"Namespace SIGNAL, Code 0xb","signal":"Segmentation fault: 11","byProc":"exc handler","code":11,"namespace":"SIGNAL","byPid":2187,"flags":0},
|
|
"asi" : ["dyld2 mode"],
|
|
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":2067},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
|
|
"threads" : [{"triggered":true,"id":22172,"queue":"com.apple.main-thread","frames":[[0,16240],[0,16265],[0,16292],[1,87601]]}],
|
|
"threadState" : {
|
|
"r13" : 0,
|
|
"rax" : 0,
|
|
"rflags" : 66054,
|
|
"cpu" : 6,
|
|
"rsi" : 140732908048520,
|
|
"r14" : 0,
|
|
"trap_description" : "(no mapping for user data write)",
|
|
"r8" : 0,
|
|
"cr2" : 0,
|
|
"rdx" : 140732908048536,
|
|
"r10" : 0,
|
|
"r9" : 0,
|
|
"r15" : 0,
|
|
"rbx" : 0,
|
|
"trap" : 14,
|
|
"err" : 6,
|
|
"r11" : 0,
|
|
"rip" : 4307689328,
|
|
"rbp" : 140732908048432,
|
|
"rsp" : 140732908048432,
|
|
"r12" : 0,
|
|
"rcx" : 140732908048880,
|
|
"flavor" : "x86_THREAD_STATE",
|
|
"rdi" : 1
|
|
},
|
|
"usedImages" : [
|
|
[
|
|
"@UUID@",
|
|
0,
|
|
"P"
|
|
],
|
|
[
|
|
"6a1f593e-3705-314d-bb40-e7f9d502bf81",
|
|
140733737017344,
|
|
"P"
|
|
]
|
|
],
|
|
"legacyInfo" : {
|
|
"imageExtraInfo" : [
|
|
{
|
|
"size" : 16384,
|
|
"arch" : "x86_64",
|
|
"path" : "@EXEC@",
|
|
"name" : "@NAME@"
|
|
},
|
|
{
|
|
"size" : 241664,
|
|
"arch" : "x86_64",
|
|
"path" : "\/usr\/lib\/system\/libdyld.dylib",
|
|
"name" : "libdyld.dylib"
|
|
}
|
|
],
|
|
"threadTriggered" : {
|
|
"index" : 0,
|
|
"queue" : "com.apple.main-thread"
|
|
}
|
|
}
|
|
}
|