Date: Sun, 14 Oct 2018 22:12:53 -0700 From: "Enji Cooper (yaneurabeya)" <yaneurabeya@gmail.com> To: Gleb Smirnoff <glebius@freebsd.org> Cc: FreeBSD Current <freebsd-current@freebsd.org>, freebsd-net <freebsd-net@freebsd.org>, Jonathan Looney <jonlooney@gmail.com> Subject: Re: Relatively deterministic panic with sendfile(2) when running tests in the sxlock code Message-ID: <BA546783-C2DA-4ED9-8391-8408A8B9145B@gmail.com> In-Reply-To: <1B58488D-8615-40E8-9115-E26496A6DBCE@gmail.com> References: <CC816726-7B79-4643-82DD-7B4CF4A25F54@gmail.com> <20181015022518.GV1044@FreeBSD.org> <1B58488D-8615-40E8-9115-E26496A6DBCE@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_F9EE1EBB-3942-4803-972F-FF989ACAC317 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 14, 2018, at 9:45 PM, Enji Cooper (yaneurabeya) = <yaneurabeya@gmail.com> wrote: >=20 >=20 >=20 >> On Oct 14, 2018, at 7:25 PM, Gleb Smirnoff <glebius@freebsd.org = <mailto:glebius@freebsd.org>> wrote: >>=20 >> Hi Enji, >>=20 >> On Sun, Oct 14, 2018 at 06:51:42PM -0700, Enji Cooper (yaneurabeya) = wrote: >> E> Hi, >> E> I=E2=80=99m seeing a semi-deterministic panic on 12.0-ALPHA9 = related to sendfile(2) when running sendfile_test on the host: = https://pastebin.com/raw/6Y7xg0ki <https://pastebin.com/raw/6Y7xg0ki>; = it looks like it=E2=80=99s crashing in the sxlock code when calling = sblock on a sockbuf. Are there any commands in gdb you would like me to = run to display lock state? >> E> Repro: >> E> >> E> mkdir /path/to/git/checkout >> E> cd /path/to/git/checkout >> E> git clone https://github.com/ngie-eign/freebsd/tree/sendfile_tests = <https://github.com/ngie-eign/freebsd/tree/sendfile_tests> . >> E> git checkout sendfile_tests >> E> (cd lib/libc/tests/sys/; make obj; make; sudo make install) >> E> kyua test -k /usr/tests/lib/libc/sys/Kyuafile sendfile_test >>=20 >> I'd like to reproduce it myself, but looks like URL is >> wrong: >>=20 >> glebius@erla:/usr/src:|>git clone = https://github.com/ngie-eign/freebsd/tree/sendfile_tests = <https://github.com/ngie-eign/freebsd/tree/sendfile_tests> >> =D0=9A=D0=BB=D0=BE=D0=BD=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5= =D0=B2 =C2=ABsendfile_tests=C2=BB=E2=80=A6 >> fatal: repository = 'https://github.com/ngie-eign/freebsd/tree/sendfile_tests/ = <https://github.com/ngie-eign/freebsd/tree/sendfile_tests/>' not found >=20 > Mea culpa. It should be: >=20 > $ git clone https://github.com/ngie-eign/freebsd.git = <https://github.com/ngie-eign/freebsd.git> . >=20 > Another note is that I=E2=80=99m running GENERIC-NODEBUG, not = GENERIC-DEBUG. >=20 > I suspect that it=E2=80=99s crashing on :hdtr_negative_bad_pointers or = : s_negative_not_descriptor, because the other items don=E2=80=99t seem = terribly plausible. >=20 > The test case (source) can be found here: = https://github.com/ngie-eign/freebsd/blob/95b96470a3a0270c36c4e7fb5eedc150= fe124fac/lib/libc/tests/sys/sendfile_test.c = <https://github.com/ngie-eign/freebsd/blob/95b96470a3a0270c36c4e7fb5eedc15= 0fe124fac/lib/libc/tests/sys/sendfile_test.c> Aha! It was actually :s_negative_not_connected_socket. Updated repro: use `kyua test -k /usr/tests/lib/libc/sys/Kyuafile = sendfile_test:s_negative_not_connected_socket` instead of the other kyua = call I provided. Thanks! -Enji --Apple-Mail=_F9EE1EBB-3942-4803-972F-FF989ACAC317 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5bk3FaGcY5rvqmb79YOpJmkwhhUFAlvEIdUACgkQ9YOpJmkw hhWQKxAAnkrEEpCYyU/HqWQTWA3ePeDrYOtvW1OZLH7Cikys2E+uc0qCMm0NyFE3 o2wCqxFFmCVvLSZk5WLy9RfaHQAxJQVANK7FUlhKEOV+2ECW0Oh+b2rxVUkMCfG4 i54YuDhObSt4RSh4iTM3FimnlRMl1AGCrvS+f47aQ3w5rFYNFIqbU5TSj7PluFX9 P9TXa6zTDMRPocsOt3raJChsn/My2GcjJeZd5s8twKcTOp77pGWBrw3yggsEkPju i9AnLcAoWVpjkmalJZYSmUrGpz/PQ3lesk1bueSsoscgcXXl3xVRNcfuTymLLrZy Q3HHrqA6iudI6kmEB2OYsTIW1NUVTc/T9zEEvfB6DI60jaRzX8GACShK21jMcKx5 Zw9CoKhyqvqmbAQvCMkNkdlnTVydiaQWWjW0YsNpTqUkFTlkXN2a0NbmNRlQ33JX RXEbGpZ0JfWNu2NC/RNRYiomigk0efDM22dI+NltLIRM/iHUpdIw+ubmuVP5UT4F rb1jYE7lDCxxftQwFtAcWMrHoCX7/qyrHXdb8glcHep2umq3RODk/aG4dS/Aruus 9cVnSFqBB5a5hUt2ZCV/u51v8+Jq9kX1jOg2IN5TnWR5hyDUUmzSsboBobTDKz86 lNdP9iXUiTGxjtn0XPXreW/rOjNl4DPO0lF2xkal63VAeX9g1II= =Bb3I -----END PGP SIGNATURE----- --Apple-Mail=_F9EE1EBB-3942-4803-972F-FF989ACAC317--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA546783-C2DA-4ED9-8391-8408A8B9145B>