From owner-freebsd-current@freebsd.org Sun Sep 2 14:52:18 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FBF1FF0FF8 for ; Sun, 2 Sep 2018 14:52:18 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BB77E7B446 for ; Sun, 2 Sep 2018 14:52:17 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7D83DFF0FF7; Sun, 2 Sep 2018 14:52:17 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5B8F0FF0FF6 for ; Sun, 2 Sep 2018 14:52:17 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E50527B444 for ; Sun, 2 Sep 2018 14:52:16 +0000 (UTC) (envelope-from sbruno@freebsd.org) Received: from [192.168.0.6] (97-123-187-182.albq.qwest.net [97.123.187.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id A02C81AF510; Sun, 2 Sep 2018 07:19:18 +0000 (UTC) Subject: Re: page fault in ip6_output To: Alexander Leidinger , current@freebsd.org References: <20180902141713.Horde.K4sEjBr68eHohodvzTmRRp6@webmail.leidinger.net> From: Sean Bruno Openpgp: preference=signencrypt Autocrypt: addr=sbruno@freebsd.org; prefer-encrypt=mutual; keydata= xsBNBFk+0UEBCADaf4bgxxKvMOhRV5NPoGWRCCGm49d6+1VFNlQ77WsY/+Zvf95TPULdRlnG w648KfxWt7+O3kdKhdRwnqlXWC7zA2Qt0dRE1yIqOGJ4jp4INvp/bcxWzgr0aoKOjrlnfxRV bh+s0rzdZt6TsNL3cVYxkC8oezjaUkHdW4mFJU249U1QJogkF8g0FeKNfEcjEkwJNX6lQJH+ EzCWT0NCk6J+Xyo+zOOljxPp1OUfdvZi3ulkU/qTZstGVWxFVsP8xQklV/y3AFcbIYx6iGJ4 5L7WuB0IWhO7Z4yHENr8wFaNYwpod9i4egX2BugbrM8pOfhN2/qqdeG1L5LMtXw3yyAhABEB AAHNN1NlYW4gQnJ1bm8gKEZyZWVCU0QgRGV2ZWxvcGVyIEtleSkgPHNicnVub0BmcmVlYnNk Lm9yZz7CwJQEEwEKAD4WIQToxOn4gDUE4eP0ujS95PX+ibX8tgUCWT7RQQIbAwUJBaOagAUL CQgHAwUVCgkICwUWAwIBAAIeAQIXgAAKCRC95PX+ibX8ttKTCACFKzRc56EBAlVotq02EjZP SfX+unlk6AuPBzShxqRxeK+bGYVCigrYd1M8nnskv0dEiZ5iYeND9HIxbpEyopqgpVTibA7w gBXaZ7SOEhNX1wXwg14JrralfSmPFMYni+sWegPMX/zwfAsn1z4mG1Nn44Xqo3o7CfpkMPy6 M5Bow2IDzIhEYISLR+urxs74/aHU35PLtBSDtu18914SEMDdva27MARN8mbeCDbuJVfGCPWy YHuy2t+9u2Zn5Dd+t3sBXLM9gpeaMm+4x6TNPpESygbVdh4tDdjVZ9DK/bWFg0kMgfZoaq6J l0jNsQXrZV3bzYNFbVw04pFcvA2GIJ7xzsBNBFk+0UEBCADIXBmQOaKMHGbc9vwjhV4Oj5aZ DdhNedn12FVeTdOXJvuTOusgxS29lla0RenHGDsgD08UiFpasBXWq/E+BhQ19d+iRbLLR17O KKc1ZGefoVbLARLXD68J5j4XAyK+6k2KqBLlqzAEpHTzsksM9naARkVXiEVcrt6ciw0FSm8n kuK3gDKKe93XfzfP+TQdbvvzJc7Fa+appLbXz61TM1aikaQlda8bWubDegwXbuoJdB34xU1m yjr/N4o+raL0x7QrzdH+wwgrTTo+H4S2c1972Skt5K5tbxLowfHicRl23V8itVQr3sBtlX4+ 66q+Apm7+R36bUS/k+G45Sp6iPpxABEBAAHCwHwEGAEKACYWIQToxOn4gDUE4eP0ujS95PX+ ibX8tgUCWT7RQQIbDAUJBaOagAAKCRC95PX+ibX8trrIB/9Pljqt/JGamD9tx4dOVmxSyFg9 z2xzgklTLuDgS73MM120mM7ao9AQUeWiSle/H0UCK7xPOzC/aeUC4oygDQKAfkkNbCNTo3+A qDjBRA8qx0e9a/QjDL+RFgD4L5kLT4tToY8T8HaBp8h03LBfk510IaI8oL/Jg7vpM3PDtJMW tUi2H+yNFmL3NfM2oBToWKLFsoP54f/eeeImrNnrlLjLHPzqS+/9apgYqX2Jwiv3tHBc4FTO GuY8VvF7BpixJs8Pc2RUuCfSyodrp1YG1kRGlXAH0cqwwr0Zmk4+7dZvtVQMCl6kS6q1+84q JwtItxS2eXSEA4NO0sQ3BXUywANh Message-ID: <53454938-96fc-a45a-9f3a-996024816bd7@freebsd.org> Date: Sun, 2 Sep 2018 08:52:11 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180902141713.Horde.K4sEjBr68eHohodvzTmRRp6@webmail.leidinger.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CVGemNnLlGyPw7LKSfniGC439LwlmN9Q6" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Sun, 02 Sep 2018 14:52:18 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CVGemNnLlGyPw7LKSfniGC439LwlmN9Q6 Content-Type: multipart/mixed; boundary="FZIK4wQSdgIWl6SUCMLvYStEIffvSBTKe"; protected-headers="v1" From: Sean Bruno To: Alexander Leidinger , current@freebsd.org Message-ID: <53454938-96fc-a45a-9f3a-996024816bd7@freebsd.org> Subject: Re: page fault in ip6_output References: <20180902141713.Horde.K4sEjBr68eHohodvzTmRRp6@webmail.leidinger.net> In-Reply-To: <20180902141713.Horde.K4sEjBr68eHohodvzTmRRp6@webmail.leidinger.net> --FZIK4wQSdgIWl6SUCMLvYStEIffvSBTKe Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 9/2/18 6:17 AM, Alexander Leidinger wrote: > Hi, >=20 > -current at r338322 with manually applied r338372 (fix potential data > corruption in iflib) and r338416 (re-compute arc size). >=20 > What worries me a little bit about the validity of this report is the > gdb 8.1.1 error when loading the dump/kernel: > ---snip--- > warning: kld_current_sos: Can't read filename: Unknown error: -1 >=20 > inferior.c:311: internal-error: struct inferior *find_inferior_pid(int)= : > Assertion `pid !=3D 0' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) [answered Y; input not from termi= nal] >=20 > This is a bug, please report it.=C2=A0 For instructions, see: > . >=20 > inferior.c:311: internal-error: struct inferior *find_inferior_pid(int)= : > Assertion `pid !=3D 0' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Create a core file of GDB? (y or n) [answered Y; input not from termina= l] > Abort trap (core dumped) > ---snip--- >=20 > kernel panic: > ---snip--- > Unread portion of the kernel message buffer: >=20 >=20 > Fatal trap 12: page fault while in kernel mode > cpuid =3D 5; apic id =3D 13 > fault virtual address=C2=A0=C2=A0 =3D 0x98 > fault code=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 =3D supervisor read data, page not present > instruction pointer=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0x20:0xffffffff8068cbf2= > stack pointer=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =3D 0x28:0xfffffe0128caa510 > frame pointer=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =3D 0x28:0xfffffe0128caa760 > code segment=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 =3D base 0x0, limit 0xfffff, type 0x1b > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D DP= L 0, pres 1, long 1, def32 0, gran 1 > processor eflags=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D interrup= t enabled, resume, IOPL =3D 0 > current process=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 165= 8 (isc-worker0003) > trap number=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 =3D 12 > panic: page fault > cpuid =3D 5 > time =3D 1535835179 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe0128caa1c0 > vpanic() at vpanic+0x1a3/frame 0xfffffe0128caa220 > panic() at panic+0x43/frame 0xfffffe0128caa280 > trap_fatal() at trap_fatal+0x35f/frame 0xfffffe0128caa2d0 > trap_pfault() at trap_pfault+0x49/frame 0xfffffe0128caa330 > trap() at trap+0x2ba/frame 0xfffffe0128caa440 > calltrap() at calltrap+0x8/frame 0xfffffe0128caa440 > --- trap 0xc, rip =3D 0xffffffff8068cbf2, rsp =3D 0xfffffe0128caa510, r= bp =3D > 0xfffffe0128caa760 --- > ip6_output() at ip6_output+0xf82/frame 0xfffffe0128caa760 > udp6_send() at udp6_send+0x702/frame 0xfffffe0128caa920 > sosend_dgram() at sosend_dgram+0x346/frame 0xfffffe0128caa980 > kern_sendit() at kern_sendit+0x170/frame 0xfffffe0128caaa10 > sendit() at sendit+0x19e/frame 0xfffffe0128caaa60 > sys_sendmsg() at sys_sendmsg+0x61/frame 0xfffffe0128caaac0 > amd64_syscall() at amd64_syscall+0x254/frame 0xfffffe0128caabf0 > fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0128ca= abf0 > --- syscall (28, FreeBSD ELF64, sys_sendmsg), rip =3D 0x8015adf0a, rsp = =3D > 0x7fffdf9f7218, rbp =3D 0x7fffdf9f7250 --- > Uptime: 22h37m4s > Dumping 13174 out of 61352 > MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% > ---snip--- >=20 > I can not reproduce it at will, but it happens often enough (from once = a > day to several times after each reboot). >=20 > Can this gdb be trusted? If yes, which frame do you want to see more > detailed? >=20 > Bye, > Alexander. >=20 I think, you have hit this, no? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230950 --FZIK4wQSdgIWl6SUCMLvYStEIffvSBTKe-- --CVGemNnLlGyPw7LKSfniGC439LwlmN9Q6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE6MTp+IA1BOHj9Lo0veT1/om1/LYFAluL+RtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEU4 QzRFOUY4ODAzNTA0RTFFM0Y0QkEzNEJERTRGNUZFODlCNUZDQjYACgkQveT1/om1 /LZLFQf/asLxDeJsKk5yZVY4Lk90Wlqlbmc2Afu/Y6S+aS+Vdi56w5QsSr5nS17b kGiZGlt95EvUpPr+flEw6XYd/SRnfVNnYNghEY2sEfDSZ/vm/O3WbV+Pm1/GkMLU +OSci/JR/2hNu9r/i/Aq8AwCa601iUWei2HESoHBGGgC7dq90vXAGTRAYUqoN557 Q1d7EdLYaz6M/dyB7Mdo2AWmZPZI6ERsTdmyan5dqTC5kUgsfB0PhlGid+PHfL+b 7EswMAhaBCkC0aT9HJjlCA3J1pzA1pffKSXbtpuToCPbn2Tn5kqMeiln5vO2GDDW jTMAwc5JMbfVIgO/OJFTI+rVaLUnRw== =zi8+ -----END PGP SIGNATURE----- --CVGemNnLlGyPw7LKSfniGC439LwlmN9Q6--