llvm/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/interactive_crashlog/multithread-test.ips

{"app_name":"multithread-test","timestamp":"2022-07-28 11:10:20.00 -0700","app_version":"","slice_uuid":"ab9b94f9-6cdf-3b8e-b140-fae3cb13d327","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 13.0","roots_installed":0,"incident_id":"5A0D8938-189E-4FD5-8C9F-02BD2C045BAF","name":"multithread-test"}
{
  "bug_type": "309",
  "captureTime": "2022-07-28 11:10:19.4194 -0700",
  "coalitionID": 875,
  "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": 23,
      "thread_create": 0,
      "thread_set_state": 812
    },
    "targeted": {
      "task_for_pid": 0,
      "thread_create": 0,
      "thread_set_state": 0
    },
    "warnings": 0
  },
  "faultingThread": 2,
  "incident": "5A0D8938-189E-4FD5-8C9F-02BD2C045BAF",
  "legacyInfo": {
    "threadTriggered": {}
  },
  "modelCode": "MacBookPro18,2",
  "osVersion": {
    "build": "",
    "releaseType": "",
    "train": "macOS 13.0"
  },
  "parentPid": 59146,
  "parentProc": "zsh",
  "pid": 22511,
  "procExitAbsTime": 2823154294289,
  "procLaunch": "2022-07-28 11:10:19.4122 -0700",
  "procName": "multithread-test",
  "procPath": "/Users/USER/*/multithread-test",
  "procRole": "Unspecified",
  "procStartAbsTime": 2823154159663,
  "responsiblePid": 1640,
  "responsibleProc": "Terminal",
  "roots_installed": 0,
  "sharedCache": {
    "base": 6921912320,
    "size": 3382837248,
    "uuid": "fee93772-827d-31b1-bf36-d821401b6c11"
  },
  "sip": "disabled",
  "sleepWakeUUID": "7B2A0D73-8966-4B8D-98E9-CC6EC1B44967",
  "termination": {
    "byPid": 22511,
    "byProc": "exc handler",
    "code": 11,
    "flags": 0,
    "indicator": "Segmentation fault: 11",
    "namespace": "SIGNAL"
  },
  "threads": [
    {
      "frames": [
        {
          "imageIndex": 0,
          "imageOffset": 11140,
          "symbol": "__ulock_wait",
          "symbolLocation": 8
        },
        {
          "imageIndex": 1,
          "imageOffset": 37780,
          "symbol": "_pthread_join",
          "symbolLocation": 444
        },
        {
          "imageIndex": 2,
          "imageOffset": 103028,
          "symbol": "std::__1::thread::join()",
          "symbolLocation": 36
        },
        {
          "imageIndex": 3,
          "imageOffset": 6972,
          "sourceFile": "multithread-test.cpp",
          "sourceLine": 31,
          "symbol": "main",
          "symbolLocation": 160
        },
        {
          "imageIndex": 4,
          "imageOffset": 23976,
          "symbol": "start",
          "symbolLocation": 2376
        }
      ],
      "id": 2344958,
      "queue": "com.apple.main-thread"
    },
    {
      "frames": [
        {
          "imageIndex": 0,
          "imageOffset": 19612,
          "symbol": "__write_nocancel",
          "symbolLocation": 8
        },
        {
          "imageIndex": 5,
          "imageOffset": 211368,
          "symbol": "__swrite",
          "symbolLocation": 24
        },
        {
          "imageIndex": 5,
          "imageOffset": 76488,
          "symbol": "_swrite",
          "symbolLocation": 108
        },
        {
          "imageIndex": 5,
          "imageOffset": 68652,
          "symbol": "__sflush",
          "symbolLocation": 232
        },
        {
          "imageIndex": 5,
          "imageOffset": 20256,
          "symbol": "__sfvwrite",
          "symbolLocation": 792
        },
        {
          "imageIndex": 5,
          "imageOffset": 147300,
          "symbol": "fwrite",
          "symbolLocation": 152
        },
        {
          "imageIndex": 2,
          "imageOffset": 188548,
          "symbol": "std::__1::__stdoutbuf<char>::overflow(int)",
          "symbolLocation": 96
        },
        {
          "imageIndex": 2,
          "imageOffset": 136884,
          "symbol": "std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >::operator=(char)",
          "symbolLocation": 96
        },
        {
          "imageIndex": 2,
          "imageOffset": 137112,
          "symbol": "std::__1::basic_ostream<char, std::__1::char_traits<char> >::put(char)",
          "symbolLocation": 200
        },
        {
          "imageIndex": 3,
          "imageOffset": 6740,
          "sourceFile": "ostream",
          "sourceLine": 994,
          "symbol": "std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::endl<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)",
          "symbolLocation": 64
        },
        {
          "imageIndex": 3,
          "imageOffset": 6664,
          "sourceFile": "ostream",
          "sourceLine": 189,
          "symbol": "std::__1::basic_ostream<char, std::__1::char_traits<char> >::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >& (*)(std::__1::basic_ostream<char, std::__1::char_traits<char> >&))",
          "symbolLocation": 32
        },
        {
          "imageIndex": 3,
          "imageOffset": 6488,
          "sourceFile": "multithread-test.cpp",
          "sourceLine": 14,
          "symbol": "call_and_wait(int&)",
          "symbolLocation": 48
        },
        {
          "imageIndex": 3,
          "imageOffset": 13956,
          "sourceFile": "type_traits",
          "sourceLine": 3918,
          "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": 13832,
          "sourceFile": "thread",
          "sourceLine": 287,
          "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": 298,
          "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": 28780,
          "symbol": "_pthread_start",
          "symbolLocation": 148
        },
        {
          "imageIndex": 1,
          "imageOffset": 7724,
          "symbol": "thread_start",
          "symbolLocation": 8
        }
      ],
      "id": 2344960
    },
    {
      "frames": [
        {
          "imageIndex": 3,
          "imageOffset": 6388,
          "sourceFile": "multithread-test.cpp",
          "sourceLine": 7,
          "symbol": "bar(int)",
          "symbolLocation": 20
        },
        {
          "imageIndex": 3,
          "imageOffset": 6428,
          "sourceFile": "multithread-test.cpp",
          "sourceLine": 11,
          "symbol": "foo(int)",
          "symbolLocation": 24
        },
        {
          "imageIndex": 3,
          "imageOffset": 6792,
          "sourceFile": "multithread-test.cpp",
          "sourceLine": 20,
          "symbol": "compute_pow(int&)",
          "symbolLocation": 28
        },
        {
          "imageIndex": 3,
          "imageOffset": 13956,
          "sourceFile": "type_traits",
          "sourceLine": 3918,
          "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": 13832,
          "sourceFile": "thread",
          "sourceLine": 287,
          "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": 298,
          "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": null
        },
        {
          "imageIndex": 1,
          "imageOffset": 28780,
          "symbol": "_pthread_start",
          "symbolLocation": 148
        },
        {
          "imageIndex": 1,
          "imageOffset": 7724,
          "symbol": "thread_start",
          "symbolLocation": 8
        }
      ],
      "id": 2344961,
      "threadState": {
        "cpsr": {
          "value": 2147487744
        },
        "esr": {
          "description": "(Data Abort) byte write Translation fault",
          "value": 2449473606
        },
        "far": {
          "value": 0
        },
        "flavor": "ARM_THREAD_STATE64",
        "fp": {
          "value": 6157561600
        },
        "lr": {
          "value": 4310456604
        },
        "pc": {
          "matchesCrashFrame": 1,
          "value": 4310456564
        },
        "sp": {
          "value": 6157561568
        },
        "x": [
          {
            "value": 42
          },
          {
            "value": 105553146843568
          },
          {
            "value": 6924529664
          },
          {
            "value": 0
          },
          {
            "value": 12448
          },
          {
            "value": 419432703
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 1
          },
          {
            "value": 0
          },
          {
            "value": 18446744066784917455
          },
          {
            "value": 1099511628034
          },
          {
            "value": 1099511628034
          },
          {
            "value": 1099511628032
          },
          {
            "value": 1099511627776
          },
          {
            "value": 1
          },
          {
            "symbol": "pthread_setspecific",
            "symbolLocation": 0,
            "value": 6925291176
          },
          {
            "value": 8540288664
          },
          {
            "value": 0
          },
          {
            "value": 6157561856
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          },
          {
            "value": 0
          }
        ]
      },
      "triggered": true
    }
  ],
  "translated": false,
  "trialInfo": {},
  "uptime": 110000,
  "usedImages": [
    {
      "arch": "arm64e",
      "base": 6925049856,
      "name": "libsystem_kernel.dylib",
      "path": "/usr/lib/system/libsystem_kernel.dylib",
      "size": 233452,
      "source": "P",
      "uuid": "b8898079-5424-3e89-92b0-33022c3be1bb"
    },
    {
      "arch": "arm64e",
      "base": 6925283328,
      "name": "libsystem_pthread.dylib",
      "path": "/usr/lib/system/libsystem_pthread.dylib",
      "size": 53244,
      "source": "P",
      "uuid": "ffd36328-45f2-31c5-9240-9f76f26a1a2b"
    },
    {
      "arch": "arm64e",
      "base": 6924529664,
      "name": "libc++.1.dylib",
      "path": "/usr/lib/libc++.1.dylib",
      "size": 421876,
      "source": "P",
      "uuid": "da619b87-2723-3731-919a-bb3467eab9e1"
    },
    {
      "arch": "arm64",
      "base": 4310450176,
      "name": "multithread-test",
      "path": "/Users/USER/*/multithread-test",
      "size": 16384,
      "source": "P",
      "uuid": "ab9b94f9-6cdf-3b8e-b140-fae3cb13d327"
    },
    {
      "arch": "arm64e",
      "base": 9178132480,
      "name": "dyld",
      "path": "/usr/lib/dyld",
      "size": 560716,
      "source": "P",
      "uuid": "e81312a0-f3e5-3c60-8c25-4599b62b8b4a"
    },
    {
      "arch": "arm64e",
      "base": 6924001280,
      "name": "libsystem_c.dylib",
      "path": "/usr/lib/system/libsystem_c.dylib",
      "size": 528384,
      "source": "P",
      "uuid": "b8f1c3ed-9048-34a6-8070-6c18d4ade541"
    },
    {
      "size" : 0,
      "source" : "A",
      "base" : 0,
      "uuid" : "00000000-0000-0000-0000-000000000000"
    },
    {
      "arch": "arm64",
      "base": 12345,
      "name": "bogus.dylib",
      "path": "/usr/lib/system/bogus.dylib",
      "size": 1000,
      "source": "P",
      "uuid": "11111111-2222-3333-4444-555555555555"
    }
  ],
  "userID": 501,
  "version": 2,
  "vmRegionInfo": "0 is not in any region.  Bytes before following region: 4310450176\n      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      100ec4000-100ec8000    [   16K] r-x/r-x SM=COW  ...tithread-test",
  "vmSummary": "ReadOnly portion of Libraries: Total=762.9M resident=0K(0%) swapped_out_or_unallocated=762.9M(100%)\nWritable regions: Total=538.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=538.2M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nKernel Alloc Once                   32K        1 \nMALLOC                           145.2M       12 \nMALLOC guard page                   96K        5 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.0M        3 \nStack                             9264K        3 \n__AUTH                              46K       11 \n__AUTH_CONST                        70K       38 \n__DATA                             169K       36 \n__DATA_CONST                       187K       40 \n__DATA_DIRTY                        78K       22 \n__LINKEDIT                       758.0M        2 \n__OBJC_CONST                        11K        5 \n__OBJC_RO                         64.7M        1 \n__OBJC_RW                         1971K        1 \n__TEXT                            5076K       42 \ndyld private memory                256K        1 \nshared memory                       64K        3 \n===========                     =======  ======= \nTOTAL                              1.4G      227 \nTOTAL, minus reserved VM space     1.0G      227 \n",
  "vmregioninfo": "0 is not in any region.  Bytes before following region: 4310450176\n      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      100ec4000-100ec8000    [   16K] r-x/r-x SM=COW  ...tithread-test",
  "wakeTime": 214
}