Date: Sun, 14 Oct 2018 21:45:52 -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: <1B58488D-8615-40E8-9115-E26496A6DBCE@gmail.com> In-Reply-To: <20181015022518.GV1044@FreeBSD.org> References: <CC816726-7B79-4643-82DD-7B4CF4A25F54@gmail.com> <20181015022518.GV1044@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_464C820D-3E11-4923-B5EB-9C6B087ED5AD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 14, 2018, at 7:25 PM, Gleb Smirnoff <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; 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 = . > 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 > =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/' not found Mea culpa. It should be: $ git clone https://github.com/ngie-eign/freebsd.git = <https://github.com/ngie-eign/freebsd.git> . Another note is that I=E2=80=99m running GENERIC-NODEBUG, not = GENERIC-DEBUG. 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. The test case (source) can be found here: = https://github.com/ngie-eign/freebsd/blob/95b96470a3a0270c36c4e7fb5eedc150= fe124fac/lib/libc/tests/sys/sendfile_test.c Thanks! -Enji --Apple-Mail=_464C820D-3E11-4923-B5EB-9C6B087ED5AD 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----- iQIzBAEBCAAdFiEE5bk3FaGcY5rvqmb79YOpJmkwhhUFAlvEG4AACgkQ9YOpJmkw hhU9wQ/9EftWJX01ndnwNWvT3KGv7chZffjIqhtvjLYTzD3G844MdrQx1u9GwzsH gZWH5msWw1ebXNDLTDtffN5B7SLDNpVGdYeHMJEnE5YKQGvPRj3YcIPsMT4k9LV2 3mxWoJ82TLkF6NrOga3LtyrwODVGybHoPI7wlfvQt7Pz9Hgb8dgpkM9+87+LDSRB rjaCfn+Sb2tW02hnknHWiT8JFAN/pY+wEHcIrXobay/6IO3IdMTu/g+gM3RQbb3N Ge0pNdckyhu9wJheDeWpksN+xKZn06y9tS0UQx0G5oo7ADrgJW9q3pDWVvKGyWk5 ZwBQyfnvwHZU3l7NcMsBKrN7eoD2mnGjD5Lz1PJlEGwveWWrfqXuhbDnHMoC/+m8 rh7+1P1srd8nRJgry0eVWJwawJe38iWbtCVY+IyWJEAr+3gcNUraTrIR9YaJRRvL BomNs8aRoTTvhVUAmYJp9plzYg8psv095OSvghncKouYayuWqJ3TesdxI+yiGYAC Q6EhmLodlfmtu+P3lHDr96p7KDqfGoIL7hnaqkJc53ogxO5PYbAgaVGLoOD6thcv vX51By3kSEzPsVenMAZ1Srv09eVV0t2n8k1iF75XO/zu7AV0clppBqEkbyCeQ9Wu 0fFSwjfNZWD9VrqZJh2Rgzni4c+T8ySk/YtV/Yv0Z2G5XPE298E= =RZtc -----END PGP SIGNATURE----- --Apple-Mail=_464C820D-3E11-4923-B5EB-9C6B087ED5AD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B58488D-8615-40E8-9115-E26496A6DBCE>