Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]


> On Oct 14, 2018, at 7:25 PM, Gleb Smirnoff <glebius@freebsd.org> wrote:
> 
>  Hi Enji,
> 
> On Sun, Oct 14, 2018 at 06:51:42PM -0700, Enji Cooper (yaneurabeya) wrote:
> E> Hi,
> E> 	I’m 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’s 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
> 
> I'd like to reproduce it myself, but looks like URL is
> wrong:
> 
> glebius@erla:/usr/src:|>git clone https://github.com/ngie-eign/freebsd/tree/sendfile_tests
> Клонирование в «sendfile_tests»…
> 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’m running GENERIC-NODEBUG, not GENERIC-DEBUG.

I suspect that it’s crashing on :hdtr_negative_bad_pointers or : s_negative_not_descriptor, because the other items don’t seem terribly plausible.

The test case (source) can be found here: https://github.com/ngie-eign/freebsd/blob/95b96470a3a0270c36c4e7fb5eedc150fe124fac/lib/libc/tests/sys/sendfile_test.c

Thanks!
-Enji

[-- Attachment #2 --]
-----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-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B58488D-8615-40E8-9115-E26496A6DBCE>