From owner-freebsd-bugs@freebsd.org Mon Nov 11 09:22:02 2019 Return-Path: Delivered-To: freebsd-bugs@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 D14EF1B015C for ; Mon, 11 Nov 2019 09:22:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47BQPQ5GHwz3xSG for ; Mon, 11 Nov 2019 09:22:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B4ABC1B015B; Mon, 11 Nov 2019 09:22:02 +0000 (UTC) Delivered-To: bugs@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 B47251B015A for ; Mon, 11 Nov 2019 09:22:02 +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 47BQPQ4PWWz3xSF for ; Mon, 11 Nov 2019 09:22:02 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7BB96D4D9 for ; Mon, 11 Nov 2019 09:22:02 +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 xAB9M2W4082649 for ; Mon, 11 Nov 2019 09:22:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xAB9M2DQ082642 for bugs@FreeBSD.org; Mon, 11 Nov 2019 09:22:02 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: bugs@FreeBSD.org Subject: [Bug 183024] textdump(4) mentions call doadump, should be textdump dump Date: Mon, 11 Nov 2019 09:22:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sigsys@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@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-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Nov 2019 09:22:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D183024 --- Comment #4 from sigsys@gmail.com --- (In reply to Andriy Gapon from comment #3) Sure seems like you did! Thanks. I forgot to check if it had already been fixed after finding this PR. For reference, I just checked if making sure that debug.ddb.textdump.pendin= g is set or that having "textdump set" in the DDB script is necessary, and it is not. "textdump dump" tries to do a textdump no matter what. I wish the manpage gave some pointer to "debug.debugger_on_panic" though (I= had the KDB_UNATTENDED option when trying to set this up and ddb wasn't being invoked at all). Index: share/man/man4/textdump.4 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- share/man/man4/textdump.4 (revision 354599) +++ share/man/man4/textdump.4 (working copy) @@ -158,13 +158,21 @@ .Dv kdb.enter.panic will run when the kernel debugger is entered as a result of a panic, enable output capture, dump several useful pieces of debugging information, and t= hen -invoke panic in order to force a kernel dump to be written out followed by= a -reboot: +do a textdump followed by a reboot: .Bd -literal -offset indent script kdb.enter.panic=3Dtextdump set; capture on; show allpcpu; bt; ps; alltrace; show alllocks; textdump dump; reset .Ed .Pp +Note that +.Xr ddb 4 +must be set to be invoked on panic for this to work. +The +.Dv debug.debugger_on_panic +sysctl indicates if this is the case +(it will default to off if the kernel was compiled with +.Cd options KDB_UNATTENDED ) . +.Pp In the following example, the script .Dv kdb.enter.witness will run when the kernel debugger is entered as a result of a witness --=20 You are receiving this mail because: You are the assignee for the bug.=