1{"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"}
2{
3  "bug_type": "309",
4  "captureTime": "2022-07-28 11:10:19.4194 -0700",
5  "coalitionID": 875,
6  "coalitionName": "com.apple.Terminal",
7  "cpuType": "ARM-64",
8  "crashReporterKey": "CDC11418-EDBF-2A49-0D83-8B441A5004B0",
9  "deployVersion": 210,
10  "exception": {
11    "codes": "0x0000000000000001, 0x0000000000000000",
12    "rawCodes": [
13      1,
14      0
15    ],
16    "signal": "SIGSEGV",
17    "subtype": "KERN_INVALID_ADDRESS at 0x0000000000000000",
18    "type": "EXC_BAD_ACCESS"
19  },
20  "extMods": {
21    "caller": {
22      "task_for_pid": 0,
23      "thread_create": 0,
24      "thread_set_state": 0
25    },
26    "system": {
27      "task_for_pid": 23,
28      "thread_create": 0,
29      "thread_set_state": 812
30    },
31    "targeted": {
32      "task_for_pid": 0,
33      "thread_create": 0,
34      "thread_set_state": 0
35    },
36    "warnings": 0
37  },
38  "faultingThread": 2,
39  "incident": "5A0D8938-189E-4FD5-8C9F-02BD2C045BAF",
40  "legacyInfo": {
41    "threadTriggered": {}
42  },
43  "modelCode": "MacBookPro18,2",
44  "osVersion": {
45    "build": "",
46    "releaseType": "",
47    "train": "macOS 13.0"
48  },
49  "parentPid": 59146,
50  "parentProc": "zsh",
51  "pid": 22511,
52  "procExitAbsTime": 2823154294289,
53  "procLaunch": "2022-07-28 11:10:19.4122 -0700",
54  "procName": "multithread-test",
55  "procPath": "/Users/USER/*/multithread-test",
56  "procRole": "Unspecified",
57  "procStartAbsTime": 2823154159663,
58  "responsiblePid": 1640,
59  "responsibleProc": "Terminal",
60  "roots_installed": 0,
61  "sharedCache": {
62    "base": 6921912320,
63    "size": 3382837248,
64    "uuid": "fee93772-827d-31b1-bf36-d821401b6c11"
65  },
66  "sip": "disabled",
67  "sleepWakeUUID": "7B2A0D73-8966-4B8D-98E9-CC6EC1B44967",
68  "termination": {
69    "byPid": 22511,
70    "byProc": "exc handler",
71    "code": 11,
72    "flags": 0,
73    "indicator": "Segmentation fault: 11",
74    "namespace": "SIGNAL"
75  },
76  "threads": [
77    {
78      "frames": [
79        {
80          "imageIndex": 0,
81          "imageOffset": 11140,
82          "symbol": "__ulock_wait",
83          "symbolLocation": 8
84        },
85        {
86          "imageIndex": 1,
87          "imageOffset": 37780,
88          "symbol": "_pthread_join",
89          "symbolLocation": 444
90        },
91        {
92          "imageIndex": 2,
93          "imageOffset": 103028,
94          "symbol": "std::__1::thread::join()",
95          "symbolLocation": 36
96        },
97        {
98          "imageIndex": 3,
99          "imageOffset": 6972,
100          "sourceFile": "multithread-test.cpp",
101          "sourceLine": 31,
102          "symbol": "main",
103          "symbolLocation": 160
104        },
105        {
106          "imageIndex": 4,
107          "imageOffset": 23976,
108          "symbol": "start",
109          "symbolLocation": 2376
110        }
111      ],
112      "id": 2344958,
113      "queue": "com.apple.main-thread"
114    },
115    {
116      "frames": [
117        {
118          "imageIndex": 0,
119          "imageOffset": 19612,
120          "symbol": "__write_nocancel",
121          "symbolLocation": 8
122        },
123        {
124          "imageIndex": 5,
125          "imageOffset": 211368,
126          "symbol": "__swrite",
127          "symbolLocation": 24
128        },
129        {
130          "imageIndex": 5,
131          "imageOffset": 76488,
132          "symbol": "_swrite",
133          "symbolLocation": 108
134        },
135        {
136          "imageIndex": 5,
137          "imageOffset": 68652,
138          "symbol": "__sflush",
139          "symbolLocation": 232
140        },
141        {
142          "imageIndex": 5,
143          "imageOffset": 20256,
144          "symbol": "__sfvwrite",
145          "symbolLocation": 792
146        },
147        {
148          "imageIndex": 5,
149          "imageOffset": 147300,
150          "symbol": "fwrite",
151          "symbolLocation": 152
152        },
153        {
154          "imageIndex": 2,
155          "imageOffset": 188548,
156          "symbol": "std::__1::__stdoutbuf<char>::overflow(int)",
157          "symbolLocation": 96
158        },
159        {
160          "imageIndex": 2,
161          "imageOffset": 136884,
162          "symbol": "std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >::operator=(char)",
163          "symbolLocation": 96
164        },
165        {
166          "imageIndex": 2,
167          "imageOffset": 137112,
168          "symbol": "std::__1::basic_ostream<char, std::__1::char_traits<char> >::put(char)",
169          "symbolLocation": 200
170        },
171        {
172          "imageIndex": 3,
173          "imageOffset": 6740,
174          "sourceFile": "ostream",
175          "sourceLine": 994,
176          "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> >&)",
177          "symbolLocation": 64
178        },
179        {
180          "imageIndex": 3,
181          "imageOffset": 6664,
182          "sourceFile": "ostream",
183          "sourceLine": 189,
184          "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> >&))",
185          "symbolLocation": 32
186        },
187        {
188          "imageIndex": 3,
189          "imageOffset": 6488,
190          "sourceFile": "multithread-test.cpp",
191          "sourceLine": 14,
192          "symbol": "call_and_wait(int&)",
193          "symbolLocation": 48
194        },
195        {
196          "imageIndex": 3,
197          "imageOffset": 13956,
198          "sourceFile": "type_traits",
199          "sourceLine": 3918,
200          "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>&&)",
201          "symbolLocation": 48
202        },
203        {
204          "imageIndex": 3,
205          "imageOffset": 13832,
206          "sourceFile": "thread",
207          "sourceLine": 287,
208          "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>)",
209          "symbolLocation": 56
210        },
211        {
212          "imageIndex": 3,
213          "imageOffset": 11608,
214          "sourceFile": "thread",
215          "sourceLine": 298,
216          "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*)",
217          "symbolLocation": 84
218        },
219        {
220          "imageIndex": 1,
221          "imageOffset": 28780,
222          "symbol": "_pthread_start",
223          "symbolLocation": 148
224        },
225        {
226          "imageIndex": 1,
227          "imageOffset": 7724,
228          "symbol": "thread_start",
229          "symbolLocation": 8
230        }
231      ],
232      "id": 2344960
233    },
234    {
235      "frames": [
236        {
237          "imageIndex": 3,
238          "imageOffset": 6388,
239          "sourceFile": "multithread-test.cpp",
240          "sourceLine": 7,
241          "symbol": "bar(int)",
242          "symbolLocation": 20
243        },
244        {
245          "imageIndex": 3,
246          "imageOffset": 6428,
247          "sourceFile": "multithread-test.cpp",
248          "sourceLine": 11,
249          "symbol": "foo(int)",
250          "symbolLocation": 24
251        },
252        {
253          "imageIndex": 3,
254          "imageOffset": 6792,
255          "sourceFile": "multithread-test.cpp",
256          "sourceLine": 20,
257          "symbol": "compute_pow(int&)",
258          "symbolLocation": 28
259        },
260        {
261          "imageIndex": 3,
262          "imageOffset": 13956,
263          "sourceFile": "type_traits",
264          "sourceLine": 3918,
265          "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>&&)",
266          "symbolLocation": 48
267        },
268        {
269          "imageIndex": 3,
270          "imageOffset": 13832,
271          "sourceFile": "thread",
272          "sourceLine": 287,
273          "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>)",
274          "symbolLocation": 56
275        },
276        {
277          "imageIndex": 3,
278          "imageOffset": 11608,
279          "sourceFile": "thread",
280          "sourceLine": 298,
281          "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*)",
282          "symbolLocation": null
283        },
284        {
285          "imageIndex": 1,
286          "imageOffset": 28780,
287          "symbol": "_pthread_start",
288          "symbolLocation": 148
289        },
290        {
291          "imageIndex": 1,
292          "imageOffset": 7724,
293          "symbol": "thread_start",
294          "symbolLocation": 8
295        }
296      ],
297      "id": 2344961,
298      "threadState": {
299        "cpsr": {
300          "value": 2147487744
301        },
302        "esr": {
303          "description": "(Data Abort) byte write Translation fault",
304          "value": 2449473606
305        },
306        "far": {
307          "value": 0
308        },
309        "flavor": "ARM_THREAD_STATE64",
310        "fp": {
311          "value": 6157561600
312        },
313        "lr": {
314          "value": 4310456604
315        },
316        "pc": {
317          "matchesCrashFrame": 1,
318          "value": 4310456564
319        },
320        "sp": {
321          "value": 6157561568
322        },
323        "x": [
324          {
325            "value": 42
326          },
327          {
328            "value": 105553146843568
329          },
330          {
331            "value": 6924529664
332          },
333          {
334            "value": 0
335          },
336          {
337            "value": 12448
338          },
339          {
340            "value": 419432703
341          },
342          {
343            "value": 0
344          },
345          {
346            "value": 0
347          },
348          {
349            "value": 1
350          },
351          {
352            "value": 0
353          },
354          {
355            "value": 18446744066784917455
356          },
357          {
358            "value": 1099511628034
359          },
360          {
361            "value": 1099511628034
362          },
363          {
364            "value": 1099511628032
365          },
366          {
367            "value": 1099511627776
368          },
369          {
370            "value": 1
371          },
372          {
373            "symbol": "pthread_setspecific",
374            "symbolLocation": 0,
375            "value": 6925291176
376          },
377          {
378            "value": 8540288664
379          },
380          {
381            "value": 0
382          },
383          {
384            "value": 6157561856
385          },
386          {
387            "value": 0
388          },
389          {
390            "value": 0
391          },
392          {
393            "value": 0
394          },
395          {
396            "value": 0
397          },
398          {
399            "value": 0
400          },
401          {
402            "value": 0
403          },
404          {
405            "value": 0
406          },
407          {
408            "value": 0
409          },
410          {
411            "value": 0
412          }
413        ]
414      },
415      "triggered": true
416    }
417  ],
418  "translated": false,
419  "trialInfo": {},
420  "uptime": 110000,
421  "usedImages": [
422    {
423      "arch": "arm64e",
424      "base": 6925049856,
425      "name": "libsystem_kernel.dylib",
426      "path": "/usr/lib/system/libsystem_kernel.dylib",
427      "size": 233452,
428      "source": "P",
429      "uuid": "b8898079-5424-3e89-92b0-33022c3be1bb"
430    },
431    {
432      "arch": "arm64e",
433      "base": 6925283328,
434      "name": "libsystem_pthread.dylib",
435      "path": "/usr/lib/system/libsystem_pthread.dylib",
436      "size": 53244,
437      "source": "P",
438      "uuid": "ffd36328-45f2-31c5-9240-9f76f26a1a2b"
439    },
440    {
441      "arch": "arm64e",
442      "base": 6924529664,
443      "name": "libc++.1.dylib",
444      "path": "/usr/lib/libc++.1.dylib",
445      "size": 421876,
446      "source": "P",
447      "uuid": "da619b87-2723-3731-919a-bb3467eab9e1"
448    },
449    {
450      "arch": "arm64",
451      "base": 4310450176,
452      "name": "multithread-test",
453      "path": "/Users/USER/*/multithread-test",
454      "size": 16384,
455      "source": "P",
456      "uuid": "ab9b94f9-6cdf-3b8e-b140-fae3cb13d327"
457    },
458    {
459      "arch": "arm64e",
460      "base": 9178132480,
461      "name": "dyld",
462      "path": "/usr/lib/dyld",
463      "size": 560716,
464      "source": "P",
465      "uuid": "e81312a0-f3e5-3c60-8c25-4599b62b8b4a"
466    },
467    {
468      "arch": "arm64e",
469      "base": 6924001280,
470      "name": "libsystem_c.dylib",
471      "path": "/usr/lib/system/libsystem_c.dylib",
472      "size": 528384,
473      "source": "P",
474      "uuid": "b8f1c3ed-9048-34a6-8070-6c18d4ade541"
475    },
476    {
477      "size" : 0,
478      "source" : "A",
479      "base" : 0,
480      "uuid" : "00000000-0000-0000-0000-000000000000"
481    },
482    {
483      "arch": "arm64",
484      "base": 12345,
485      "name": "bogus.dylib",
486      "path": "/usr/lib/system/bogus.dylib",
487      "size": 1000,
488      "source": "P",
489      "uuid": "11111111-2222-3333-4444-555555555555"
490    }
491  ],
492  "userID": 501,
493  "version": 2,
494  "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",
495  "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",
496  "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",
497  "wakeTime": 214
498}
499