From owner-freebsd-current@FreeBSD.ORG Tue Apr 30 21:19:12 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F35262E8; Tue, 30 Apr 2013 21:19:11 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from onyx.glenbarber.us (onyx.glenbarber.us [199.48.134.227]) by mx1.freebsd.org (Postfix) with ESMTP id D35391901; Tue, 30 Apr 2013 21:19:11 +0000 (UTC) Received: from glenbarber.us (75-146-225-65-Philadelphia.hfc.comcastbusiness.net [75.146.225.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by onyx.glenbarber.us (Postfix) with ESMTPSA id DE2D723F808; Tue, 30 Apr 2013 17:19:10 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.8.2 onyx.glenbarber.us DE2D723F808 Authentication-Results: onyx.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none Date: Tue, 30 Apr 2013 17:19:08 -0400 From: Glen Barber To: John Baldwin Subject: Re: panic: in_pcblookup_local (?) Message-ID: <20130430211908.GB1621@glenbarber.us> References: <201304291224.06328.jhb@freebsd.org> <20130430003552.GC1588@glenbarber.us> <201304301653.13845.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NMuMz9nt05w80d4+" Content-Disposition: inline In-Reply-To: <201304301653.13845.jhb@freebsd.org> X-Operating-System: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Ian FREISLICH , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 30 Apr 2013 21:19:12 -0000 --NMuMz9nt05w80d4+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 30, 2013 at 04:53:13PM -0400, John Baldwin wrote: > Try 'p phd' to start. INP_PCBPORTHASH is a macro, so you will > have to do it by hand: >=20 > 'p pcbinfo->ipi_porthashbase[lport & pcbinfo->ipi_porthashmask]' >=20 > (That should be what 'porthash' is.) >=20 Thanks for the pointers. (Hah!) Hopefully this is the info you are looking for: Script started on Tue Apr 30 17:16:07 2013 root@orion:/usr/obj/usr/src/sys/ORION # kgdb ./kernel.debug /var/crash/vmco= re.4 [...] #0 doadump (textdump=3D) at pcpu.h:231 231 __asm("movq %%gs:%1,%0" : "=3Dr" (td) (kgdb) frame 6 #6 0xffffffff80736cec in in_pcblookup_local (pcbinfo=3D0xffffffff80dc9180,= laddr=3D {s_addr =3D 50374848}, lport=3D339, lookupflags=3D1, cred=3D0xfffffe0= 16cdad100) at /usr/src/sys/netinet/in_pcb.c:1438 1438 LIST_FOREACH(phd, porthash, phd_hash) { (kgdb) p phd $1 =3D (struct inpcbport *) 0x9e17b100fffffe00 (kgdb) p pcbinfo->ipi_porthashbase[lport & pcbinfo->ipi_porthashmask] $2 =3D {lh_first =3D 0x0} (kgdb) p lport $3 =3D 339 (kgdb) p pcbinfo->ipi_porthashmask $4 =3D 127 (kgdb) root@orion:/usr/obj/usr/src/sys/ORION # ^D Script done on Tue Apr 30 17:16:55 2013 Glen --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQEcBAEBCAAGBQJRgDVMAAoJEFJPDDeguUajemYIAKXL4h8+vkAAf9hLxI5/PoHA r7/+Eao+RPvUdmHBxmgdACC5iTeJf17SBTpwwhQWnhYGicsjLHFp+IjsosFg4+Uh ZJdb/GkoD/UoGbNBNL5k5gX2EBQp9770lGpr4TGuaj5GRuRYWMYwjtwKAPGh2fpY YiAdPttAQ1nhW+yWhuw+4ULOkFElBaRH54vJQGiimdK7hf3vKddB8HH13dOF3bgr n+a3WaUN0kG+2vWvSzCXM+MsmlnPDAWDp2S2TvbYsDlNcsdvTYS6AUDZlzDQDKpe eMsCeQaA3V1tbXvlsxfGDPdwmYuu75AxuJ9k8itnabU/ILstmPPFR+fd9KQE5Zs= =u3Tn -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+--