From owner-freebsd-current@freebsd.org Mon Jul 29 19:49:22 2019 Return-Path: Delivered-To: freebsd-current@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 E1AA3B3C90 for ; Mon, 29 Jul 2019 19:49:22 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D55A269C33 for ; Mon, 29 Jul 2019 19:49:21 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id sBduhjvlcSrVcsBdwhKW3u; Mon, 29 Jul 2019 13:49:13 -0600 X-Authority-Analysis: v=2.3 cv=L5ZjvNb8 c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=0o9FgrsRnhwA:10 a=iLNU1ar6AAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=Zq6zrc9a7xsqEpHZgRYA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id DB885633; Mon, 29 Jul 2019 12:49:09 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x6TJmo6a053847; Mon, 29 Jul 2019 12:48:50 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x6TJmoGi053840; Mon, 29 Jul 2019 12:48:50 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201907291948.x6TJmoGi053840@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Weike.Chen@Dell.com cc: freebsd-current@freebsd.org Subject: Re: kgdb assert while loading a kernel core In-reply-to: References: Comments: In-reply-to message dated "Mon, 29 Jul 2019 03:16:37 -0000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 29 Jul 2019 12:48:50 -0700 X-CMAE-Envelope: MS4wfAUL+fZECvomZIHNGwYprSNo0hF9NsfILjQbUaZjnefnVal/zuhK/jE9rtVlj6K51uWXfTo0b9ixp9vBjq/l8+Y+yScJeO911jJqptQO8lSFlCHo93Yu sjtgfuztXnOuoQN9rZjRO0j8/8AYjQBQ+N2UYNFYZM0EIIvU4PkegMXTl6F6Sk2ZAsy9FiUbmFtlHcnl4eX0fJqHRoHS9nJfjfMmffV+/Z3Acy4021711OoD X-Rspamd-Queue-Id: D55A269C33 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.91 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[139.136.59.64.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.98)[-0.975,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.33)[ip: (-5.85), ipnet: 64.59.128.0/20(-3.21), asn: 6327(-2.50), country: CA(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2019 19:49:22 -0000 In message , Weike .Chen@Dell.com writes: > Hi all, > > I try to do some debugging for the FreeBSD kernel crash. > My system is FreeBSD 12. And I have a kernel core file, and while I load it > by kgdb. It reports the following error: > > Inferior.c: 287: internal-error: struct inferior *find_inferior_pid(int): As > sertion 'pid != 0' failed. > > And I also try the gdb in ports/devel, and got the same error. > > Any workaround for the error? Which kgdb are you using? The /usr/libexec one or the port? -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.