From 36d87ddbf8693dafac3c0952094063326817a9a0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 14 Aug 2018 13:40:02 -0700 Subject: pkg/report: refactor and improve fuchsia report parsing Switch to the existing oops-based infrastructure. Extending existing code is nearly impossible. Detect service crashes on fuchsia. Add more tests. --- pkg/report/testdata/fuchsia/report/0 | 168 +++++++++++++++--------------- pkg/report/testdata/fuchsia/report/1 | 127 ++++++++++------------- pkg/report/testdata/fuchsia/report/10 | 102 ++++++++++++++++++ pkg/report/testdata/fuchsia/report/11 | 31 ++++++ pkg/report/testdata/fuchsia/report/12 | 50 +++++++++ pkg/report/testdata/fuchsia/report/13 | 23 ++++ pkg/report/testdata/fuchsia/report/14 | 19 ++++ pkg/report/testdata/fuchsia/report/15 | 16 +++ pkg/report/testdata/fuchsia/report/16 | 22 ++++ pkg/report/testdata/fuchsia/report/17 | 28 +++++ pkg/report/testdata/fuchsia/report/18 | 16 +++ pkg/report/testdata/fuchsia/report/19 | 34 ++++++ pkg/report/testdata/fuchsia/report/2 | 92 ++++++++-------- pkg/report/testdata/fuchsia/report/20 | 190 ++++++++++++++++++++++++++++++++++ pkg/report/testdata/fuchsia/report/21 | 29 ++++++ pkg/report/testdata/fuchsia/report/22 | 3 + pkg/report/testdata/fuchsia/report/23 | 39 +++++++ pkg/report/testdata/fuchsia/report/24 | 65 ++++++++++++ pkg/report/testdata/fuchsia/report/25 | 76 ++++++++++++++ pkg/report/testdata/fuchsia/report/3 | 81 ++------------- pkg/report/testdata/fuchsia/report/4 | 1 - pkg/report/testdata/fuchsia/report/5 | 2 +- pkg/report/testdata/fuchsia/report/6 | 3 +- pkg/report/testdata/fuchsia/report/8 | 94 +++++++++++++++++ pkg/report/testdata/fuchsia/report/9 | 33 ++++++ 25 files changed, 1069 insertions(+), 275 deletions(-) create mode 100644 pkg/report/testdata/fuchsia/report/10 create mode 100644 pkg/report/testdata/fuchsia/report/11 create mode 100644 pkg/report/testdata/fuchsia/report/12 create mode 100644 pkg/report/testdata/fuchsia/report/13 create mode 100644 pkg/report/testdata/fuchsia/report/14 create mode 100644 pkg/report/testdata/fuchsia/report/15 create mode 100644 pkg/report/testdata/fuchsia/report/16 create mode 100644 pkg/report/testdata/fuchsia/report/17 create mode 100644 pkg/report/testdata/fuchsia/report/18 create mode 100644 pkg/report/testdata/fuchsia/report/19 create mode 100644 pkg/report/testdata/fuchsia/report/20 create mode 100644 pkg/report/testdata/fuchsia/report/21 create mode 100644 pkg/report/testdata/fuchsia/report/22 create mode 100644 pkg/report/testdata/fuchsia/report/23 create mode 100644 pkg/report/testdata/fuchsia/report/24 create mode 100644 pkg/report/testdata/fuchsia/report/25 create mode 100644 pkg/report/testdata/fuchsia/report/8 create mode 100644 pkg/report/testdata/fuchsia/report/9 (limited to 'pkg/report/testdata') diff --git a/pkg/report/testdata/fuchsia/report/0 b/pkg/report/testdata/fuchsia/report/0 index 7d09c4393..e0657f4d6 100644 --- a/pkg/report/testdata/fuchsia/report/0 +++ b/pkg/report/testdata/fuchsia/report/0 @@ -1,93 +1,93 @@ -TITLE: recursion in interrupt handler +TITLE: ASSERT FAILED in Dispatcher::UpdateInternalLocked -gfxconsole: rows Instruction Pointer = 0x10:0xffffffff801a41a7 -48 Stack Pointer = 0x18:0xffffff9951906e90 -, columns Fault Linear Address = 0xb0 -113 Error Code Value = 0x0 -, extray Error Code Type = supervisor read data, page not present -0dump_thread: t 0xffffff806c388ae0 (/syz-executor:initial-thread) - - state run, curr/last cpu 0/0, cpu_affinity 0xffffffff, priority 16:0, remaining time slice 6101766 - runtime_ns 11497170, runtime_s 0 - stack 0xffffff9951905000, stack_size 8192 - entry 0xffffffff8015262c, arg 0xffffff806c3888c0, flags 0x0 +executing program +gfxconsole: rows 48, columns 113, extray 0 ZIRCON KERNEL PANIC -UPTIME: wait queue 0, blocked_status 0, interruptable 0 -311133 aspace 0xffffff806c372d98 -ms - user_thread 0xffffff806c3888c0, pid 1923727, tid 1923758 -BUILDID stopping other cpus -git-9fd63dbbac9589e8c902f28e73f9e980a859fc7d-dirtyhalting cpu 3 - +UPTIME: 147487ms +BUILDID git-93f14256334010c7d11fa34fea4fd9e49880e132 -dso: id=9c808053206b45ef38224aa56daad5e8aac8c998 base=0xffffffff80100000 name=zircon.elf + Instruction Pointer = 0x10:0xffffffff0014d1c4 +dso: id=2792436d6b3e6202542e152902c480c97da3d5d7 base=0xffffffff00100000 name=zircon.elf +stopping other cpus + Stack Pointer = 0x18:0xffffff96f3008de0 + Fault Linear Address = 0x8 + Error Code Value = 0x0 + Error Code Type = supervisor read data, page not present +dump_thread: t 0xffffff8003432198 (devhost:pci#2:8086:100e:eth-irq-thread) + state run, curr/last cpu 0/0, cpu_affinity 0xffffffff, priority 20 [16:4,-1], remaining time slice 10000000 + runtime_ns 43749957338, runtime_s 43 + stack 0xffffff96f3007000, stack_size 8192 + entry 0xffffffff00169788, arg 0xffffff8003432020, flags 0x0 + wait queue 0, blocked_status 0, interruptable 0, mutexes held 1 + aspace 0xffffff80008a1e18 + user_thread 0xffffff8003432020, pid 2369, tid 2620 vector 14 -recursion in interrupt handler - CS: 0x10 RIP: 0xffffffff801066f3 EFL: 0x10006 CR2: 0x38 - RAX: 0 RBX: 0xffffff995190ee50 RCX: 0x2 RDX: 0 - RSI: 0xe00 RDI: 0x2003002 RBP: 0xffffff995190ee40 RSP: 0xffffff995190ee00 - R8: 0xab R9: 0xffffffff801dc0b6 R10: 0xffffff806c343508 R11: 0 - R12: 0x10 R13: 0 R14: 0xc R15: 0x1d -errc: 0 -bottom of kernel stack at 0xffffff995190ed50: -0xffffff995190ed50: 02003002 00000000 00000e00 00000000 |.0..............| -0xffffff995190ed60: 5190ee40 ffffff99 5190ee50 ffffff99 |@..Q....P..Q....| -0xffffff995190ed70: 00000000 00000000 00000002 00000000 |................| -0xffffff995190ed80: 00000000 00000000 000000ab 00000000 |................| -0xffffff995190ed90: 801dc0b6 ffffffff 6c343508 ffffff80 |.........54l....| -0xffffff995190eda0: 00000000 00000000 00000010 00000000 |................| -0xffffff995190edb0: 00000000 00000000 0000000c 00000000 |................| -0xffffff995190edc0: 0000001d 00000000 0000000e 00000000 |................| -platform_halt suggested_action 0 reason 9 -Halting... -Halted -entering panic shell loop -! vector 14 Supervisor Page Fault exception, halting - CS: 0x10 RIP: 0xffffffff801a41a7 EFL: 0x10202 CR2: 0xb0 - RAX: 0xffffff801ea2a830 RBX: 0xffffff806c324770 RCX: 0 RDX: 0xb0 - RSI: 0xffffff9951906eb8 RDI: 0xffffffff802876c0 RBP: 0xffffff9951906ea0 RSP: 0xffffff9951906e90 - R8: 0x200 R9: 0xffffffff801d4e58 R10: 0x4578b7f95dd0 R11: 0xffffffff801d698a - R12: 0 R13: 0x41000 R14: 0xffffff9951906f50 R15: 0x63e5e31e8d20 + RIP: 0x0014d1c4 Dispatcher::UpdateInternalLocked object/dispatcher.cpp:104 + CS: 0x10 RIP: 0xffffffff0014d1c4 EFL: 0x10246 CR2: 0x8 + RAX: 0 RBX: 0xffffff8003501b98 RCX: 0xffffffff00148044 RDX: 0xffffffff00148044 + RSI: 0x3 RDI: 0xffffff8003501b98 RBP: 0xffffff96f3008e20 RSP: 0xffffff96f3008de0 + R8: 0x898f R9: 0xffffffff002051e8 R10: 0xffffff80034326d0 R11: 0xffffffff00205d78 +panic (caller 0xffffffff001e6b59 frame 0xffffff96f4094db0): DEBUG ASSERT FAILED at (kernel/lib/heap/cmpctmalloc/cmpctmalloc.c:2 + R12: 0xffffff80034e8fb1 R13: 0x3 R14: 0xffffff96f3008e48 R15: 0xffffff80034e8f90 +90): answer < NUMBER_OF_BUCKETS errc: 0 -bottom of kernel stack at 0xffffff9951906de0: -0xffffff9951906de0: 802876c0 ffffffff 51906eb8 ffffff99 |.v(......n.Q....| -0xffffff9951906df0: 51906ea0 ffffff99 6c324770 ffffff80 |.n.Q....pG2l....| -0xffffff9951906e00: 000000b0 00000000 00000000 00000000 |................| -0xffffff9951906e10: 1ea2a830 ffffff80 00000200 00000000 |0...............| -0xffffff9951906e20: 801d4e58 ffffffff b7f95dd0 00004578 |XN.......]..xE..| -0xffffff9951906e30: 801d698a ffffffff 00000000 00000000 |.i..............| -0xffffff9951906e40: 00041000 00000000 51906f50 ffffff99 |........Po.Q....| -0xffffff9951906e50: e31e8d20 000063e5 0000000e 00000000 | ....c..........| -platform_halt suggested_action 0 reason 9 +platform_halt suggested_action 0 reason 2 Halting... -bt#00: 0xffffffff8010659d -bt#01: 0xffffffff80106eaa -bt#02: 0xffffffff80113fd3 -bt#03: 0xffffffff801a5fd4 -bt#04: 0xffffffff801a6109 -bt#05: 0xffffffff80175177 -bt#06: 0xffffffff8015a1e4 -bt#07: 0xffffffff80114569 -bt#08: end - -start of symbolized stack: - pc: 0xffffffff801a41a7 => fbl::DoublyLinkedList::internal_insert(VmObject*, VmObject*&&) at ../../zircon/system/ulib/fbl/include/fbl/intrusive_double_list.h:549 - (inlined by) fbl::DoublyLinkedList::push_back(VmObject*&&) at ../../zircon/system/ulib/fbl/include/fbl/intrusive_double_list.h:174 - (inlined by) VmObject::VmObject(fbl::RefPtr) at ../../zircon/kernel/vm/vm_object.cpp:41 -bt#00: 0xffffffff8010659d => exception_die(x86_64_iframe*, char const*) at ../../zircon/kernel/arch/x86/faults.cpp:72 -bt#01: 0xffffffff80106eaa => x86_fatal_pfe_handler at ../../zircon/kernel/arch/x86/faults.cpp:223 - (inlined by) x86_exception_handler at ../../zircon/kernel/arch/x86/faults.cpp:379 -bt#02: 0xffffffff80113fd3 => interrupt_common at ../../zircon/kernel/arch/x86/exceptions.S:125 -bt#03: 0xffffffff801a5fd4 => VmObjectPaged::VmObjectPaged(unsigned int, fbl::RefPtr) at ../../zircon/kernel/vm/vm_object_paged.cpp:55 -bt#04: 0xffffffff801a6109 => VmObjectPaged::Create(unsigned int, unsigned long, fbl::RefPtr*) at ../../zircon/kernel/vm/vm_object_paged.cpp:83 (discriminator 1) -bt#05: 0xffffffff80175177 => sys_vmo_create(unsigned long, unsigned int, user_ptr) at ../../zircon/kernel/syscalls/syscalls_vmo.cpp:40 -bt#06: 0xffffffff8015a1e4 => operator() at /usr/local/google/home/dvyukov/src/fuchsia/out/build-zircon/build-zircon-pc-x86-64/gen/include/zircon/syscall-kernel-wrappers.inc:282 - (inlined by) do_syscall > at ../../zircon/kernel/syscalls/syscalls.cpp:60 - (inlined by) wrapper_vmo_create at /usr/local/google/home/dvyukov/src/fuchsia/out/build-zircon/build-zircon-pc-x86-64/gen/include/zircon/syscall-kernel-wrappers.inc:283 -bt#07: 0xffffffff80114569 => x86_syscall at /usr/local/google/home/dvyukov/src/fuchsia/out/build-zircon/build-zircon-pc-x86-64/gen/include/zircon/syscall-kernel-branches.S:60 -end of symbolized stack -cannot create qrcode -Halted +bottom of kernel stack at 0xffffff96f3008d30: +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +0xffffff96f3008d30: 03501b98 ffffff80 00000003 00000000 |..P.............| +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x001e6ae3 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:290 +bt#03: 0x001e6b59 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:254 +0xffffff96f3008d40: f3008e20 ffffff96 03501b98 ffffff80 | .........P.....| +bt#04: [ inline ] size_to_index_freeing lib/heap/cmpctmalloc/cmpctmalloc.c:303 +bt#04: 0x001e6b89 create_free_area lib/heap/cmpctmalloc/cmpctmalloc.c:358 +bt#05: 0x001e6f65 cmpct_alloc lib/heap/cmpctmalloc/cmpctmalloc.c:943 +bt#06: 0x001ab783 malloc lib/heap/heap_wrapper.cpp:55 +bt#07: 0x0014156a operator new system/ulib/fbl/alloc_checker.cpp:70 +0xffffff96f3008d50: 00148044 ffffffff 00148044 ffffffff |D.......D.......| +bt#08: 0x001d1d27 VmObjectPaged::Create vm/vm_object_paged.cpp:112 +0xffffff96f3008d60: 00000000 00000000 0000898f 00000000 |................| +bt#09: 0x00199ddc sys_vmo_create syscalls/vmo.cpp:54 +0xffffff96f3008d70: 002051e8 ffffffff 034326d0 ffffff80 |.Q ......&C.....| +bt#10: [ inline ] operator() syscall-kernel-wrappers.inc:461 +bt#10: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#10: 0x00177ff5 wrapper_vmo_create syscall-kernel-wrappers.inc:466 +0xffffff96f3008d80: 00205d78 ffffffff 034e8fb1 ffffff80 |x] .......N.....| +bt#11: 0x00116c31 x86_syscall syscall-kernel-branches.S:69 +0xffffff96f3008d90: 00000003 00000000 f3008e48 ffffff96 |........H.......| +bt#12: end +0xffffff96f3008da0: 034e8f90 ffffff80 0000000e 00000000 |..N.............| + Instruction Pointer = 0x10:0xffffffff00139911 +platform_halt suggested_action 0 reason 2 + Stack Pointer = 0x18:0xffffff96f4094c90 + Fault Linear Address = 0x90 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 + Error Code Value = 0x0 +bt#01: 0x00108b08 exception_die arch/x86/faults.cpp:100 + Error Code Type = supervisor read data, page not present +bt#02: [ inline ] x86_fatal_pfe_handler arch/x86/faults.cpp:240 +bt#02: [ inline ] handle_exception_types arch/x86/faults.cpp:371 +bt#02: 0x0010968f x86_exception_handler arch/x86/faults.cpp:458 +dump_thread: t 0xffffff8003531d18 (/tmp/syz-executor958367616:initial-thread) +bt#03: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 + state run, curr/last cpu 1/1, cpu_affinity 0xffffffff, priority 19 [16:3,17], remaining time slice 10000000 +bt#04: [ inline ] Dispatcher::UpdateStateHelper object/dispatcher.cpp:270 +bt#04: 0x0014dde3 Dispatcher::UpdateStateLocked object/dispatcher.cpp:290 + runtime_ns 868738779, runtime_s 0 +bt#05: 0x001524c3 FifoDispatcher::WriteSelfLocked object/fifo_dispatcher.cpp:159 + stack 0xffffff96f4093000, stack_size 8192 +bt#06: 0x00152546 FifoDispatcher::WriteFromUser object/fifo_dispatcher.cpp:107 + entry 0xffffffff00169788, arg 0xffffff8003531ba0, flags 0x0 +bt#07: 0x001885dc sys_fifo_write syscalls/fifo.cpp:56 + wait queue 0, blocked_status 0, interruptable 0, mutexes held 1 +bt#08: [ inline ] operator() syscall-kernel-wrappers.inc:610 +bt#08: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#08: 0x00179d0c wrapper_fifo_write syscall-kernel-wrappers.inc:612 + aspace 0xffffff800a14ee10 +bt#09: 0x00116dd8 x86_syscall syscall-kernel-branches.S:90 + user_thread 0xffffff8003531ba0, pid 18288, tid 18302 +bt#10: end diff --git a/pkg/report/testdata/fuchsia/report/1 b/pkg/report/testdata/fuchsia/report/1 index 6b03e015d..2c6470be2 100644 --- a/pkg/report/testdata/fuchsia/report/1 +++ b/pkg/report/testdata/fuchsia/report/1 @@ -1,83 +1,64 @@ -TITLE: ASSERT FAILED +TITLE: ASSERT FAILED in size_to_index_helper + +executing program +gfxconsole: rows 48, columns 113, extray 0 ZIRCON KERNEL PANIC -UPTIME: 255780ms +UPTIME: 128577ms +BUILDID git-5f588306b2998fea1c021f992444971b1ce92581 + +dso: id=c9e63845b8cc355bb42713bfb8eec04942ec7bcd base=0xffffffff00100000 name=zircon.elf stopping other cpus -BUILDID git-9fd63dbbac9589e8c902f28e73f9e980a859fc7d-dirty halting cpu 0 - -dso: id=9c808053206b45ef38224aa56daad5e8aac8c998 base=0xffffffff80100000 name=zircon.elf -panic (caller 0xffffffff80106655 frame 0xffffff9a0e934eb0): DEBUG ASSERT FAILED at (system/ulib/fbl/include/fbl/ref_counted_int -ernal.h:46): magic_ == expected -Invalid magic (expect: 0x52634144, got: 0x00) - +panic (caller 0xffffffff001dd965 frame 0xffffff95faf71b80): DEBUG ASSERT FAILED at (kernel/lib/heap/cmpctmalloc/cmpctmalloc.c:2 +90): answer < NUMBER_OF_BUCKETS platform_halt suggested_action 0 reason 9 Halting... -bt#00: 0xffffffff80180dc8 -bt#01: 0xffffffff8013d438 -bt#02: 0xffffffff80106655 -bt#03: 0xffffffff80106c90 -bt#04: 0xffffffff80113fd3 -bt#05: end - -start of symbolized stack: -bt#00: 0xffffffff80180dc8 => _panic at ../../zircon/kernel/lib/debug/debug.c:42 -bt#01: 0xffffffff8013d438 => fbl::internal::AdoptionValidator::AssertMagic(unsigned int) const at ../../zircon/system/ulib/fbl/include/fbl/ref_counted_internal.h:43 -(inlined by) fbl::internal::AdoptionValidator::ValidateRelease() const at ../../zircon/system/ulib/fbl/include/fbl/ref_counted_internal.h:38 -(inlined by) fbl::internal::RefCountedBase::Release() const at ../../zircon/system/ulib/fbl/include/fbl/ref_counted_internal.h:113 -(inlined by) fbl::RefPtr::~RefPtr() at ../../zircon/system/ulib/fbl/include/fbl/ref_ptr.h:165 -(inlined by) ExceptionPortIterator::~ExceptionPortIterator() at ../../zircon/kernel/object/exception.cpp:53 -(inlined by) exception_handler_worker at ../../zircon/kernel/object/exception.cpp:155 -(inlined by) dispatch_user_exception at ../../zircon/kernel/object/exception.cpp:216 -bt#02: 0xffffffff80106655 => call_dispatch_user_exception at ../../zircon/kernel/arch/x86/faults.cpp:81 -(inlined by) try_dispatch_user_exception at ../../zircon/kernel/arch/x86/faults.cpp:93 -bt#03: 0xffffffff80106c90 => try_dispatch_user_exception at ../../zircon/kernel/arch/x86/faults.cpp:105 -(inlined by) x86_invop_handler at ../../zircon/kernel/arch/x86/faults.cpp:146 -(inlined by) x86_exception_handler at ../../zircon/kernel/arch/x86/faults.cpp:344 -bt#04: 0xffffffff80113fd3 => interrupt_common at ../../zircon/kernel/arch/x86/exceptions.S:125 -end of symbolized stack +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001a22c4 _panic lib/debug/debug.cpp:39 +bt#02: 0x001dd8ef size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:290 +bt#03: 0x001dd965 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:254 +bt#04: [ inline ] size_to_index_freeing lib/heap/cmpctmalloc/cmpctmalloc.c:303 +bt#04: 0x001dd995 create_free_area lib/heap/cmpctmalloc/cmpctmalloc.c:358 +bt#05: 0x001ddd71 cmpct_alloc lib/heap/cmpctmalloc/cmpctmalloc.c:943 +bt#06: 0x001a38b3 malloc lib/heap/heap_wrapper.cpp:55 +bt#07: 0x0013eb76 operator new system/ulib/fbl/alloc_checker.cpp:70 +bt#08: 0x001cc668 VmPageList::AddPage vm/vm_page_list.cpp:84 +bt#09: 0x001c66db VmObjectPaged::AddPageLocked system/ulib/fbl/include/fbl/ref_counted_internal.h:103 +bt#10: 0x001c6a1f VmObjectPaged::GetPageLocked system/ulib/fbl/include/fbl/ref_counted_internal.h:103 +bt#11: 0x001c4560 VmMapping::PageFault vm/vm_mapping.cpp:649 +bt#12: 0x001ba1ed VmAddressRegion::PageFault vm/vm_address_region.cpp:402 +bt#13: 0x001bfcd6 VmAspace::PageFault system/ulib/fbl/include/fbl/ref_counted_internal.h:103 +bt#14: 0x001d2b76 vmm_page_fault_handler vm/vmm.cpp:61 +bt#15: [ inline ] x86_pfe_handler arch/x86/faults.cpp:288 +bt#15: [ inline ] handle_exception_types arch/x86/faults.cpp:367 +bt#15: 0x00108a57 x86_exception_handler arch/x86/faults.cpp:455 +bt#16: end Halted entering panic shell loop -! vector 14 -recursion in interrupt handler -CS: 0x10 RIP: 0xffffffff8012758f EFL: 0x10007 CR2: 0x210 -RAX: 0x1f8 RBX: 0xffffffff80249f50 RCX: 0x3b8e54b573 RDX: 0xe -RSI: 0xffffffff80249f50 RDI: 0x2 RBP: 0xffffff9a0e918e20 RSP: 0xffffff9a0e918df0 -R8: 0x200 R9: 0x3b8e54b573 R10: 0xffffffff80249f40 R11: 0x246 -R12: 0 R13: 0x3b8e54b573 R14: 0x46 R15: 0xffffffff80248d40 -errc: 0 -bottom of kernel stack at 0xffffff9a0e918d40: -0xffffff9a0e918d40: 00000002 00000000 80249f50 ffffffff |........P.$.....| -0xffffff9a0e918d50: 0e918e20 ffffff9a 80249f50 ffffffff | .......P.$.....| -0xffffff9a0e918d60: 0000000e 00000000 8e54b573 0000003b |........s.T.;...| -0xffffff9a0e918d70: 000001f8 00000000 00000200 00000000 |................| -0xffffff9a0e918d80: 8e54b573 0000003b 80249f40 ffffffff |s.T.;...@.$.....| -0xffffff9a0e918d90: 00000246 00000000 00000000 00000000 |F...............| -0xffffff9a0e918da0: 8e54b573 0000003b 00000046 00000000 |s.T.;...F.......| -0xffffff9a0e918db0: 80248d40 ffffffff 0000000e 00000000 |@.$.............| -platform_halt suggested_action 0 reason 9 -Halting... -bt#00: 0xffffffff8010659d -bt#01: 0xffffffff801069e0 -bt#02: 0xffffffff80113fd3 -bt#03: 0xffffffff80127959 -bt#04: 0xffffffff8012431c -bt#05: 0xffffffff80127eb3 -bt#06: 0xffffffff80106b1f -bt#07: 0xffffffff80113fd3 -bt#08: end -start of symbolized stack: -#05: (unknown) -#00: (unknown) -#01: (unknown) -#02: (unknown) -#03: (unknown) -#04: (unknown) -#05: (unknown) -#06: (unknown) -#07: (unknown) -end of symbolized stack -Halted -entering panic shell loop +REPORT: +ZIRCON KERNEL PANIC +panic (caller 0xffffffff001dd965 frame 0xffffff95faf71b80): DEBUG ASSERT FAILED at (kernel/lib/heap/cmpctmalloc/cmpctmalloc.c:290): answer < NUMBER_OF_BUCKETS +platform_halt suggested_action 0 reason 9 +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001a22c4 _panic lib/debug/debug.cpp:39 +bt#02: 0x001dd8ef size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:290 +bt#03: 0x001dd965 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:254 +bt#04: [ inline ] size_to_index_freeing lib/heap/cmpctmalloc/cmpctmalloc.c:303 +bt#04: 0x001dd995 create_free_area lib/heap/cmpctmalloc/cmpctmalloc.c:358 +bt#05: 0x001ddd71 cmpct_alloc lib/heap/cmpctmalloc/cmpctmalloc.c:943 +bt#06: 0x001a38b3 malloc lib/heap/heap_wrapper.cpp:55 +bt#07: 0x0013eb76 operator new system/ulib/fbl/alloc_checker.cpp:70 +bt#08: 0x001cc668 VmPageList::AddPage vm/vm_page_list.cpp:84 +bt#09: 0x001c66db VmObjectPaged::AddPageLocked system/ulib/fbl/include/fbl/ref_counted_internal.h:103 +bt#10: 0x001c6a1f VmObjectPaged::GetPageLocked system/ulib/fbl/include/fbl/ref_counted_internal.h:103 +bt#11: 0x001c4560 VmMapping::PageFault vm/vm_mapping.cpp:649 +bt#12: 0x001ba1ed VmAddressRegion::PageFault vm/vm_address_region.cpp:402 +bt#13: 0x001bfcd6 VmAspace::PageFault system/ulib/fbl/include/fbl/ref_counted_internal.h:103 +bt#14: 0x001d2b76 vmm_page_fault_handler vm/vmm.cpp:61 +bt#15: [ inline ] x86_pfe_handler arch/x86/faults.cpp:288 +bt#15: [ inline ] handle_exception_types arch/x86/faults.cpp:367 +bt#15: 0x00108a57 x86_exception_handler arch/x86/faults.cpp:455 +bt#16: end diff --git a/pkg/report/testdata/fuchsia/report/10 b/pkg/report/testdata/fuchsia/report/10 new file mode 100644 index 000000000..cef441e81 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/10 @@ -0,0 +1,102 @@ +TITLE: unexpected kernel reboot + +[00037.711] 07800.07847> PageFault: 500574 free pages +[00037.712] 07800.07847> PageFault: MemoryUsed: proc 1127 26M 'fshost' +[00037.712] 07800.07847> PageFault: 500574 free pages +[00037.712] 07800.07847> PageFault: MemoryUsed: proc 1127 26M 'fshost' +[00037.717] 0788[00000.000] 00000.00000> zbi: @ 0xffffff8000c62000 (10549960 bytes) +[00000.000] 00000.00000> UART: FIFO depth 16 +[00000.000] 00000.00000> PMM: boot reserve add [0x100000, 0x2d1fff] +[00000.000] 00000.00000> PMM: boot reserve add [0xc62000, 0x1671fff] +[00000.000] 00000.00000> PMM: boot reserve marking WIRED [0x100000, 0x2d1fff] +[00000.000] 00000.00000> PMM: boot reserve marking WIRED [0xc62000, 0x1671fff] +[00000.000] 00000.00000> +[00000.000] 00000.00000> welcome to Zircon +[00000.000] 00000.00000> +[00000.000] 00000.00000> KASLR: .text section at 0xffffffff00100000 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001b1d50 (global_prng_seed) at level 0x30000, flags 0x1 +[00000.000] 00000.00000> initializing vm pre-heap +[00000.000] 00000.00000> VM: marking boot alloc used range [0x1672000, 0x1672040) +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001514f0 (elf_build_id) at level 0x4fffe, flags 0x1 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00151690 (version) at level 0x4ffff, flags 0x1 +[00000.000] 00000.00000> version: +[00000.000] 00000.00000> arch: x86 +[00000.000] 00000.00000> platform: pc +[00000.000] 00000.00000> target: pc +[00000.000] 00000.00000> project: x64 +[00000.000] 00000.00000> buildid: git-7ce261f8df05c3157b32d84e106744f43b4bfc77-dirty +[00000.000] 00000.00000> ELF build ID: 125ba74e65fad35c +[00000.000] 00000.00000> initializing heap +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00104170 (x86_resource_init) at level 0x50000, flags 0x1 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001b0330 (console) at level 0x50000, flags 0x1 +[00000.000] 00000.00000> initializing vm +[00000.000] 00000.00000> VM: reserving kernel region [0xffffffff00100000, 0xffffffff001f5000) flags 0x28 name 'kernel_code' +[00000.000] 00000.00000> VM: reserving kernel region [0xffffffff001f5000, 0xffffffff0023e000) flags 0x8 name 'kernel_rodata' +[00000.000] 00000.00000> VM: reserving kernel region [0xffffffff0023e000, 0xffffffff0024e000) flags 0x18 name 'kernel_data' +[00000.000] 00000.00000> VM: reserving kernel region [0xffffffff0024e000, 0xffffffff002d2000) flags 0x18 name 'kernel_bss' +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00101170 (acpi_tables) at level 0x60001, flags 0x1 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00105110 (display_memtype) at level 0x60001, flags 0x1 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00102540 (hpet) at level 0x60002, flags 0x1 +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001029a0 (apic) at level 0x60002, flags 0x1 +[00000.000] 00000.00000> x2APIC enabled +[00000.000] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00107bf0 (timer) at level 0x60003, flags 0x1 +[00000.000] 00000.00000> pvclock: Clocksource is stable +[00000.000] 00000.00000> HPET frequency: 100000 ticks/ms +[00000.000] 00000.00000> pvclock: Fetching TSC frequency +[00000.000] 00000.00000> TSC frequency: 2593992 ticks/ms +[00037.835] 00000.00000> timer features: constant_tsc 1 invariant_tsc 1 tsc_deadline 1 +[00037.835] 00000.00000> Using TSC as wallclock +[00037.835] 00000.00000> initializing kernel +[00037.835] 00000.00000> initializing mp +[00037.835] 00000.00000> initializing timers +[00037.835] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00142500 (debuglog) at level 0x7ffff, flags 0x1 +[00037.835] 00000.00000> INIT: cpu 0, calling hook 0xffffffff0019b5a0 (thread_set_priority_experiment) at level 0x7ffff, flags 0x1 +[00037.835] 00000.00000> thread set priority experiment is : ENABLED +[00037.835] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001b2090 (global_prng_thread_safe) at level 0x7ffff, flags 0x1 +[00037.835] 00000.00000> creating bootstrap completion thread +[00037.864] 00000.00000> top of bootstrap2() +[00037.864] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00135000 (dpc) at level 0x80000, flags 0x1 +[00037.865] 00000.00000> INIT: cpu 0, calling hook 0xffffffff0015e480 (libobject) at level 0x80000, flags 0x1 +[00037.865] 00000.00000> OOM: started thread +[00037.867] 00000.00000> Processor Model Info: type 0 family 0x6 model 0xf stepping 0x1 +[00037.867] 00000.00000> display_family 0x6 display_model 0x4f +[00037.867] 00000.00000> Vendor: Intel +[00037.867] 00000.00000> Microarch: Broadwell +[00037.867] 00000.00000> F/M/S: 6/4f/1 +[00037.867] 00000.00000> Brand: Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz +[00037.867] 00000.00000> Features: fpu sse sse2 sse3 ssse3 sse4.1 sse4.2 mmx avx avx2 fxsr pcid xsave aesni clflush +[00037.867] 00000.00000> fsgsbase tsc_adj smep smap erms rdrand rdseed umip syscall nx huge rdtscp invar_tsc +[00037.867] 00000.00000> tsc_deadline x2apic hypervisor +[00037.867] 00000.00000> x86_perfmon_have_mchbar_data:386: perfmon: unsupported pci device: 0x8086.0x29c0 +[00037.867] 00000.00000> initializing platform +[00037.867] 00000.00000> UART: started IRQ driven RX +[00037.867] 00000.00000> UART: started IRQ driven TX +[00037.867] 00000.00000> cpu topology: +[00037.867] 00000.00000> 0: apic id 0x0 package 0 node 0 core 0 smt 0 BSP +[00037.867] 00000.00000> 1: apic id 0x1 package 0 node 0 core 0 smt 1 +[00037.867] 00000.00000> 2: apic id 0x2 package 1 node 0 core 0 smt 0 +[00037.867] 00000.00000> 3: apic id 0x3 package 1 node 0 core 0 smt 1 +[00037.867] 00000.00000> Found 4 cpus +[00037.867] 00000.00000> booting apic ids: 0x1 0x2 0x3 +[00037.878] 00000.00000> entering scheduler on cpu 2 +[00037.878] 00000.00000> entering scheduler on cpu 1 +[00037.878] 00000.00000> entering scheduler on cpu 3 +[00037.881] 00000.00000> smbios: manufacturer="QEMU" product="Standard PC (Q35 + ICH9, 2009)" +[00037.881] 00000.00000> initializing target +[00037.881] 00000.00000> INIT: cpu 0, calling hook 0xffffffff00106c40 (x86_pcie_init) at level 0xa0000, flags 0x1 +[00037.881] 00000.00000> moving to last init level +[00037.881] 00000.00000> INIT: cpu 0, calling hook 0xffffffff0014b690 (ktrace) at level 0xc0000, flags 0x1 +[00037.897] 00000.00000> ktrace: buffer at 0xffffff93cbdee000 (33554432 bytes) +[00037.897] 00000.00000> INIT: cpu 0, calling hook 0xffffffff0014fd50 (userboot) at level 0xc0000, flags 0x1 +[00037.897] 00000.00000> userboot: ramdisk 0xa10000 @ 0xffffff8000c62000 +[00037.901] 00000.00000> userboot: userboot rodata 0 @ [0x77c04a1a1000,0x77c04a1a4000) +[00037.901] 00000.00000> userboot: userboot code 0x3000 @ [0x77c04a1a4000,0x77c04a1b8000) +[00037.901] 00000.00000> userboot: vdso/full rodata 0 @ [0x77c04a1b8000,0x77c04a1be000) +[00037.901] 00000.00000> userboot: vdso/full code 0x6000 @ [0x77c04a1be000,0x77c04a1bf000) +[00037.901] 00000.00000> userboot: entry point @ 0x77c04a1a4b10 +[00037.901] 00000.00000> INIT: cpu 0, calling hook 0xffffffff001b0880 (kernel_shell) at level 0xc0000, flags 0x1 +[00037.902] 01031.01038> userboot: option "/usr/local/google/home/cpu/src/garnet/zircon/build-x64-clang/multiboot.bin=" +[00037.902] 01031.01038> userboot: option "kernel.halt-on-panic=true" +[00037.902] 01031.01038> userboot: option "kernel.serial=legacy" +[00037.902] 01031.01038> userboot: option "TERM=xterm-256color" +[00037.902] 01031.01038> userboot: option "kernel.entropy-mixin.redacted=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" diff --git a/pkg/report/testdata/fuchsia/report/11 b/pkg/report/testdata/fuchsia/report/11 new file mode 100644 index 000000000..52d61a515 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/11 @@ -0,0 +1,31 @@ +TITLE: double fault in x86_df_handler + +gfxconsole: rows 48, columns 113, extray 0 + +ZIRCON KERNEL PANIC + +UPTIME: 58118ms +BUILDID git-44c17cfb5163fe22a3f090f4631f5e5662c88b5a + +dso: id=804f6934934c10051594138896e2fc3b46ff548d base=0xffffffff00100000 name=zircon.elf +stopping other cpus +halting cpu 1 +vector 8 +double fault, halting + CS: 0x33 RIP: 0x5468aed3ac40 EFL: 0x10202 CR2: 0xfffffffffffffff8 + RAX: 0 RBX: 0 RCX: 0 RDX: 0 + RSI: 0 RDI: 0 RBP: 0 RSP: 0 + R8: 0 R9: 0 R10: 0 R11: 0 + R12: 0 R13: 0 R14: 0 R15: 0 +errc: 0 +platform_halt suggested_action 0 reason 9 +Halting... +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x00108425 exception_die arch/x86/faults.cpp:97 +bt#02: [ inline ] x86_df_handler arch/x86/faults.cpp:175 +bt#02: [ inline ] handle_exception_types arch/x86/faults.cpp:349 +bt#02: 0x00108d63 x86_exception_handler arch/x86/faults.cpp:455 +bt#03: 0x0011599e interrupt_common arch/x86/exceptions.S:127 +bt#04: end +Halted +entering panic shell loop diff --git a/pkg/report/testdata/fuchsia/report/12 b/pkg/report/testdata/fuchsia/report/12 new file mode 100644 index 000000000..0b3aa2b98 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/12 @@ -0,0 +1,50 @@ +TITLE: ASSERT FAILED in fbl::WAVLTree::iterator_impl::advance + +gfxconsole: rows 48, columns 113, extray 0 +stopping other cpus + +ZIRCON KERNEL PANIC + +UPTIME: 1558452ms +BUILDID git-93f14256334010c7d11fa34fea4fd9e49880e132 + +dso: id=2792436d6b3e6202542e152902c480c97da3d5d7 base=0xffffffff00100000 name=zircon.elf +panic (caller 0xffffffff001c7025 frame 0xffffff96fb75ad60): DEBUG ASSERT FAILED at (system/ulib/fbl/include/fbl/intrusive_wavl_ +tree.h:652): PtrTraits::IsValid(ns->parent_) +platform_halt suggested_action 0 reason 2 +Halting... +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: [ inline ] fbl::WAVLTree::iterator_impl::advance system/ulib/fbl/include/fbl/intrusive_wavl_tree.h:641 +bt#02: [ inline ] fbl::WAVLTree::iterator_impl::operator++ system/ulib/fbl/include/fbl/intrusive_wavl_tree.h:572 +bt#02: [ inline ] lambda vm/vm_address_region.cpp:808 +bt#02: 0x001c5bd7 VmAddressRegion::NonCompactRandomizedRegionAllocatorLocked vm/vm_address_region.cpp:851 +bt#03: 0x001c7025 VmAddressRegion::CreateSubVmarInternal vm/vm_address_region.cpp:157 +bt#04: 0x001c759d VmAddressRegion::CreateSubVmar vm/vm_address_region.cpp:218 +bt#05: 0x0016ba19 VmAddressRegionDispatcher::Allocate object/vm_address_region_dispatcher.cpp:144 +bt#06: 0x00199357 sys_vmar_allocate syscalls/vmar.cpp:53 +bt#07: [ inline ] operator() syscall-kernel-wrappers.inc:539 +bt#07: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#07: 0x00178f4d wrapper_vmar_allocate syscall-kernel-wrappers.inc:544 +bt#08: 0x00116d0e x86_syscall syscall-kernel-branches.S:80 +bt#09: end +halting cpu 1 +vector 8 +double fault, halting + CS: 0x33 RIP: 0x58ce83a74210 EFL: 0x10202 CR2: 0xfffffffffffffff8 + RAX: 0 RBX: 0 RCX: 0 RDX: 0 + RSI: 0 RDI: 0 RBP: 0 RSP: 0 + R8: 0 R9: 0 R10: 0 R11: 0 + R12: 0 R13: 0 R14: 0 R15: 0 +errc: 0 +platform_halt suggested_action 0 reason 2 +Halting... +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x00108b08 exception_die arch/x86/faults.cpp:100 +bt#02: [ inline ] x86_df_handler arch/x86/faults.cpp:178 +bt#02: [ inline ] handle_exception_types arch/x86/faults.cpp:352 +bt#02: 0x00109443 x86_exception_handler arch/x86/faults.cpp:458 +bt#03: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#04: end +Halted +entering panic shell loop diff --git a/pkg/report/testdata/fuchsia/report/13 b/pkg/report/testdata/fuchsia/report/13 new file mode 100644 index 000000000..1c256cdf5 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/13 @@ -0,0 +1,23 @@ +TITLE: double fault + +ZIRCON KERNEL PANIC + +UPTIME: 198301ms +BUILDID git-3eaa65ea420960da3ed74088bc9caaeb594da389 + +dso: id=acdf23dac865024ffa3b3b21aa5b47b6218cf4d2 base=0xffffffff00100000 name=zircon.elf +PageFault: 451072 free pages +stopping other cpus +halting cpu 0 +vector 8 +double fault, halting + CS: 0x33 RIP: 0x31a037504c70 EFL: 0x10202 CR2: 0xfffffffffffffff8 + RAX: 0 RBX: 0 RCX: 0 RDX: 0 + RSI: 0 RDI: 0 RBP: 0 RSP: 0 + R8: 0 R9: 0 R10: 0 R11: 0 + R12: 0 R13: 0 R14: 0 R15: 0 +errc: 0 +platform_halt suggested_action 0 reason 9 +Halting... +Halted +entering panic shell loop diff --git a/pkg/report/testdata/fuchsia/report/14 b/pkg/report/testdata/fuchsia/report/14 new file mode 100644 index 000000000..d4e18b64e --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/14 @@ -0,0 +1,19 @@ +TITLE: double fault in x86_df_handler + +ZIRCON KERNEL PANIC +vector 8 +double fault, halting + CS: 0x33 RIP: 0x6b8144262960 EFL: 0x10202 CR2: 0xfffffffffffffff8 + RAX: 0 RBX: 0 RCX: 0 RDX: 0 + RSI: 0 RDI: 0 RBP: 0 RSP: 0 + R8: 0 R9: 0 R10: 0 R11: 0 + R12: 0 R13: 0 R14: 0 R15: 0 +errc: 0 +platform_halt suggested_action 0 reason 9 +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x00108425 exception_die arch/x86/faults.cpp:97 +bt#02: [ inline ] x86_df_handler arch/x86/faults.cpp:175 +bt#02: [ inline ] handle_exception_types arch/x86/faults.cpp:349 +bt#02: 0x00108d63 x86_exception_handler arch/x86/faults.cpp:455 +bt#03: 0x0011599e interrupt_common arch/x86/exceptions.S:127 +bt#04: end diff --git a/pkg/report/testdata/fuchsia/report/15 b/pkg/report/testdata/fuchsia/report/15 new file mode 100644 index 000000000..2d8d56775 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/15 @@ -0,0 +1,16 @@ +TITLE: ASSERT FAILED in exception_handler_worker + +ZIRCON KERNEL PANIC +panic (caller 0xffffffff00108eac frame 0xffffff92d60e7ed0): ASSERT FAILED at (kernel/object/exception.cpp:182): 0 +unexpected exception result -24 +platform_halt suggested_action 0 reason 9 +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001a2390 _panic lib/debug/debug.cpp:39 +bt#02: [ inline ] exception_handler_worker object/exception.cpp:182 +bt#02: 0x0014c959 dispatch_user_exception object/exception.cpp:215 +bt#03: [ inline ] call_dispatch_user_exception arch/x86/faults.cpp:105 +bt#03: [ inline ] x86_pfe_handler arch/x86/faults.cpp:306 +bt#03: [ inline ] handle_exception_types arch/x86/faults.cpp:367 +bt#03: 0x00108eac x86_exception_handler arch/x86/faults.cpp:455 +bt#04: 0x0011599e interrupt_common arch/x86/exceptions.S:127 +bt#05: end diff --git a/pkg/report/testdata/fuchsia/report/16 b/pkg/report/testdata/fuchsia/report/16 new file mode 100644 index 000000000..4814219cc --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/16 @@ -0,0 +1,22 @@ +TITLE: double fault + +ZIRCON KERNEL PANIC + +UPTIME: 646539ms +BUILDID git-5f588306b2998fea1c021f992444971b1ce92581 + +dso: id=c9e63845b8cc355bb42713bfb8eec04942ec7bcd base=0xffffffff00100000 name=zircon.elf +stopping other cpus +halting cpu 0 +vector 8 +double fault, halting + CS: 0x33 RIP: 0x6ea9317baa30 EFL: 0x10202 CR2: 0xfffffffffffffff8 + RAX: 0 RBX: 0 RCX: 0 RDX: 0 + RSI: 0 RDI: 0 RBP: 0 RSP: 0 + R8: 0 R9: 0 R10: 0 R11: 0 + R12: 0 R13: 0 R14: 0 R15: 0 +errc: 0 +platform_halt suggested_action 0 reason 9 +Halting... +Halted +entering panic shell loop diff --git a/pkg/report/testdata/fuchsia/report/17 b/pkg/report/testdata/fuchsia/report/17 new file mode 100644 index 000000000..b1cdd2673 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/17 @@ -0,0 +1,28 @@ +TITLE: KVM internal error + +ZIRCON KERNEL PANIC + +UPTIME: 203683ms +BUILDID git-069d64c430190d5a6e0ef30936309fe9546eKVM internal error. Suberror: 1 +emulation failure +RAX=00000000000003f8 RBX=0000000000000005 RCX=0000000000000000 RDX=00000000000003fd +RSI=0000000000000010 RDI=0000000000000010 RBP=ffffffff0022d380 RSP=ffffffff0022d340 +R8 =0000000000000010 R9 =00000000000003f8 R10=000000000000000d R11=000000000000000a +R12=0000000000000046 R13=0000000000000000 R14=0000000000000000 R15=ffffff800966aa9c +RIP=ffffffff00101a59 RFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 +ES =0000 0000000000000000 ffffffff 00000000 +CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] +SS =0000 0000000000000000 ffffffff 00000000 +DS =0000 0000000000000000 ffffffff 00000000 +FS =0000 00007d668c0a4b30 ffffffff 00000000 +GS =0000 ffffffff002286c0 ffffffff 00000000 +LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT +TR =0038 ffffffff00228710 00002068 00008b00 DPL=0 TSS64-busy +GDT= ffffffff0022da80 00000137 +IDT= ffffff9994454000 00000fff +CR0=80010033 CR2=ffffff99a6548ec8 CR3=000000000d084000 CR4=003506a0 +DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 +DR6=00000000ffff0ff0 DR7=0000000000000400 +EFER=0000000000000d01 +Code=?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? +Connection to localhost closed by remote host. diff --git a/pkg/report/testdata/fuchsia/report/18 b/pkg/report/testdata/fuchsia/report/18 new file mode 100644 index 000000000..2a80216b2 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/18 @@ -0,0 +1,16 @@ +TITLE: ASSERT FAILED: is_kernel_address(x86_get_percpu()->default_tss.rsp0) + +ZIRCON KERNEL PANIC + +UPTIME: 1944951ms +BUILDID git-1bf305d9612c862c33249da88456e3bd47523162 + +dso: id=741c506e5d533679b99547e4caa12bce94f6f6a5 base=0xffffffff00100000 name=zircon.elf +stopping other cpus +halting cpu 1 +panic (caller 0xffffffff00164791 frame 0xffffff9c2a2acfb0): DEBUG ASSERT FAILED at (kernel/arch/x86/arch.cpp:86): is_kernel_add +ress(x86_get_percpu()->default_tss.rsp0) +platform_halt suggested_action 0 reason 2 +Halting... +Halted +entering panic shell loop diff --git a/pkg/report/testdata/fuchsia/report/19 b/pkg/report/testdata/fuchsia/report/19 new file mode 100644 index 000000000..f39fd63d8 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/19 @@ -0,0 +1,34 @@ +TITLE: recursion in interrupt handler in arch_spin_lock + +ZIRCON KERNEL PANIC +vector 14 +recursion in interrupt handler + RIP: 0x00114bcd arch_spin_lock arch/x86/asm.S:45 + CS: 0x10 RIP: 0xffffffff00114bcd EFL: 0x10046 CR2: 0x258 + RAX: 0 RBX: 0 RCX: 0 RDX: 0x20 + RSI: 0x2 RDI: 0x258 RBP: 0xffffff9539930e40 RSP: 0xffffff9539930e18 + R8: 0x2960a8b235f R9: 0 R10: 0x6ac66cf251 R11: 0xffffff9539930e50 + R12: 0xffffff9539930e50 R13: 0x258 R14: 0x46 R15: 0xffffffff001f7028 +errc: 0x2 +bottom of kernel stack at 0xffffff9539930d60: +0xffffff9539930d60: 00000258 00000000 00000002 00000000 |X...............| +0xffffff9539930d70: 39930e40 ffffff95 00000000 00000000 |@..9............| +0xffffff9539930d80: 00000020 00000000 00000000 00000000 | ...............| +0xffffff9539930d90: 00000000 00000000 0a8b235f 00000296 |........_#......| +0xffffff9539930da0: 00000000 00000000 c66cf251 0000006a |........Q.l.j...| +0xffffff9539930db0: 39930e50 ffffff95 39930e50 ffffff95 |P..9....P..9....| +0xffffff9539930dc0: 00000258 00000000 00000046 00000000 |X.......F.......| +0xffffff9539930dd0: 001f7028 ffffffff 0000000e 00000000 |(p..............| +platform_halt suggested_action 0 reason 9 +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x00108425 exception_die arch/x86/faults.cpp:97 +bt#02: 0x00108c54 x86_exception_handler arch/x86/faults.cpp:443 +bt#03: 0x0011599e interrupt_common arch/x86/exceptions.S:127 +bt#04: 0x001326c1 dump_thread kernel/thread.cpp:1186 +bt#05: [ inline ] x86_fatal_pfe_handler arch/x86/faults.cpp:217 +bt#05: [ inline ] handle_exception_types arch/x86/faults.cpp:368 +bt#05: 0x00108aca x86_exception_handler arch/x86/faults.cpp:455 +bt#06: 0x0011599e interrupt_common arch/x86/exceptions.S:127 +bt#07: 0x00115c9a x86_syscall syscall-kernel-branches.S:8 +bt#08: end + diff --git a/pkg/report/testdata/fuchsia/report/2 b/pkg/report/testdata/fuchsia/report/2 index 0083e11c4..cf9bc81c5 100644 --- a/pkg/report/testdata/fuchsia/report/2 +++ b/pkg/report/testdata/fuchsia/report/2 @@ -1,49 +1,59 @@ -TITLE: KERNEL PANIC +TITLE: ASSERT FAILED in fbl::Canary::Assert + +gfxconsole: rows 48, columns 113, extray 0 +[00124.537] 01044.01197> devmgr: analyzer_starter: analyzing exception type 0x108 ZIRCON KERNEL PANIC -UPTIME: 36568ms -BUILDID git-9fd63dbbac9589e8c902f28e73f9e980a859fc7d-dirty +UPTIME: 124582ms +BUILDID git-5f588306b2998fea1c021f992444971b1ce92581 -dso: id=198a153579d0f1484482cf2ef63189a62575a4e8 base=0xffffffff80100000 name=zircon.elf +dso: id=c9e63845b8cc355bb42713bfb8eec04942ec7bcd base=0xffffffff00100000 name=zircon.elf stopping other cpus -halting cpu 0 -halting cpu 2 -halting cpu 3 -panic (caller 0xffffffff801a3c99 frame 0xffffff9f79f37c10): mutex_acquire: thread 0xffffff806c3a9f60 (pthread_t:0x3d22e7178b30) -tried to acquire mutex 0xffffff806c3301a0 it already owns. +halting cpu 1 +panic (caller 0xffffffff0015ae53 frame 0xffffff921934cdb0): DEBUG ASSERT FAILED at (system/ulib/fbl/include/fbl/canary.h:68): m +agic_ == magic +Invalid canary (expt: 504f5254, got: 00000000) + platform_halt suggested_action 0 reason 9 Halting... -bt#00: 0xffffffff80180f18 -bt#01: 0xffffffff80123a29 -bt#02: 0xffffffff801a3c99 -bt#03: 0xffffffff80197938 -bt#04: 0xffffffff8019f90d -bt#05: 0xffffffff80106808 -bt#06: 0xffffffff8011408f -bt#07: 0xffffffff801a74bb -bt#08: 0xffffffff80173b44 -bt#09: 0xffffffff80158df6 -bt#10: end - -start of symbolized stack: -bt#00: 0xffffffff80180f18 => _panic at ../../zircon/kernel/lib/debug/debug.c:42 -bt#01: 0xffffffff80123a29 => mutex_acquire at ../../zircon/kernel/kernel/mutex.c:81 -bt#02: 0xffffffff801a3c99 => fbl::AutoLock::AutoLock(mutex*) at ../../zircon/system/ulib/fbl/include/fbl/auto_lock.h:31 -(inlined by) fbl::AutoLock::AutoLock(fbl::Mutex*) at ../../zircon/system/ulib/fbl/include/fbl/auto_lock.h:35 -(inlined by) VmMapping::PageFault(unsigned long, unsigned int) at ../../zircon/kernel/vm/vm_mapping.cpp:562 -bt#03: 0xffffffff80197938 => VmAddressRegion::PageFault(unsigned long, unsigned int) at ../../zircon/kernel/vm/vm_address_region.cpp:391 -bt#04: 0xffffffff8019f90d => VmAspace::PageFault(unsigned long, unsigned int) at ../../zircon/kernel/vm/vm_aspace.cpp:548 -bt#05: 0xffffffff80106808 => x86_pfe_handler at ../../zircon/kernel/arch/x86/faults.cpp:273 -(inlined by) x86_exception_handler at ../../zircon/kernel/arch/x86/faults.cpp:378 -bt#06: 0xffffffff8011408f => interrupt_common at ../../zircon/kernel/arch/x86/exceptions.S:125 -bt#07: 0xffffffff801a74bb => user_ptr::copy_array_from_user(void*, unsigned long) const at ../../zircon/kernel/lib/user_copy/include/lib/user_copy/user_ptr.h:81 -(inlined by) operator() at ../../zircon/kernel/vm/vm_object_paged.cpp:1001 -(inlined by) ReadWriteInternal, uint64_t, size_t, size_t*):: > at ../../zircon/kernel/vm/vm_object_paged.cpp:858 -(inlined by) VmObjectPaged::WriteUser(user_ptr, unsigned long, unsigned long, unsigned long*) at ../../zircon/kernel/vm/vm_object_paged.cpp:1004 -bt#08: 0xffffffff80173b44 => sys_process_write_memory(unsigned int, unsigned long, user_ptr, unsigned long, user_ptr) at ../../zircon/kernel/syscalls/syscalls_task.cpp:542 (discriminator 1) -bt#09: 0xffffffff80158df6 => operator() at /usr/local/google/home/dvyukov/src/fuchsia/out/build-zircon/build-zircon-pc-x86-64/gen/include/zircon/syscall-kernel-wrappers.inc:187 -(inlined by) do_syscall > at ../../zircon/kernel/syscalls/syscalls.cpp:60 -(inlined by) wrapper_process_write_memory at /usr/local/google/home/dvyukov/src/fuchsia/out/build-zircon/build-zircon-pc-x86-64/gen/include/zircon/syscall-kernel-wrappers.inc:188 -end of symbolized stack +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001a22c4 _panic lib/debug/debug.cpp:39 +bt#02: [ inline ] fbl::Canary::Assert object/port_dispatcher.cpp:159 +bt#02: 0x0015ad92 PortDispatcher::Queue object/port_dispatcher.cpp:258 +bt#03: 0x0015ae53 PortObserver::MaybeQueue object/port_dispatcher.cpp:159 +bt#04: 0x0014a19f Dispatcher::UpdateInternalLocked object/dispatcher.cpp:104 +bt#05: [ inline ] Dispatcher::UpdateStateHelper object/dispatcher.cpp:270 +bt#05: 0x0014adbb Dispatcher::UpdateStateLocked object/dispatcher.cpp:290 +bt#06: 0x001619ba SocketDispatcher::WriteSelfLocked object/socket_dispatcher.cpp:275 +bt#07: 0x00161a39 SocketDispatcher::Write object/socket_dispatcher.cpp:212 +bt#08: 0x0018bf7b sys_socket_write syscalls/socket.cpp:68 +bt#09: [ inline ] operator() syscall-kernel-wrappers.inc:204 +bt#09: [ inline ] socket_write syscalls/syscalls.cpp:60 +bt#09: 0x0016f9a4 wrapper_socket_write syscall-kernel-wrappers.inc:206 +bt#10: 0x00115e7f x86_syscall syscall-kernel-branches.S:34 +bt#11: end Halted +entering panic shell loop + +REPORT: +ZIRCON KERNEL PANIC +panic (caller 0xffffffff0015ae53 frame 0xffffff921934cdb0): DEBUG ASSERT FAILED at (system/ulib/fbl/include/fbl/canary.h:68): magic_ == magic +Invalid canary (expt: 504f5254, got: 00000000) +platform_halt suggested_action 0 reason 9 +bt#00: 0x00105972 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001a22c4 _panic lib/debug/debug.cpp:39 +bt#02: [ inline ] fbl::Canary::Assert object/port_dispatcher.cpp:159 +bt#02: 0x0015ad92 PortDispatcher::Queue object/port_dispatcher.cpp:258 +bt#03: 0x0015ae53 PortObserver::MaybeQueue object/port_dispatcher.cpp:159 +bt#04: 0x0014a19f Dispatcher::UpdateInternalLocked object/dispatcher.cpp:104 +bt#05: [ inline ] Dispatcher::UpdateStateHelper object/dispatcher.cpp:270 +bt#05: 0x0014adbb Dispatcher::UpdateStateLocked object/dispatcher.cpp:290 +bt#06: 0x001619ba SocketDispatcher::WriteSelfLocked object/socket_dispatcher.cpp:275 +bt#07: 0x00161a39 SocketDispatcher::Write object/socket_dispatcher.cpp:212 +bt#08: 0x0018bf7b sys_socket_write syscalls/socket.cpp:68 +bt#09: [ inline ] operator() syscall-kernel-wrappers.inc:204 +bt#09: [ inline ] socket_write syscalls/syscalls.cpp:60 +bt#09: 0x0016f9a4 wrapper_socket_write syscall-kernel-wrappers.inc:206 +bt#10: 0x00115e7f x86_syscall syscall-kernel-branches.S:34 +bt#11: end diff --git a/pkg/report/testdata/fuchsia/report/20 b/pkg/report/testdata/fuchsia/report/20 new file mode 100644 index 000000000..fa6f95250 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/20 @@ -0,0 +1,190 @@ +TITLE: ASSERT FAILED in ProcessDispatcher::GetCurrent + +ZIRCON KERNEL PANIC +panic (caller 0xffffffff001167b2 frame 0xffffff93064d4fd0): DEBUG ASSERT FAILED at (kernel/object/include/object/process_dispat +cher.h:57): current +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: [ inline ] ProcessDispatcher::GetCurrent object/include/object/process_dispatcher.h:57 +bt#02: [ inline ] lambda syscalls/syscalls.cpp:53 +bt#02: 0x00172d03 wrapper_clock_get_monotonic syscall-kernel-wrappers.inc:22 +bt#03: 0x001167b2 x86_syscall syscall-kernel-branches.S:8 +bt#04: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d4c50): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: [ inline ] ProcessDispatcher::GetCurrent object/include/object/process_dispatcher.h:57 +bt#09: [ inline ] lambda syscalls/syscalls.cpp:53 +bt#09: 0x00172d03 wrapper_clock_get_monotonic syscall-kernel-wrappers.inc:22 +bt#10: 0x001167b2 x86_syscall syscall-kernel-branches.S:8 +bt#11: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d48d0): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d4550): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d41d0): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d3e50): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d3ad0): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d3750): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +panic (caller 0xffffffff00108e7e frame 0xffffff93064d33d0): DEBUG ASSERT FAILED at (kernel/kernel/thread.cpp:784): current_thre +ad->magic == THREAD_MAGIC +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#03: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#04: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#05: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#06: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#07: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#08: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#09: 0x00133aa3 thread_preempt kernel/thread.cpp:1018 +bt#10: 0x00108e7e x86_exception_handler arch/x86/faults.cpp:471 +bt#11: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#12: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#13: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#14: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#15: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#16: end +vector 8 +recursion in interrupt handler + RIP: 0x0013189a sched_preempt_timer_tick kernel/sched.cpp:726 + CS: 0x10 RIP: 0xffffffff0013189a EFL: 0x10002 CR2: 0xffffff93064d2ff8 + RAX: 0xffffff800d6cbd48 RBX: 0 RCX: 0 RDX: 0 + RSI: 0xfa4bcf7463 RDI: 0xfa4c680ae3 RBP: 0xffffff93064d3000 RSP: 0xffffff93064d3000 + R8: 0x15e R9: 0xffffffff002012e8 R10: 0xa R11: 0x21 + R12: 0xffffffff00229140 R13: 0 R14: 0xffffffff00229140 R15: 0xfa4bcf7463 +errc: 0 +bottom of kernel stack at 0xffffffff002376d0: +0xffffffff002376d0: 4c680ae3 000000fa 4bcf7463 000000fa |..hL....ct.K....| +0xffffffff002376e0: 064d3000 ffffff93 00000000 00000000 |.0M.............| +0xffffffff002376f0: 00000000 00000000 00000000 00000000 |................| +0xffffffff00237700: 0d6cbd48 ffffff80 0000015e 00000000 |H.l.....^.......| +0xffffffff00237710: 002012e8 ffffffff 0000000a 00000000 |.. .............| +0xffffffff00237720: 00000021 00000000 00229140 ffffffff |!.......@.".....| +0xffffffff00237730: 00000000 00000000 00229140 ffffffff |........@.".....| +0xffffffff00237740: 4bcf7463 000000fa 00000008 00000000 |ct.K............| +platform_halt suggested_action 0 reason 2 + diff --git a/pkg/report/testdata/fuchsia/report/21 b/pkg/report/testdata/fuchsia/report/21 new file mode 100644 index 000000000..f18f892bc --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/21 @@ -0,0 +1,29 @@ +TITLE: KVM internal error + +[00268.965] 48047.49380> PageFault: 430289 free pages +[00268.965] 48047.49380> PageFault: MemoryUsed: proc 1127 8M 'fshost' +[00268.966] 48047.49380> PageFault: MemoryUsed: proc 2765 83M 'blobfs:/blob' +gfxconsole: rows 48, columns 113, extray 0 +stopping other cpus +KVM internal error. Suberror: 1 +emulation failure +RAX=00000000000003f8 RBX=ffffff800a11fe17 RCX=0000000000000000 RDX=00000000000003fd +RSI=0000000000000003 RDI=0000000000000004 RBP=ffffffff00237030 RSP=ffffffff00236ff0 +R8 =0000000000000004 R9 =00000000000003f8 R10=000000000000000d R11=000000000000000a +R12=0000000000000046 R13=0000000000000001 R14=0000000000000000 R15=0000000000000001 +RIP=ffffffff00101964 RFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 +ES =0000 0000000000000000 ffffffff 00000000 +CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] +SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] +DS =0000 0000000000000000 ffffffff 00000000 +FS =0000 000054d8bd1a0b38 ffffffff 00000000 +GS =0000 ffffffff002326c0 ffffffff 00000000 +LDT=0000 0000000000000000 0000ffff 00008200 DPL=0 LDT +TR =0038 ffffffff00232710 00002068 00008b00 DPL=0 TSS64-busy +GDT= ffffffff00237a80 00000137 +IDT= ffffff93f955e000 00000fff +CR0=80010033 CR2=ffffff940b5dc000 CR3=0000000009a27000 CR4=003506a0 +DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 +DR6=00000000ffff0ff0 DR7=0000000000000400 +EFER=0000000000000d01 +Code=?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? diff --git a/pkg/report/testdata/fuchsia/report/22 b/pkg/report/testdata/fuchsia/report/22 new file mode 100644 index 000000000..8cfa2ea45 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/22 @@ -0,0 +1,3 @@ + +gfxconsole: rows 48, columns 113, extray 0 +stopping other cpus diff --git a/pkg/report/testdata/fuchsia/report/23 b/pkg/report/testdata/fuchsia/report/23 new file mode 100644 index 000000000..c988f3cae --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/23 @@ -0,0 +1,39 @@ +TITLE: ASSERT FAILED: thread_resched_disable_count() > 0 + +ZIRCON KERNEL PANIC +panic (caller 0xffffffff00150518 frame 0xffffff953a957d50): DEBUG ASSERT FAILED at (kernel/include/kernel/thread.h:452): thread +_resched_disable_count() > 0 +platform_halt suggested_action 0 reason 2 + Instruction Pointer = 0x10:0xffffffff00139911 + Stack Pointer = 0x0:0xffffff953a957c00 + Fault Linear Address = 0x90 + Error Code Value = 0x0 + Error Code Type = supervisor read data, page not present +dump_thread: t 0xffffff800ba91438 (/tmp/syz-executor2:) + state run, curr/last cpu 1/1, cpu_affinity 0xffffffff, priority 18 [16:1,18], remaining time slice 10000000 + runtime_ns 233286797, runtime_s 0 + stack 0xffffff953a956000, stack_size 0 + entry 0, arg 0, flags 0x0 + wait queue 0, blocked_status 0, interruptable 0, mutexes held 1 + aspace 0xffffff800c199cc0 + user_thread 0xffffff800ba912c0, pid 253992, tid 255276 +vector 14 +Supervisor Page Fault exception, halting + RIP: 0x00139911 crashlog_to_string lib/crashlog/crashlog.cpp:131 + CS: 0x10 RIP: 0xffffffff00139911 EFL: 0x10092 CR2: 0x90 + RAX: 0 RBX: 0x1000 RCX: 0x20 RDX: 0x10649023ed60 + RSI: 0x2 RDI: 0xffffffff0020c55b RBP: 0xffffff953a957c60 RSP: 0xffffff953a957c00 + R8: 0xffffffff0020c55b R9: 0xffffffff002a98ef R10: 0xa R11: 0x21 + R12: 0xffffffff002a9910 R13: 0x15 R14: 0xf40 R15: 0x15 +errc: 0 +bottom of kernel stack at 0xffffff953a957b50: +0xffffff953a957b50: 0020c55b ffffffff 00000002 00000000 |[. .............| +0xffffff953a957b60: 3a957c60 ffffff95 00001000 00000000 |`|.:............| +0xffffff953a957b70: 9023ed60 00001064 00000020 00000000 |`.#.d... .......| +0xffffff953a957b80: 00000000 00000000 0020c55b ffffffff |........[. .....| +0xffffff953a957b90: 002a98ef ffffffff 0000000a 00000000 |..*.............| +0xffffff953a957ba0: 00000021 00000000 002a9910 ffffffff |!.........*.....| +0xffffff953a957bb0: 00000015 00000000 00000f40 00000000 |........@.......| +0xffffff953a957bc0: 00000015 00000000 0000000e 00000000 |................| +platform_halt suggested_action 0 reason 2 + diff --git a/pkg/report/testdata/fuchsia/report/24 b/pkg/report/testdata/fuchsia/report/24 new file mode 100644 index 000000000..be444d057 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/24 @@ -0,0 +1,65 @@ +TITLE: ASSERT FAILED in ExceptionPort::SetTarget + +ZIRCON KERNEL PANIC +panic (caller 0xffffffff00187dc2 frame 0xffffff9b59433ef0): DEBUG ASSERT FAILED at (kernel/object/excp_port.cpp:84): port_ != n +ullptr +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x0014feb8 ExceptionPort::SetTarget object/excp_port.cpp:83 +bt#03: [ inline ] task_bind_exception_port syscalls/exceptions.cpp:90 +bt#03: 0x00187dc2 sys_task_bind_exception_port syscalls/exceptions.cpp:149 +bt#04: [ inline ] operator() syscall-kernel-wrappers.inc:328 +bt#04: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#04: 0x001767ff wrapper_task_bind_exception_port syscall-kernel-wrappers.inc:330 +bt#05: 0x00116af0 x86_syscall syscall-kernel-branches.S:51 +bt#06: end + Instruction Pointer = 0x10:0xffffffff00139911 + Stack Pointer = 0x18:0xffffff9b59433da0 + Fault Linear Address = 0x90 + Error Code Value = 0x0 + Error Code Type = supervisor read data, page not present +dump_thread: t 0xffffff800c1a6b88 (/tmp/syz-executor13:pthread_t:0x4d4bcf6e3b30) + state run, curr/last cpu 0/0, cpu_affinity 0xffffffff, priority 19 [16:3,-1], remaining time slice 10000000 + runtime_ns 252291478, runtime_s 0 + stack 0xffffff9b59432000, stack_size 8192 + entry 0xffffffff00169788, arg 0xffffff800c1a6a10, flags 0x0 + wait queue 0, blocked_status 0, interruptable 0, mutexes held 1 + aspace 0xffffff800d03fd40 + user_thread 0xffffff800c1a6a10, pid 822439, tid 823621 +vector 14 +Supervisor Page Fault exception, halting + RIP: 0x00139911 crashlog_to_string lib/crashlog/crashlog.cpp:131 + CS: 0x10 RIP: 0xffffffff00139911 EFL: 0x10092 CR2: 0x90 + RAX: 0 RBX: 0x1000 RCX: 0x20 RDX: 0x3191ab138c90 + RSI: 0x2 RDI: 0xffffffff0020c55b RBP: 0xffffff9b59433e00 RSP: 0xffffff9b59433da0 + R8: 0xffffffff0020c55b R9: 0xffffffff002a98ef R10: 0xa R11: 0x21 + R12: 0xffffffff002a9910 R13: 0x15 R14: 0xf40 R15: 0x15 +errc: 0 +bottom of kernel stack at 0xffffff9b59433cf0: +0xffffff9b59433cf0: 0020c55b ffffffff 00000002 00000000 |[. .............| +0xffffff9b59433d00: 59433e00 ffffff9b 00001000 00000000 |.>CY............| +0xffffff9b59433d10: ab138c90 00003191 00000020 00000000 |.....1.. .......| +0xffffff9b59433d20: 00000000 00000000 0020c55b ffffffff |........[. .....| +0xffffff9b59433d30: 002a98ef ffffffff 0000000a 00000000 |..*.............| +0xffffff9b59433d40: 00000021 00000000 002a9910 ffffffff |!.........*.....| +0xffffff9b59433d50: 00000015 00000000 00000f40 00000000 |........@.......| +0xffffff9b59433d60: 00000015 00000000 0000000e 00000000 |................| +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x00108b08 exception_die arch/x86/faults.cpp:100 +bt#02: [ inline ] x86_fatal_pfe_handler arch/x86/faults.cpp:240 +bt#02: [ inline ] handle_exception_types arch/x86/faults.cpp:371 +bt#02: 0x0010968f x86_exception_handler arch/x86/faults.cpp:458 +bt#03: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#04: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#05: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#06: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#07: 0x0014feb8 ExceptionPort::SetTarget object/excp_port.cpp:83 +bt#08: [ inline ] task_bind_exception_port syscalls/exceptions.cpp:90 +bt#08: 0x00187dc2 sys_task_bind_exception_port syscalls/exceptions.cpp:149 +bt#09: [ inline ] operator() syscall-kernel-wrappers.inc:328 +bt#09: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#09: 0x001767ff wrapper_task_bind_exception_port syscall-kernel-wrappers.inc:330 +bt#10: 0x00116af0 x86_syscall syscall-kernel-branches.S:51 +bt#11: end diff --git a/pkg/report/testdata/fuchsia/report/25 b/pkg/report/testdata/fuchsia/report/25 new file mode 100644 index 000000000..aa5a216ff --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/25 @@ -0,0 +1,76 @@ +TITLE: ASSERT FAILED in size_to_index_helper + +ZIRCON KERNEL PANIC +panic (caller 0xffffffff001e6b59 frame 0xffffff99ad05ee00): DEBUG ASSERT FAILED at (kernel/lib/heap/cmpctmalloc/cmpctmalloc.c:2 +90): answer < NUMBER_OF_BUCKETS +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#02: 0x001e6ae3 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:290 +bt#03: 0x001e6b59 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:254 +bt#04: [ inline ] size_to_index_freeing lib/heap/cmpctmalloc/cmpctmalloc.c:303 +bt#04: 0x001e6b89 create_free_area lib/heap/cmpctmalloc/cmpctmalloc.c:358 +bt#05: 0x001e6f65 cmpct_alloc lib/heap/cmpctmalloc/cmpctmalloc.c:943 +bt#06: 0x001ab783 malloc lib/heap/heap_wrapper.cpp:55 +bt#07: 0x0014156a operator new system/ulib/fbl/alloc_checker.cpp:70 +bt#08: 0x0015eac8 PortDispatcher::Create object/port_dispatcher.cpp:159 +bt#09: 0x00190e91 sys_port_create syscalls/port.cpp:37 +bt#10: [ inline ] operator() syscall-kernel-wrappers.inc:411 +bt#10: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#10: 0x001776d9 wrapper_port_create syscall-kernel-wrappers.inc:416 +bt#11: 0x00116bbb x86_syscall syscall-kernel-branches.S:62 +bt#12: end + Instruction Pointer = 0x10:0xffffffff00139911 + Stack Pointer = 0x18:0xffffff99ad05ece0 + Fault Linear Address = 0x90 + Error Code Value = 0x0 + Error Code Type = supervisor read data, page not present +dump_thread: t 0xffffff8003505998 (/system/bin/sshd:initial-thread) + state run, curr/last cpu 0/0, cpu_affinity 0xffffffff, priority 19 [16:3,18], remaining time slice 10000000 + runtime_ns 429170420, runtime_s 0 + stack 0xffffff99ad05d000, stack_size 8192 + entry 0xffffffff00169788, arg 0xffffff8003505820, flags 0x0 + wait queue 0, blocked_status 0, interruptable 0, mutexes held 1 + aspace 0xffffff800a089780 + user_thread 0xffffff8003505820, pid 17966, tid 17980 +vector 14 +Supervisor Page Fault exception, halting + RIP: 0x00139911 crashlog_to_string lib/crashlog/crashlog.cpp:131 + CS: 0x10 RIP: 0xffffffff00139911 EFL: 0x10086 CR2: 0x90 + RAX: 0 RBX: 0x1000 RCX: 0x20 RDX: 0 + RSI: 0x2 RDI: 0xffffffff0020c55b RBP: 0xffffff99ad05ed40 RSP: 0xffffff99ad05ece0 + R8: 0xffffffff0020c55b R9: 0xffffffff002a98ee R10: 0xa R11: 0x21 + R12: 0xffffffff002a990f R13: 0x15 R14: 0xf41 R15: 0x14 +errc: 0 +bottom of kernel stack at 0xffffff99ad05ec30: +0xffffff99ad05ec30: 0020c55b ffffffff 00000002 00000000 |[. .............| +0xffffff99ad05ec40: ad05ed40 ffffff99 00001000 00000000 |@...............| +0xffffff99ad05ec50: 00000000 00000000 00000020 00000000 |........ .......| +0xffffff99ad05ec60: 00000000 00000000 0020c55b ffffffff |........[. .....| +0xffffff99ad05ec70: 002a98ee ffffffff 0000000a 00000000 |..*.............| +0xffffff99ad05ec80: 00000021 00000000 002a990f ffffffff |!.........*.....| +0xffffff99ad05ec90: 00000015 00000000 00000f41 00000000 |........A.......| +0xffffff99ad05eca0: 00000014 00000000 0000000e 00000000 |................| +platform_halt suggested_action 0 reason 2 +bt#00: 0x00105e46 platform_halt platform/pc/power.cpp:122 +bt#01: 0x00108b08 exception_die arch/x86/faults.cpp:100 +bt#02: [ inline ] x86_fatal_pfe_handler arch/x86/faults.cpp:240 +bt#02: [ inline ] handle_exception_types arch/x86/faults.cpp:371 +bt#02: 0x0010968f x86_exception_handler arch/x86/faults.cpp:458 +bt#03: 0x001164b7 interrupt_common arch/x86/exceptions.S:127 +bt#04: 0x001a5ed5 dlog_bluescreen_halt system/ulib/fbl/include/fbl/ref_counted_internal.h:119 +bt#05: 0x00105e4b platform_halt platform/pc/power.cpp:123 +bt#06: 0x001aa1a4 _panic lib/debug/debug.cpp:39 +bt#07: 0x001e6ae3 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:290 +bt#08: 0x001e6b59 size_to_index_helper lib/heap/cmpctmalloc/cmpctmalloc.c:254 +bt#09: [ inline ] size_to_index_freeing lib/heap/cmpctmalloc/cmpctmalloc.c:303 +bt#09: 0x001e6b89 create_free_area lib/heap/cmpctmalloc/cmpctmalloc.c:358 +bt#10: 0x001e6f65 cmpct_alloc lib/heap/cmpctmalloc/cmpctmalloc.c:943 +bt#11: 0x001ab783 malloc lib/heap/heap_wrapper.cpp:55 +bt#12: 0x0014156a operator new system/ulib/fbl/alloc_checker.cpp:70 +bt#13: 0x0015eac8 PortDispatcher::Create object/port_dispatcher.cpp:159 +bt#14: 0x00190e91 sys_port_create syscalls/port.cpp:37 +bt#15: [ inline ] operator() syscall-kernel-wrappers.inc:411 +bt#15: [ inline ] lambda syscalls/syscalls.cpp:60 +bt#15: 0x001776d9 wrapper_port_create syscall-kernel-wrappers.inc:416 +bt#16: end diff --git a/pkg/report/testdata/fuchsia/report/3 b/pkg/report/testdata/fuchsia/report/3 index 032b9a807..af8aef757 100644 --- a/pkg/report/testdata/fuchsia/report/3 +++ b/pkg/report/testdata/fuchsia/report/3 @@ -1,87 +1,20 @@ -TITLE: Supervisor fault +TITLE: ASSERT FAILED: wait->magic == WAIT_QUEUE_MAGIC -[00171.272] 01102.01116> Error Code Value = 0x0 ZIRCON KERNEL PANIC -[00171.272] 01102.01116> Error Code Type = supervisor read data, page not present -[00171.272] 01102.01116> dump_thread: t 0xffffff80007236c0 (svchost:initial-thread) -UPTIME: 171276ms -[00171.272] 01102.01116> state run, curr/last cpu 2/2, cpu_affinity 0xffffffff, priority 20 [16:4,20], remaining time slice 382244 -BUILDID git-d0845c2dca0182181dfbf2209e1c03905ebfd739 -[00171.272] 01102.01116> runtime_ns 631146343, runtime_s 0 +UPTIME: 796655ms +BUILDID git-5f588306b2998fea1c021f992444971b1ce92581 -[00171.272] 01102.01116> stack 0xffffff99d68d8000, stack_size 8192 -dso: id=8ac492895f1aa9dc4798a997fa132e9b3809a5e6 base=0xffffffff00100000 name=zircon.elf -[00171.272] 01102.01116> entry 0xffffffff00163be8, arg 0xffffff8000723548, flags 0x0 +dso: id=c9e63845b8cc355bb42713bfb8eec04942ec7bcd base=0xffffffff00100000 name=zircon.elf stopping other cpus -halting cpu 0 -halting cpu 1 -halting cpu 3 -vector 14 -Supervisor Page Fault exception, halting - CS: 0x10 RIP: 0xffffffff00118e64 EFL: 0x10293 CR2: 0x8 - RAX: 0xff RBX: 0x1 RCX: 0 RDX: 0x1 - RSI: 0xff RDI: 0x3 RBP: 0xffffff99d68d9cf0 RSP: 0xffffff99d68d9cb0 - R8: 0x14 R9: 0xffffffff00201419 R10: 0xffffffff0021ec50 R11: 0x1b - R12: 0x3 R13: 0x1000000 R14: 0xffffff800961b5c0 R15: 0x7ffffff000 -errc: 0 -bottom of kernel stack at 0xffffff99d68d9c00: -0xffffff99d68d9c00: 00000003 00000000 000000ff 00000000 |................| -0xffffff99d68d9c10: d68d9cf0 ffffff99 00000001 00000000 |................| -0xffffff99d68d9c20: 00000001 00000000 00000000 00000000 |................| -0xffffff99d68d9c30: 000000ff 00000000 00000014 00000000 |................| -0xffffff99d68d9c40: 00201419 ffffffff 0021ec50 ffffffff |.. .....P.!.....| -0xffffff99d68d9c50: 0000001b 00000000 00000003 00000000 |................| -0xffffff99d68d9c60: 01000000 00000000 0961b5c0 ffffff80 |..........a.....| -0xffffff99d68d9c70: fffff000 0000007f 0000000e 00000000 |................| +panic (caller 0xffffffff00131673 frame 0xffffff9c8a6c3da0): DEBUG ASSERT FAILED at (kernel/kernel/wait.cpp:382): wait->magic == + WAIT_QUEUE_MAGIC platform_halt suggested_action 0 reason 9 Halting... -bt#00: 0xffffffff001058a6 -bt#01: 0xffffffff00108359 -bt#02: 0xffffffff00108ee3 -bt#03: 0xffffffff001158d2 -bt#04: 0xffffffff0010d1ce -bt#05: 0xffffffff001c0ace -bt#06: 0xffffffff001c0e26 -bt#07: 0xffffffff0015c0f0 -bt#08: 0xffffffff0015ec6b -bt#09: 0xffffffff0018ed58 -bt#10: 0xffffffff0016fb9a -bt#11: 0xffffffff00115e7b -bt#12: end Halted entering panic shell loop REPORT: ZIRCON KERNEL PANIC -vector 14 -Supervisor Page Fault exception, halting - CS: 0x10 RIP: 0xffffffff00118e64 EFL: 0x10293 CR2: 0x8 - RAX: 0xff RBX: 0x1 RCX: 0 RDX: 0x1 - RSI: 0xff RDI: 0x3 RBP: 0xffffff99d68d9cf0 RSP: 0xffffff99d68d9cb0 - R8: 0x14 R9: 0xffffffff00201419 R10: 0xffffffff0021ec50 R11: 0x1b - R12: 0x3 R13: 0x1000000 R14: 0xffffff800961b5c0 R15: 0x7ffffff000 -errc: 0 -bottom of kernel stack at 0xffffff99d68d9c00: -0xffffff99d68d9c00: 00000003 00000000 000000ff 00000000 |................| -0xffffff99d68d9c10: d68d9cf0 ffffff99 00000001 00000000 |................| -0xffffff99d68d9c20: 00000001 00000000 00000000 00000000 |................| -0xffffff99d68d9c30: 000000ff 00000000 00000014 00000000 |................| -0xffffff99d68d9c40: 00201419 ffffffff 0021ec50 ffffffff |.. .....P.!.....| -0xffffff99d68d9c50: 0000001b 00000000 00000003 00000000 |................| -0xffffff99d68d9c60: 01000000 00000000 0961b5c0 ffffff80 |..........a.....| -0xffffff99d68d9c70: fffff000 0000007f 0000000e 00000000 |................| +panic (caller 0xffffffff00131673 frame 0xffffff9c8a6c3da0): DEBUG ASSERT FAILED at (kernel/kernel/wait.cpp:382): wait->magic == WAIT_QUEUE_MAGIC platform_halt suggested_action 0 reason 9 -bt#00: 0xffffffff001058a6 -bt#01: 0xffffffff00108359 -bt#02: 0xffffffff00108ee3 -bt#03: 0xffffffff001158d2 -bt#04: 0xffffffff0010d1ce -bt#05: 0xffffffff001c0ace -bt#06: 0xffffffff001c0e26 -bt#07: 0xffffffff0015c0f0 -bt#08: 0xffffffff0015ec6b -bt#09: 0xffffffff0018ed58 -bt#10: 0xffffffff0016fb9a -bt#11: 0xffffffff00115e7b -bt#12: end diff --git a/pkg/report/testdata/fuchsia/report/4 b/pkg/report/testdata/fuchsia/report/4 index f9635c1b2..3cfd278f0 100644 --- a/pkg/report/testdata/fuchsia/report/4 +++ b/pkg/report/testdata/fuchsia/report/4 @@ -13,6 +13,5 @@ Connection to localhost closed by remote host. halting cpu 0 REPORT: -vector 14 recursion in interrupt handler Connection to localhost closed by remote host. diff --git a/pkg/report/testdata/fuchsia/report/5 b/pkg/report/testdata/fuchsia/report/5 index 3ae746f92..bef3a2339 100644 --- a/pkg/report/testdata/fuchsia/report/5 +++ b/pkg/report/testdata/fuchsia/report/5 @@ -1,4 +1,4 @@ -TITLE: recursion in interrupt handler +TITLE: recursion in interrupt handler in fillrect16 gfxconsole: rows stopping other cpus 48halting cpu 0 diff --git a/pkg/report/testdata/fuchsia/report/6 b/pkg/report/testdata/fuchsia/report/6 index 825de4531..44993f4a8 100644 --- a/pkg/report/testdata/fuchsia/report/6 +++ b/pkg/report/testdata/fuchsia/report/6 @@ -1,4 +1,5 @@ -TITLE: KERNEL PANIC +TITLE: KERNEL PANIC in corrupted +CORRUPTED: Y SUPPRESSED: Y This is meant to be suppressed "lost connection", but they are not detected diff --git a/pkg/report/testdata/fuchsia/report/8 b/pkg/report/testdata/fuchsia/report/8 new file mode 100644 index 000000000..f9b386f8b --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/8 @@ -0,0 +1,94 @@ +TITLE: fatal exception in fshost + +[00040.896] 01127.01246> ASSERT FAILED at (system/ulib/memfs/file.cpp:217): vmo_.op_range(ZX_VMO_OP_DECOMMIT, decommit_offset, decommit_length, nullptr, 0) == ZX_OK +[00040.900] 01044.01201> devmgr: crash_analyzer_listener: analyzing exception type 0x208 +[00040.900] 01103.01117> <== fatal exception: process fshost[1127] thread root-dispatcher[1246] +[00040.900] 01103.01117> <== undefined instruction, PC at 0x68db513659bc +[00040.900] 01103.01117> CS: 0 RIP: 0x68db513659bc EFL: 0x10202 CR2: 0 +[00040.900] 01103.01117> RAX: 0x8c RBX: 0xfffffffffffff000 RCX: 0 RDX: 0x68db51427264 +[00040.900] 01103.01117> RSI: 0x48355412e98 RDI: 0x68db514271d8 RBP: 0x247798b49ce0 RSP: 0x247798b48cb8 +[00040.900] 01103.01117> R8: 0x1 R9: 0 R10: 0 R11: 0x246 +[00040.900] 01103.01117> R12: 0x1000 R13: 0x3f73253eaf00 R14: 0x1 R15: 0x20000000 +[00040.900] 01103.01117> errc: 0 +[00040.900] 01103.01117> bottom of user stack: +[00040.900] 01103.01117> 0x0000247798b48cb8: 55401e67 00000483 00000000 00000000 |g.@U............| +[00040.900] 01103.01117> 0x0000247798b48cc8: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48cd8: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48ce8: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48cf8: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d08: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d18: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d28: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d38: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d48: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d58: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d68: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d78: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d88: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48d98: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> 0x0000247798b48da8: 00000000 00000000 00000000 00000000 |................| +[00040.900] 01103.01117> arch: x86_64 +[00040.901] 01103.01117> dso: id=8ce2eda10325d3660931030ba865e7acba5c7e2f base=0x7cc9308d6000 name= +[00040.901] 01103.01117> dso: id=61e3cd075244c9db09ccddb94bdb8c1e41865954 base=0x72a88cadc000 name=libfdio.so +[00040.901] 01103.01117> dso: id=376e80eac7b253cb0d3beca2734975fd294ae1af base=0x708dbdcb8000 name=liblaunchpad.so +[00040.901] 01103.01117> dso: id=8d5a7270bc44452150b02174e347465e6caaaa77 base=0x68db5134f000 name=libc.so +[00040.901] 01103.01117> dso: id=cab2e3299a2ed4d2e27e84cfa4ab7683cdacc908 base=0x493ed3e31000 name=libasync-default.so +[00040.901] 01103.01117> dso: id=1afa24635392b091a9b924ab5c6641876695a026 base=0x2cd905c4b000 name=libfs-management.so +[00040.901] 01103.01117> dso: id=d61f9c178aeaaa9db8921c50b5f557546ca117bb base=0xf09634f0000 name=libtrace-engine.so +[00040.901] 01103.01117> dso: id=c653c6f72e6eadd98f47d02f795aa4f5676205ef base=0x483553ed000 name=app:fshost +[00040.901] 01103.01117> bt#01: pc 0x68db513659bc sp 0x247798b48cb8 (libc.so,0x169bc) +[00040.901] 01103.01117> bt#02: pc 0x48355401e67 sp 0x247798b48cc0 (app:fshost,0x14e67) +[00040.901] 01103.01117> bt#03: pc 0x4835540208f sp 0x247798b49cf0 (app:fshost,0x1508f) +[00040.901] 01103.01117> bt#04: pc 0x4835540cdd2 sp 0x247798b49d40 (app:fshost,0x1fdd2) +[00040.901] 01103.01117> bt#05: pc 0x72a88caea0d8 sp 0x247798b4be50 (libfdio.so,0xe0d8) +[00040.901] 01103.01117> bt#06: pc 0x72a88caea1a2 sp 0x247798b4bea0 (libfdio.so,0xe1a2) +[00040.901] 01103.01117> bt#07: pc 0x4835540b0e0 sp 0x247798b5beb0 (app:fshost,0x1e0e0) +[00040.901] 01103.01117> bt#08: pc 0x4835540f577 sp 0x247798b5bee0 (app:fshost,0x22577) +[00040.901] 01103.01117> bt#09: pc 0x4835540feeb sp 0x247798b5bf10 (app:fshost,0x22eeb) +[00040.902] 01103.01117> bt#10: pc 0x4835540ffe2 sp 0x247798b5bfb0 (app:fshost,0x22fe2) +[00040.902] 01103.01117> bt#11: pc 0x68db51366896 sp 0x247798b5bfd0 (libc.so,0x17896) +[00040.902] 01103.01117> bt#12: pc 0x68db513dd611 sp 0x247798b5bfe0 (libc.so,0x8e611) +[00040.902] 01103.01117> bt#13: pc 0 sp 0x247798b5c000 +[00040.902] 01103.01117> bt#14: end + +REPORT: +<== fatal exception: process fshost[1127] thread root-dispatcher[1246] +<== undefined instruction, PC at 0x68db513659bc + CS: 0 RIP: 0x68db513659bc EFL: 0x10202 CR2: 0 + RAX: 0x8c RBX: 0xfffffffffffff000 RCX: 0 RDX: 0x68db51427264 + RSI: 0x48355412e98 RDI: 0x68db514271d8 RBP: 0x247798b49ce0 RSP: 0x247798b48cb8 + R8: 0x1 R9: 0 R10: 0 R11: 0x246 + R12: 0x1000 R13: 0x3f73253eaf00 R14: 0x1 R15: 0x20000000 + errc: 0 +bottom of user stack: +0x0000247798b48cb8: 55401e67 00000483 00000000 00000000 |g.@U............| +0x0000247798b48cc8: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48cd8: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48ce8: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48cf8: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d08: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d18: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d28: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d38: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d48: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d58: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d68: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d78: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d88: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48d98: 00000000 00000000 00000000 00000000 |................| +0x0000247798b48da8: 00000000 00000000 00000000 00000000 |................| +arch: x86_64 +bt#01: pc 0x68db513659bc sp 0x247798b48cb8 (libc.so,0x169bc) +bt#02: pc 0x48355401e67 sp 0x247798b48cc0 (app:fshost,0x14e67) +bt#03: pc 0x4835540208f sp 0x247798b49cf0 (app:fshost,0x1508f) +bt#04: pc 0x4835540cdd2 sp 0x247798b49d40 (app:fshost,0x1fdd2) +bt#05: pc 0x72a88caea0d8 sp 0x247798b4be50 (libfdio.so,0xe0d8) +bt#06: pc 0x72a88caea1a2 sp 0x247798b4bea0 (libfdio.so,0xe1a2) +bt#07: pc 0x4835540b0e0 sp 0x247798b5beb0 (app:fshost,0x1e0e0) +bt#08: pc 0x4835540f577 sp 0x247798b5bee0 (app:fshost,0x22577) +bt#09: pc 0x4835540feeb sp 0x247798b5bf10 (app:fshost,0x22eeb) +bt#10: pc 0x4835540ffe2 sp 0x247798b5bfb0 (app:fshost,0x22fe2) +bt#11: pc 0x68db51366896 sp 0x247798b5bfd0 (libc.so,0x17896) +bt#12: pc 0x68db513dd611 sp 0x247798b5bfe0 (libc.so,0x8e611) +bt#13: pc 0 sp 0x247798b5c000 +bt#14: end diff --git a/pkg/report/testdata/fuchsia/report/9 b/pkg/report/testdata/fuchsia/report/9 new file mode 100644 index 000000000..a675164d2 --- /dev/null +++ b/pkg/report/testdata/fuchsia/report/9 @@ -0,0 +1,33 @@ + +[00046.690] 143530.143565> PageFault:651: ERROR: failed to fault in or grab existing page +[00046.690] 143530.143565> PageFault:652: 0xffffff800bf70490 vmo_offset 0x1a1000, pf_flags 0x33 +[00046.692] 01044.01256> devmgr: analyzer_starter: analyzing exception type 0x108 +[00046.694] 01102.01116> <== fatal exception: process /tmp/syz-executor14[143530] thread initial-thread[143565] +[00046.694] 01102.01116> <== fatal page fault, PC at 0x6857c26f3795 +[00046.694] 01102.01116> CS: 0 RIP: 0x6857c26f3795 EFL: 0x10246 CR2: 0x756767baa000 +[00046.694] 01102.01116> RAX: 0 RBX: 0x616f8762ea70 RCX: 0x83000 RDX: 0x2220c0 +[00046.694] 01102.01116> RSI: 0 RDI: 0x756767baa000 RBP: 0x3ab63a3 RSP: 0x616f8762e868 +[00046.694] 01102.01116> R8: 0 R9: 0 R10: 0 R11: 0x756767a0af40 +[00046.694] 01102.01116> R12: 0x6857c2742280 R13: 0x224000 R14: 0x7 R15: 0x756767a00000 +[00046.694] 01102.01116> errc: 0x6 +[00046.694] 01102.01116> bottom of user stack: +[00046.694] 01102.01116> 0x0000616f8762e868: c26f053a 00006857 00000000 00000000 |:.o.Wh..........| +[00046.694] 01102.01116> 0x0000616f8762e878: 8762e908 0000616f 00000000 00000000 |..b.oa..........| +[00046.694] 01102.01116> 0x0000616f8762e888: 00000268 00000000 8762e8f4 0000616f |h.........b.oa..| +[00046.694] 01102.01116> 0x0000616f8762e898: 8762e930 0000616f 8762ebc0 0000616f |0.b.oa....b.oa..| +[00046.694] 01102.01116> 0x0000616f8762e8a8: 00002000 00000000 00002e10 00000000 |. ..............| +[00046.694] 01102.01116> 0x0000616f8762e8b8: 00009150 00000000 8762e910 0000616f |P.........b.oa..| +[00046.694] 01102.01116> 0x0000616f8762e8c8: 67a00000 00007567 8762e935 0000616f |...ggu..5.b.oa..| +[00046.694] 01102.01116> 0x0000616f8762e8d8: 8762ebc0 0000616f 00000002 00000000 |..b.oa..........| +[00046.694] 01102.01116> 0x0000616f8762e8e8: 67a00000 00007567 00000000 02735de9 |...ggu.......]s.| +[00046.694] 01102.01116> 0x0000616f8762e8f8: 0000e000 00000000 67a00000 00007567 |...........ggu..| +[00046.694] 01102.01116> 0x0000616f8762e908: 67a09000 00007567 706d742f 7a79732f |...ggu../tmp/syz| +[00046.694] 01102.01116> 0x0000616f8762e918: 6578652d 6f747563 00343172 00000000 |-executor14.....| +[00046.694] 01102.01116> 0x0000616f8762e928: 00000000 00000000 61746164 6d742f3a |........data:/tm| +[00046.694] 01102.01116> 0x0000616f8762e938: 79732f70 78652d7a 74756365 3431726f |p/syz-executor14| +[00046.694] 01102.01116> 0x0000616f8762e948: 00000000 00000000 464c457f 00010102 |.........ELF....| +[00046.694] 01102.01116> 0x0000616f8762e958: 00000000 00000000 003e0003 00000001 |..........>.....| +[00046.694] 01102.01116> arch: x86_64 +[00046.694] 01102.01116> read_mem @0x8 FAILED 8 +[00046.694] 01102.01116> bt#01: pc 0x6857c26f3795 sp 0x616f8762e868 +[00046.694] 01102.01116> bt#02: end -- cgit mrf-deployment