aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/testdata
diff options
context:
space:
mode:
authorPatrick Meyer <meyerpatrick@google.com>2021-05-15 20:30:23 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-05-20 13:29:54 +0200
commitc560a65d34ad06694fda23b3da5e9e95fc59aea7 (patch)
tree5741f3ba58978dbd803a9cc62e72ce6770968712 /pkg/report/testdata
parentf724ff25c0a72ce7eefd85c6a88b3522283c50cc (diff)
pkg/report: initial darwin support
Diffstat (limited to 'pkg/report/testdata')
-rw-r--r--pkg/report/testdata/darwin/report/019
-rw-r--r--pkg/report/testdata/darwin/report/135
-rw-r--r--pkg/report/testdata/darwin/report/220
-rw-r--r--pkg/report/testdata/darwin/report/322
-rw-r--r--pkg/report/testdata/darwin/report/421
-rw-r--r--pkg/report/testdata/darwin/report/526
-rw-r--r--pkg/report/testdata/darwin/report/639
7 files changed, 182 insertions, 0 deletions
diff --git a/pkg/report/testdata/darwin/report/0 b/pkg/report/testdata/darwin/report/0
new file mode 100644
index 000000000..bff30cacb
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/0
@@ -0,0 +1,19 @@
+TITLE: panic: assertion failed: in6p == NULL || (in6p->inp_vflag & INP_IPV6)
+
+panic(cpu 0 caller 0xffffff801f3ada45): assertion failed: in6p == NULL || (in6p->inp_vflag & INP_IPV6), file: /Users/space/kernel/xnu-7195.81.3/bsd/netinet6/in6_mcast.c, line: 1905
+Backtrace (CPU 0), Frame : Return Address
+0xffffffb064dae750 : 0xffffff801daa0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffb064dae7b0 : 0xffffff801df44204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffb064dae800 : 0xffffff801df26727 mach_kernel : _kernel_trap + 0xb27
+0xffffffb064dae890 : 0xffffff801df4bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb064dae8b0 : 0xffffff801daa0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffb064dae9e0 : 0xffffff801daa16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffb064daea50 : 0xffffff801f3a0216 mach_kernel : _panic + 0x54
+0xffffffb064daeac0 : 0xffffff801f3ada45 mach_kernel : _assfail + 0x2f
+0xffffffb064daeaf0 : 0xffffff801ead06e0 mach_kernel : _in6p_lookup_mcast_ifp + 0x6c0
+0xffffffb064daec10 : 0xffffff801eaca192 mach_kernel : _ip6_setmoptions + 0x3382
+0xffffffb064daf750 : 0xffffff801eaa3c77 mach_kernel : _ip6_ctloutput + 0x1947
+0xffffffb064daf9f0 : 0xffffff801ee65178 mach_kernel : _sosetoptlock + 0x5b8
+0xffffffb064dafd70 : 0xffffff801ee9afc0 mach_kernel : _setsockopt + 0x3e0
+0xffffffb064dafee0 : 0xffffff801ef5675f mach_kernel : _unix_syscall64 + 0x99f
+0xffffffb064daffa0 : 0xffffff801df4c756 mach_kernel : _hndl_unix_scall64 + 0x16
diff --git a/pkg/report/testdata/darwin/report/1 b/pkg/report/testdata/darwin/report/1
new file mode 100644
index 000000000..843fdc5d5
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/1
@@ -0,0 +1,35 @@
+TITLE: panic: Kernel trap type 14=page fault
+
+panic(cpu 1 caller 0xffffff8002928989): Kernel trap at 0xffffff80021020ba, type 14=page fault, registers:
+CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x0000000008b71000, CR4: 0x00000000000406e0
+RAX: 0x00000000000000be, RBX: 0x0000000000000000, RCX: 0x0000000000004000, RDX: 0x0000000000004000
+RSP: 0xffffffb04918f778, RBP: 0xffffffb04918f890, RSI: 0x00000000000000be, RDI: 0x0000000000000000
+R8: 0x0000000000000000, R9: 0x0000000000000046, R10: 0x0000000000000005, R11: 0x0000000000001000
+R12: 0x0000000000004000, R13: 0xdffff80000000000, R14: 0x1ffffff609231efc, R15: 0x1ffffff609231ef8
+RFL: 0x0000000000010282, RIP: 0xffffff80021020ba, CS: 0x0000000000000008, SS: 0x0000000000000010
+Fault CR2: 0x0000000000000000, Error code: 0x0000000000000002, Fault CPU: 0x1 VMM, PL: 0, VF: 1
+
+Backtrace (CPU 1), Frame : Return Address
+0xffffffb04918ef60 : 0xffffff80024a0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffb04918efc0 : 0xffffff8002944204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffb04918f010 : 0xffffff8002926727 mach_kernel : _kernel_trap + 0xb27
+0xffffffb04918f0a0 : 0xffffff800294bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb04918f0c0 : 0xffffff80024a0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffb04918f1f0 : 0xffffff80024a16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffb04918f260 : 0xffffff8003da0216 mach_kernel : _panic + 0x54
+0xffffffb04918f2d0 : 0xffffff8002928989 mach_kernel : _panic_trap + 0x13f9
+0xffffffb04918f5d0 : 0xffffff8002926de2 mach_kernel : _kernel_trap + 0x11e2
+0xffffffb04918f660 : 0xffffff800294bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb04918f680 : 0xffffff80021020ba
+0xffffffb04918f890 : 0xffffff80024ce372 mach_kernel : _kalloc_ext + 0x212
+0xffffffb04918f990 : 0xffffff8002d198a8 mach_kernel : _grab_memory_for_meta_buf + 0x48
+0xffffffb04918f9e0 : 0xffffff8002d1805d mach_kernel : _allocbuf + 0x23d
+0xffffffb04918fa50 : 0xffffff8002d168f9 mach_kernel : _buf_getblk + 0xe39
+0xffffffb04918fc20 : 0xffffff8006dbbace com.apple.filesystems.apfs : __vnode_dev_write + 0x10a
+0xffffffb04918fc70 : 0xffffff8006dbb8a3 com.apple.filesystems.apfs : _vnode_dev_flush_buf + 0x8d
+0xffffffb04918fcb0 : 0xffffff8006dbb31f com.apple.filesystems.apfs : _vnode_dev_write + 0x423
+0xffffffb04918fd60 : 0xffffff8006eb2be7 com.apple.filesystems.apfs : _obj_write_internal + 0xf7
+0xffffffb04918fda0 : 0xffffff8006eb2882 com.apple.filesystems.apfs : _obj_cache_flush_write + 0xe4
+0xffffffb04918fe10 : 0xffffff8006ecd22d com.apple.filesystems.apfs : _tx_flush + 0x3be
+0xffffffb04918ff20 : 0xffffff8006eccc4c com.apple.filesystems.apfs : _tx_flush_thread + 0x18b
+0xffffffb04918ffa0 : 0xffffff800290881e mach_kernel : _call_continuation + 0x2e \ No newline at end of file
diff --git a/pkg/report/testdata/darwin/report/2 b/pkg/report/testdata/darwin/report/2
new file mode 100644
index 000000000..e2ad5494d
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/2
@@ -0,0 +1,20 @@
+TITLE: panic: in6p_route_copyout: wrong or corrupted route
+
+panic(cpu 1 caller 0xffffff80186da902): "in6p_route_copyout: wrong or corrupted route: 0xffffff8ae77ba750"@/Users/space/kernel/xnu-7195.81.3/bsd/netinet6/in6_pcb.c:1450
+Backtrace (CPU 1), Frame : Return Address
+0xffffffb05e78ec10 : 0xffffff80176a0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffb05e78ec70 : 0xffffff8017b44204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffb05e78ecc0 : 0xffffff8017b26727 mach_kernel : _kernel_trap + 0xb27
+0xffffffb05e78ed50 : 0xffffff8017b4bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb05e78ed70 : 0xffffff80176a0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffb05e78eea0 : 0xffffff80176a16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffb05e78ef10 : 0xffffff8018fa0216 mach_kernel : _panic + 0x54
+0xffffffb05e78ef80 : 0xffffff80186da902 mach_kernel : _in6p_route_copyout + 0x112
+0xffffffb05e78efb0 : 0xffffff8018509fca mach_kernel : _tcp_ip_output + 0x8ca
+0xffffffb05e78f2c0 : 0xffffff8018501708 mach_kernel : _tcp_output + 0xa858
+0xffffffb05e78fb90 : 0xffffff8018555e20 mach_kernel : _tcp_connect_complete + 0x80
+0xffffffb05e78fbd0 : 0xffffff801854a7f8 mach_kernel : _tcp6_usr_connect + 0x518
+0xffffffb05e78fcb0 : 0xffffff8018a518e0 mach_kernel : _soconnectlock + 0x610
+0xffffffb05e78fd10 : 0xffffff8018a8ea5d mach_kernel : _connect_nocancel + 0x55d
+0xffffffb05e78fee0 : 0xffffff8018b5675f mach_kernel : _unix_syscall64 + 0x99f
+0xffffffb05e78ffa0 : 0xffffff8017b4c756 mach_kernel : _hndl_unix_scall64 + 0x16
diff --git a/pkg/report/testdata/darwin/report/3 b/pkg/report/testdata/darwin/report/3
new file mode 100644
index 000000000..500238c74
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/3
@@ -0,0 +1,22 @@
+TITLE: panic: zalloc: default.kalloc.4096 retry fail 6
+
+panic(cpu 1 caller 0xffffff8009da2f32): "zalloc: default.kalloc.4096 (357 elements) retry fail 6"@/Users/space/kernel/xnu-7195.81.3/osfmk/kern/zalloc.c:3413
+Backtrace (CPU 1), Frame : Return Address
+0xffffffa84446f540 : 0xffffff80084a0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffa84446f5a0 : 0xffffff8008944204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffa84446f5f0 : 0xffffff8008926727 mach_kernel : _kernel_trap + 0xb27
+0xffffffa84446f680 : 0xffffff800894bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffa84446f6a0 : 0xffffff80084a0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffa84446f7d0 : 0xffffff80084a16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffa84446f840 : 0xffffff8009da0216 mach_kernel : _panic + 0x54
+0xffffffa84446f8b0 : 0xffffff8009da2f32 mach_kernel : _zone_replenish_panic + 0x123
+0xffffffa84446f900 : 0xffffff80085c2f4f mach_kernel : _zone_replenish_locked + 0x3df
+0xffffffa84446f970 : 0xffffff80085bd856 mach_kernel : _zone_refill_synchronously_locked + 0x186
+0xffffffa84446f9c0 : 0xffffff80085bd434 mach_kernel : _zalloc_ext + 0x4e4
+0xffffffa84446fa30 : 0xffffff80084ce564 mach_kernel : _kalloc_ext + 0x404
+0xffffffa84446fb30 : 0xffffff8009a004ab mach_kernel : __ZN12OSOrderedSet14ensureCapacityEj + 0xbb
+0xffffffa84446fb90 : 0xffffff8009a009ec mach_kernel : __ZN12OSOrderedSet9setObjectEjPK15OSMetaClassBase + 0x10c
+0xffffffa84446fbf0 : 0xffffff8009b8de3d mach_kernel : __ZN11IOCatalogue11findDriversEP9IOServicePi + 0x32d
+0xffffffa84446fd50 : 0xffffff8009b14114 mach_kernel : __ZN9IOService14doServiceMatchEj + 0x164
+0xffffffa84446fe70 : 0xffffff8009b2ffa2 mach_kernel : __ZN15_IOConfigThread4mainEPvi + 0x4c2
+0xffffffa84446ffa0 : 0xffffff800890881e mach_kernel : _call_continuation + 0x2e \ No newline at end of file
diff --git a/pkg/report/testdata/darwin/report/4 b/pkg/report/testdata/darwin/report/4
new file mode 100644
index 000000000..242a08855
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/4
@@ -0,0 +1,21 @@
+TITLE: panic: pf_send_tcp: not AF_INET or AF_INET6!
+
+panic(cpu 1 caller 0xffffff801d080ed5): "pf_send_tcp: not AF_INET or AF_INET6!"@/Users/space/kernel/xnu-7195.81.3/bsd/net/pf.c:2578
+Backtrace (CPU 1), Frame : Return Address
+0xffffffb06376f0a0 : 0xffffff801c4a0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffb06376f100 : 0xffffff801c944204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffb06376f150 : 0xffffff801c926727 mach_kernel : _kernel_trap + 0xb27
+0xffffffb06376f1e0 : 0xffffff801c94bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb06376f200 : 0xffffff801c4a0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffb06376f330 : 0xffffff801c4a16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffb06376f3a0 : 0xffffff801dda0216 mach_kernel : _panic + 0x54
+0xffffffb06376f410 : 0xffffff801d080ed5 mach_kernel : _pf_send_tcp + 0x1215
+0xffffffb06376f5c0 : 0xffffff801d07fb8a mach_kernel : _pf_unlink_state + 0x16a
+0xffffffb06376f630 : 0xffffff801d1050ea mach_kernel : _pfioctl + 0x246a
+0xffffffb06376fa00 : 0xffffff801ce3a4ec mach_kernel : _spec_ioctl + 0x1bc
+0xffffffb06376fa70 : 0xffffff801ce102a7 mach_kernel : _VNOP_IOCTL + 0x3d7
+0xffffffb06376fb90 : 0xffffff801cde76ae mach_kernel : _vn_ioctl + 0x33e
+0xffffffb06376fc90 : 0xffffff801d662c6f mach_kernel : _fo_ioctl + 0x8f
+0xffffffb06376fcd0 : 0xffffff801d7b33cb mach_kernel : _ioctl + 0xaeb
+0xffffffb06376fee0 : 0xffffff801d95675f mach_kernel : _unix_syscall64 + 0x99f
+0xffffffb06376ffa0 : 0xffffff801c94c756 mach_kernel : _hndl_unix_scall64 + 0x16
diff --git a/pkg/report/testdata/darwin/report/5 b/pkg/report/testdata/darwin/report/5
new file mode 100644
index 000000000..e27eb4f8b
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/5
@@ -0,0 +1,26 @@
+TITLE: panic: slab_nextptr_panic: mcache.mbuf buffer ADDR in slab ADDR modified after free at offset 0: ADDR out of range [ADDR
+
+panic(cpu 0 caller 0xffffff800ac3235c): slab_nextptr_panic: mcache.mbuf buffer 0xffffffa0464b6000 in slab 0xffffffa015c843a0 modified after free at offset 0: 0xccd900000000 out of range [0xffffffa0463a3000-0xffffffa04c3a3000)
+
+Backtrace (CPU 0), Frame : Return Address
+0xffffffb050a6edd0 : 0xffffff80098a0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffb050a6ee30 : 0xffffff8009d44204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffb050a6ee80 : 0xffffff8009d26727 mach_kernel : _kernel_trap + 0xb27
+0xffffffb050a6ef10 : 0xffffff8009d4bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb050a6ef30 : 0xffffff80098a0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffb050a6f060 : 0xffffff80098a16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffb050a6f0d0 : 0xffffff800b1a0216 mach_kernel : _panic + 0x54
+0xffffffb050a6f140 : 0xffffff800ac3235c mach_kernel : _slab_nextptr_panic + 0x3ec
+0xffffffb050a6f1c0 : 0xffffff800ac30132 mach_kernel : _slab_alloc + 0x402
+0xffffffb050a6f250 : 0xffffff800ac0f0eb mach_kernel : _mbuf_slab_alloc + 0x1cb
+0xffffffb050a6f3b0 : 0xffffff800ab8ba0e mach_kernel : _mcache_alloc_ext + 0xa5e
+0xffffffb050a6f550 : 0xffffff800ab8c349 mach_kernel : _mcache_alloc + 0xe9
+0xffffffb050a6f610 : 0xffffff800ac105cc mach_kernel : _m_get_common + 0x3c
+0xffffffb050a6f670 : 0xffffff800ac81677 mach_kernel : _sbconcat_mbufs + 0x2e7
+0xffffffb050a6f6d0 : 0xffffff800ac8277a mach_kernel : _sbappendaddr + 0x59a
+0xffffffb050a6f7d0 : 0xffffff800aca23f0 mach_kernel : _uipc_send + 0x1080
+0xffffffb050a6f990 : 0xffffff800ac55d29 mach_kernel : _sosend + 0x2109
+0xffffffb050a6fbb0 : 0xffffff800ac92520 mach_kernel : _sendit + 0x5d0
+0xffffffb050a6fd70 : 0xffffff800ac91c8d mach_kernel : _sendto_nocancel + 0x3fd
+0xffffffb050a6fee0 : 0xffffff800ad5675f mach_kernel : _unix_syscall64 + 0x99f
+0xffffffb050a6ffa0 : 0xffffff8009d4c756 mach_kernel : _hndl_unix_scall64 + 0x16
diff --git a/pkg/report/testdata/darwin/report/6 b/pkg/report/testdata/darwin/report/6
new file mode 100644
index 000000000..6c9be125d
--- /dev/null
+++ b/pkg/report/testdata/darwin/report/6
@@ -0,0 +1,39 @@
+TITLE: debugger: Unexpected kernel trap number: 0xe
+
+Debugger: Unexpected kernel trap number: 0xe, RIP: 0xffffff80021020ba, CR2: 0x0
+CPU 1 panic trap number 0xe, rip 0xffffff80021020ba
+cr0 0x000000008001003b cr2 0x0000000000000000 cr3 0x0000000008b71000 cr4 0x00000000000406e0
+Debugger called: <panic>
+panic(cpu 1 caller 0xffffff8002928989): Kernel trap at 0xffffff80021020ba, type 14=page fault, registers:
+CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x0000000008b71000, CR4: 0x00000000000406e0
+RAX: 0x00000000000000be, RBX: 0x0000000000000000, RCX: 0x0000000000004000, RDX: 0x0000000000004000
+RSP: 0xffffffb04918f778, RBP: 0xffffffb04918f890, RSI: 0x00000000000000be, RDI: 0x0000000000000000
+R8: 0x0000000000000000, R9: 0x0000000000000046, R10: 0x0000000000000005, R11: 0x0000000000001000
+R12: 0x0000000000004000, R13: 0xdffff80000000000, R14: 0x1ffffff609231efc, R15: 0x1ffffff609231ef8
+RFL: 0x0000000000010282, RIP: 0xffffff80021020ba, CS: 0x0000000000000008, SS: 0x0000000000000010
+Fault CR2: 0x0000000000000000, Error code: 0x0000000000000002, Fault CPU: 0x1 VMM, PL: 0, VF: 1
+
+Backtrace (CPU 1), Frame : Return Address
+0xffffffb04918ef60 : 0xffffff80024a0d75 mach_kernel : _handle_debugger_trap + 0x5d5
+0xffffffb04918efc0 : 0xffffff8002944204 mach_kernel : _kdp_i386_trap + 0x2d4
+0xffffffb04918f010 : 0xffffff8002926727 mach_kernel : _kernel_trap + 0xb27
+0xffffffb04918f0a0 : 0xffffff800294bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb04918f0c0 : 0xffffff80024a0264 mach_kernel : _DebuggerTrapWithState + 0x104
+0xffffffb04918f1f0 : 0xffffff80024a16d0 mach_kernel : _panic_trap_to_debugger + 0x390
+0xffffffb04918f260 : 0xffffff8003da0216 mach_kernel : _panic + 0x54
+0xffffffb04918f2d0 : 0xffffff8002928989 mach_kernel : _panic_trap + 0x13f9
+0xffffffb04918f5d0 : 0xffffff8002926de2 mach_kernel : _kernel_trap + 0x11e2
+0xffffffb04918f660 : 0xffffff800294bf8f mach_kernel : trap_from_kernel + 0x26
+0xffffffb04918f680 : 0xffffff80021020ba
+0xffffffb04918f890 : 0xffffff80024ce372 mach_kernel : _kalloc_ext + 0x212
+0xffffffb04918f990 : 0xffffff8002d198a8 mach_kernel : _grab_memory_for_meta_buf + 0x48
+0xffffffb04918f9e0 : 0xffffff8002d1805d mach_kernel : _allocbuf + 0x23d
+0xffffffb04918fa50 : 0xffffff8002d168f9 mach_kernel : _buf_getblk + 0xe39
+0xffffffb04918fc20 : 0xffffff8006dbbace com.apple.filesystems.apfs : __vnode_dev_write + 0x10a
+0xffffffb04918fc70 : 0xffffff8006dbb8a3 com.apple.filesystems.apfs : _vnode_dev_flush_buf + 0x8d
+0xffffffb04918fcb0 : 0xffffff8006dbb31f com.apple.filesystems.apfs : _vnode_dev_write + 0x423
+0xffffffb04918fd60 : 0xffffff8006eb2be7 com.apple.filesystems.apfs : _obj_write_internal + 0xf7
+0xffffffb04918fda0 : 0xffffff8006eb2882 com.apple.filesystems.apfs : _obj_cache_flush_write + 0xe4
+0xffffffb04918fe10 : 0xffffff8006ecd22d com.apple.filesystems.apfs : _tx_flush + 0x3be
+0xffffffb04918ff20 : 0xffffff8006eccc4c com.apple.filesystems.apfs : _tx_flush_thread + 0x18b
+0xffffffb04918ffa0 : 0xffffff800290881e mach_kernel : _call_continuation + 0x2e \ No newline at end of file