mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 08:43:23 +00:00
30cafaa961
The loop doesn't check for overflow of the event buffer, which can easily happen if other tests are running in parallel (the bectl tests in particular trigger devd events). When that overflow occurs, a funny thing can happen: the loop ends up trying to read 0 bytes from the socket, succeeds, and then prints its buffer to stdout. It does this as fast as possible, eventually timing out. Then, because kyua wants to log the test's output, it slurps the output file into memory so that it can insert it into the test db. This output file is quite large, usually around 8GB when I see it happen, and is large enough to trigger an OOM kill in my test suite runner VM. Fix the test: use a larger buffer and fail the test if we fill it before both events are observed. Also don't print the output buffer on every loop iteration, since unlike the seqpacket test that will just print the same output over and over. Reviewed by: imp, asomers MFC after: 2 weeks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D47625 |
||
---|---|---|
.. | ||
tests | ||
apple.conf | ||
asus.conf | ||
autofs.conf | ||
bluetooth.conf | ||
devd.8 | ||
devd.cc | ||
devd.conf | ||
devd.conf.5 | ||
devd.h | ||
devd.hh | ||
devmatch.conf | ||
dhclient.conf | ||
hyperv.conf | ||
Makefile | ||
Makefile.depend | ||
moused.conf | ||
parse.y | ||
power_profile.conf | ||
syscons.conf | ||
token.l | ||
uath.conf | ||
ulpt.conf | ||
zfs.conf |