From owner-freebsd-toolchain@freebsd.org Wed Mar 11 19:23:09 2020 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D8F2F2684CB for ; Wed, 11 Mar 2020 19:23:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48d2192q93z4XNy for ; Wed, 11 Mar 2020 19:23:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 42D762684CA; Wed, 11 Mar 2020 19:23:09 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 427EC2684C9 for ; Wed, 11 Mar 2020 19:23:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48d2186qpkz4XNS for ; Wed, 11 Mar 2020 19:23:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B0FC1195A6 for ; Wed, 11 Mar 2020 19:23:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 02BJN8lN081027 for ; Wed, 11 Mar 2020 19:23:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 02BJN8Vu081020 for toolchain@FreeBSD.org; Wed, 11 Mar 2020 19:23:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 219153] head, stable/11, release/11.0.1: libkvm (& more?) not updated to handle powerpc/powerpc64 ET_DYN based vmcore.* 's and such Date: Wed, 11 Mar 2020 19:23:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: luporl@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Mar 2020 19:23:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219153 --- Comment #17 from Leandro Lupori --- I've tested dumping and inspecting the crashdump using r358813, on a POWER8= VM. It worked fine. These were the test commands and output: # sysctl debug.kdb.panic=3D1 ... db> dump Dumping 216 out of 8148 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% Dump complete db> panic panic: from debugger ... (reboot) ... Mar 11 15:53:08 fbsd2 savecore[534]: reboot after panic: kdb_sysctl_panic Writing crash summary to /var/crash/core.txt.1. ... # kgdb /boot/kernel/kernel /var/crash/vmcore.last ... Unread portion of the kernel message buffer:=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 panic: kdb_sysctl_panic=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 cpuid =3D 6=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 time =3D 1583952756=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 KDB: stack backtrace:=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0xe00000005758b030: at kdb_backtrace+0x60=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 0xe00000005758b140: at vpanic+0x1e4=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 0xe00000005758b1f0: at panic+0x40=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 0xe00000005758b220: at kdb_sysctl_panic+0xa4=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 0xe00000005758b2a0: at sysctl_root_handler_locked+0x114=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 0xe00000005758b310: at sysctl_root+0x290=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 0xe00000005758b400: at userland_sysctl+0x174=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0xe00000005758b520: at sys___sysctl+0x8c=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 0xe00000005758b610: at trap+0x940=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 0xe00000005758b750: at powerpc_interrupt+0x1b8=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0xe00000005758b7e0: user SC trap by 0x8102b6110: srr1=3D0x800000000280f032= =20=20=20=20=20=20=20=20 r1=3D0x3fffffffffffc300 cr=3D0x22800282 xer=3D0 ctr=3D0x8102b61= 00 r2=3D0x8102d2378 frame=3D0xe00000005758b8 10=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 KDB: enter: panic=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 0xc000000000735e78 in doadump (textdump=3D16884644) at /usr/src/sys/kern/kern_shutdown.c:393 393 savectx(&dumppcb);=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 (kgdb) bt=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #0 0xc000000000735e78 in doadump (textdump=3D16884644) at /usr/src/sys/kern/kern_shutdown.c:393 #1 0xc000000000230394 in db_dump (dummy=3D, dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:575=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 #2 0xc000000000230028 in db_command (last_cmdp=3D, cmd_table=3D, dopager=3D0) at /usr/src/sys/ddb/db_command.c:482=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 #3 0xc00000000022fcd8 in db_command_loop () at /usr/src/sys/ddb/db_command.c:535 #4 0xc0000000002343fc in db_trap (type=3D, code=3D) at /usr/src/sys/ddb/db_main.c:253=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 #5 0xc00000000079a548 in kdb_trap (type=3D, code=3D, tf=3D0xc0000000010a5370) at /usr/src/sys/kern/subr_kdb.c:699=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 #6 0xc000000000b8c6d8 in db_trap_glue (frame=3D) at /usr/src/sys/powerpc/powerpc/trap.c:940 #7 #8 0xc000000000799758 in kdb_enter (why=3D0xc000000000eabdc0 "panic", msg=3D) at /usr/src/sys/kern/subr_kdb.c:485=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 #9 0xc00000000073614c in vpanic (fmt=3D0xc000000000ea221f "kdb_sysctl_pani= c", ap=3D) at /usr/src/sys/kern/kern_shutdown.c:902 ... Note that a recent gdb/kgdb is needed. The 'ps -M' command worked too: # ps aux -M /var/crash/vmcore.last=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND=20=20=20=20= =20=20=20=20=20=20=20=20 root 0 0.0 0.0 0 0 - DLs 31Dec69 0:00.10 [kernel]=20=20=20=20= =20=20=20=20=20=20=20 root 1 0.0 0.0 11308 1108 - DLs 31Dec69 0:00.02 [init]=20=20=20=20= =20=20=20=20=20=20=20=20=20 root 2 0.0 0.0 0 0 - DL 31Dec69 0:00.00 [crypto]=20=20=20=20= =20=20=20=20=20=20=20 root 3 0.0 0.0 0 0 - DL 31Dec69 0:00.00 [crypto returns 0]=20 root 4 0.0 0.0 0 0 - DL 31Dec69 0:00.00 [crypto returns 1] root 5 0.0 0.0 0 0 - DL 31Dec69 0:00.00 [crypto returns 2] ... root 711 0.0 0.0 13456 3608 - Ds 31Dec69 0:00.01 [login] root 712 0.0 0.1 14828 4604 - D 31Dec69 0:00.04 [csh] root 715 0.0 0.0 12108 2456 - R+ 31Dec69 0:00.00 [sysctl] The STARTED field is invalid, but the otherwise the command output seems correct. --=20 You are receiving this mail because: You are the assignee for the bug.=