This patch pipes down the `-a|--load-all` crashlog command option to the Scripted Process initializer to load all the images used by crashed process instead of only loading the images related to the crashed thread. This allows us to recreate artificial frames also for the non-crashed scripted threads. rdar://90396265 Differential Revision: https://reviews.llvm.org/D121826 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
413 lines
16 KiB
Plaintext
413 lines
16 KiB
Plaintext
{"app_name":"@NAME@","timestamp":"2022-03-16 11:08:51.00 -0700","app_version":"","slice_uuid":"7166a382-172b-31ff-a821-66dee303ab6c","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.3","incident_id":"82B79418-50CC-4672-982A-46A9D8C159B6","name":"@NAME@"}
|
|
{
|
|
"bug_type": "309",
|
|
"captureTime": "2022-03-16 11:08:51.2579 -0700",
|
|
"coalitionID": 33758,
|
|
"coalitionName": "com.apple.Terminal",
|
|
"cpuType": "ARM-64",
|
|
"crashReporterKey": "CDC11418-EDBF-2A49-0D83-8B441A5004B0",
|
|
"deployVersion": 210,
|
|
"exception": {
|
|
"codes": "0x0000000000000001, 0x0000000000000000",
|
|
"rawCodes": [
|
|
1,
|
|
0
|
|
],
|
|
"signal": "SIGSEGV",
|
|
"subtype": "KERN_INVALID_ADDRESS at 0x0000000000000000",
|
|
"type": "EXC_BAD_ACCESS"
|
|
},
|
|
"extMods": {
|
|
"caller": {
|
|
"task_for_pid": 0,
|
|
"thread_create": 0,
|
|
"thread_set_state": 0
|
|
},
|
|
"system": {
|
|
"task_for_pid": 32,
|
|
"thread_create": 11,
|
|
"thread_set_state": 1052
|
|
},
|
|
"targeted": {
|
|
"task_for_pid": 0,
|
|
"thread_create": 0,
|
|
"thread_set_state": 0
|
|
},
|
|
"warnings": 0
|
|
},
|
|
"faultingThread": 2,
|
|
"incident": "82B79418-50CC-4672-982A-46A9D8C159B6",
|
|
"isCorpse": 1,
|
|
"legacyInfo": {
|
|
"threadTriggered": {}
|
|
},
|
|
"modelCode": "MacBookPro18,2",
|
|
"osVersion": {
|
|
"build": "",
|
|
"releaseType": "",
|
|
"train": "macOS 12.3"
|
|
},
|
|
"parentPid": 2976,
|
|
"parentProc": "zsh",
|
|
"pid": 24991,
|
|
"procExitAbsTime": 8601841756762,
|
|
"procLaunch": "2022-03-16 11:08:50.9857 -0700",
|
|
"procName": "@NAME@",
|
|
"procPath": "@EXEC@",
|
|
"procRole": "Unspecified",
|
|
"procStartAbsTime": 8601835247762,
|
|
"responsiblePid": 20664,
|
|
"responsibleProc": "Terminal",
|
|
"sharedCache": {
|
|
"base": 6639747072,
|
|
"size": 3141189632,
|
|
"uuid": "48726a6e-15bc-3826-9a66-b24b559993b5"
|
|
},
|
|
"sip": "enabled",
|
|
"sleepWakeUUID": "65E63A0C-730A-4DBB-A67C-7532476614E7",
|
|
"termination": {
|
|
"byPid": 24991,
|
|
"byProc": "exc handler",
|
|
"code": 11,
|
|
"flags": 0,
|
|
"indicator": "Segmentation fault: 11",
|
|
"namespace": "SIGNAL"
|
|
},
|
|
"threads": [
|
|
{
|
|
"frames": [
|
|
{
|
|
"imageIndex": 0,
|
|
"imageOffset": 14420,
|
|
"symbol": "__ulock_wait",
|
|
"symbolLocation": 8
|
|
},
|
|
{
|
|
"imageIndex": 1,
|
|
"imageOffset": 38304,
|
|
"symbol": "_pthread_join",
|
|
"symbolLocation": 444
|
|
},
|
|
{
|
|
"imageIndex": 2,
|
|
"imageOffset": 104896,
|
|
"symbol": "std::__1::thread::join()",
|
|
"symbolLocation": 36
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 7096,
|
|
"sourceFile": "multithread-test.cc",
|
|
"sourceLine": 31,
|
|
"symbol": "main",
|
|
"symbolLocation": 160
|
|
},
|
|
{
|
|
"imageIndex": 4,
|
|
"imageOffset": 20616,
|
|
"symbol": "start",
|
|
"symbolLocation": 516
|
|
}
|
|
],
|
|
"id": 5154880,
|
|
"queue": "com.apple.main-thread"
|
|
},
|
|
{
|
|
"frames": [
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 6632,
|
|
"sourceFile": "multithread-test.cc",
|
|
"sourceLine": 15,
|
|
"symbol": "call_and_wait(int&)",
|
|
"symbolLocation": 68
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 6612,
|
|
"sourceFile": "multithread-test.cc",
|
|
"sourceLine": 14,
|
|
"symbol": "call_and_wait(int&)",
|
|
"symbolLocation": 48
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 13968,
|
|
"sourceFile": "type_traits",
|
|
"sourceLine": 3584,
|
|
"symbol": "decltype(static_cast<void (*>(fp)(static_cast<std::__1::reference_wrapper<int>>(fp0))) std::__1::__invoke<void (*)(int&), std::__1::reference_wrapper<int> >(void (*&&)(int&), std::__1::reference_wrapper<int>&&)",
|
|
"symbolLocation": 48
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 13844,
|
|
"sourceFile": "thread",
|
|
"sourceLine": 276,
|
|
"symbol": "void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int>, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int> >&, std::__1::__tuple_indices<2ul>)",
|
|
"symbolLocation": 56
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 11608,
|
|
"sourceFile": "thread",
|
|
"sourceLine": 287,
|
|
"symbol": "void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int> > >(void*)",
|
|
"symbolLocation": 84
|
|
},
|
|
{
|
|
"imageIndex": 1,
|
|
"imageOffset": 29292,
|
|
"symbol": "_pthread_start",
|
|
"symbolLocation": 148
|
|
},
|
|
{
|
|
"imageIndex": 1,
|
|
"imageOffset": 8332,
|
|
"symbol": "thread_start",
|
|
"symbolLocation": 8
|
|
}
|
|
],
|
|
"id": 5154896
|
|
},
|
|
{
|
|
"frames": [
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 6512,
|
|
"sourceFile": "multithread-test.cc",
|
|
"sourceLine": 7,
|
|
"symbol": "bar(int)",
|
|
"symbolLocation": 20
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 6552,
|
|
"sourceFile": "multithread-test.cc",
|
|
"sourceLine": 11,
|
|
"symbol": "foo(int)",
|
|
"symbolLocation": 24
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 6916,
|
|
"sourceFile": "multithread-test.cc",
|
|
"sourceLine": 20,
|
|
"symbol": "compute_pow(int&)",
|
|
"symbolLocation": 28
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 13968,
|
|
"sourceFile": "type_traits",
|
|
"sourceLine": 3584,
|
|
"symbol": "decltype(static_cast<void (*>(fp)(static_cast<std::__1::reference_wrapper<int>>(fp0))) std::__1::__invoke<void (*)(int&), std::__1::reference_wrapper<int> >(void (*&&)(int&), std::__1::reference_wrapper<int>&&)",
|
|
"symbolLocation": 48
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 13844,
|
|
"sourceFile": "thread",
|
|
"sourceLine": 276,
|
|
"symbol": "void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int>, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int> >&, std::__1::__tuple_indices<2ul>)",
|
|
"symbolLocation": 56
|
|
},
|
|
{
|
|
"imageIndex": 3,
|
|
"imageOffset": 11608,
|
|
"sourceFile": "thread",
|
|
"sourceLine": 287,
|
|
"symbol": "void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int> > >(void*)",
|
|
"symbolLocation": 84
|
|
},
|
|
{
|
|
"imageIndex": 1,
|
|
"imageOffset": 29292,
|
|
"symbol": "_pthread_start",
|
|
"symbolLocation": 148
|
|
},
|
|
{
|
|
"imageIndex": 1,
|
|
"imageOffset": 8332,
|
|
"symbol": "thread_start",
|
|
"symbolLocation": 8
|
|
}
|
|
],
|
|
"id": 5154897,
|
|
"threadState": {
|
|
"cpsr": {
|
|
"value": 2147487744
|
|
},
|
|
"esr": {
|
|
"description": "(Data Abort) byte write Translation fault",
|
|
"value": 2449473606
|
|
},
|
|
"far": {
|
|
"value": 0
|
|
},
|
|
"flavor": "ARM_THREAD_STATE64",
|
|
"fp": {
|
|
"value": 6097596160
|
|
},
|
|
"lr": {
|
|
"value": 4370422168
|
|
},
|
|
"pc": {
|
|
"matchesCrashFrame": 1,
|
|
"value": 4370422128
|
|
},
|
|
"sp": {
|
|
"value": 6097596128
|
|
},
|
|
"x": [
|
|
{
|
|
"value": 42
|
|
},
|
|
{
|
|
"value": 105553169518896
|
|
},
|
|
{
|
|
"value": 6097596223
|
|
},
|
|
{
|
|
"value": 105553169518880
|
|
},
|
|
{
|
|
"value": 6097596416
|
|
},
|
|
{
|
|
"value": 419432703
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 1
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 18446744067067154563
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"symbol": "pthread_setspecific",
|
|
"symbolLocation": 0,
|
|
"value": 6643048712
|
|
},
|
|
{
|
|
"value": 8151791216
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 6097596416
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
},
|
|
{
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"triggered": true
|
|
}
|
|
],
|
|
"translated": false,
|
|
"trialInfo": {},
|
|
"uptime": 350000,
|
|
"usedImages": [
|
|
{
|
|
"arch": "arm64e",
|
|
"base": 6642810880,
|
|
"name": "libsystem_kernel.dylib",
|
|
"path": "/usr/lib/system/libsystem_kernel.dylib",
|
|
"size": 229376,
|
|
"source": "P",
|
|
"uuid": "1d7b3b8e-75a1-34ea-aa52-9f7c23155c55"
|
|
},
|
|
{
|
|
"arch": "arm64e",
|
|
"base": 6643040256,
|
|
"name": "libsystem_pthread.dylib",
|
|
"path": "/usr/lib/system/libsystem_pthread.dylib",
|
|
"size": 53248,
|
|
"source": "P",
|
|
"uuid": "cee8bc77-6923-34d9-89a3-6f8f7279605e"
|
|
},
|
|
{
|
|
"arch": "arm64e",
|
|
"base": 6642290688,
|
|
"name": "libc++.1.dylib",
|
|
"path": "/usr/lib/libc++.1.dylib",
|
|
"size": 421888,
|
|
"source": "P",
|
|
"uuid": "06bc1ec0-9992-398e-a85b-2973eb1fdba2"
|
|
},
|
|
{
|
|
"arch": "arm64",
|
|
"base": 4370415616,
|
|
"name": "@NAME@",
|
|
"path": "@EXEC@",
|
|
"size": 16384,
|
|
"source": "P",
|
|
"uuid": "@UUID@"
|
|
},
|
|
{
|
|
"arch": "arm64e",
|
|
"base": 4373479424,
|
|
"name": "dyld",
|
|
"path": "/usr/lib/dyld",
|
|
"size": 393216,
|
|
"source": "P",
|
|
"uuid": "fbb89662-e6f2-3434-b542-f75185ac5e74"
|
|
}
|
|
],
|
|
"userID": 501,
|
|
"version": 2,
|
|
"vmRegionInfo": "0 is not in any region. Bytes before following region: 4370415616\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 1047f4000-1047f8000 [ 16K] r-x/r-x SM=COW ....test.tmp.out",
|
|
"vmSummary": "ReadOnly portion of Libraries: Total=589.5M resident=0K(0%) swapped_out_or_unallocated=589.5M(100%)\nWritable regions: Total=666.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=666.2M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nKernel Alloc Once 32K 1 \nMALLOC 153.2M 15 \nMALLOC guard page 64.1M 7 \nMALLOC_MEDIUM (reserved) 120.0M 1 reserved VM address space (unallocated)\nMALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)\nMALLOC_PROB_GUARD 138.5M 1 \nSTACK GUARD 56.0M 3 \nStack 9264K 3 \n__AUTH 46K 11 \n__AUTH_CONST 67K 38 \n__DATA 173K 36 \n__DATA_CONST 258K 40 \n__DATA_DIRTY 73K 21 \n__LINKEDIT 584.9M 3 \n__OBJC_CONST 10K 5 \n__OBJC_RO 82.9M 1 \n__OBJC_RW 3168K 1 \n__TEXT 4696K 43 \ndyld private memory 1024K 1 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 1.6G 235 \nTOTAL, minus reserved VM space 1.1G 235 \n",
|
|
"vmregioninfo": "0 is not in any region. Bytes before following region: 4370415616\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 1047f4000-1047f8000 [ 16K] r-x/r-x SM=COW ....test.tmp.out",
|
|
"wakeTime": 4715
|
|
}
|