Actions
Bug #15330
openos-tests tests/sockfs/nosignal aborts on occasion
Status:
New
Priority:
Normal
Assignee:
-
Category:
tests
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:
Description
I've noticed that the test as written is not relible and fails in some cases, because the send(2)
call after clocking the server socket appears to succeed. What this look like is:
rm@romulus /opt/os-tests $ ./tests/sockfs/nosignal Assertion failed: len == -1 && errno == EPIPE, file nosignal.c, line 71, function main Abort
Using DTrace I see that it is succeeding and that the TCP downcall is working here:
$ pfexec dtrace -n 'fbt::so_sendmsg:return,fbt::tcp_sendmsg:return/execname == "nosignal"/{ trace(arg1); }' dtrace: description 'fbt::so_sendmsg:return,fbt::tcp_sendmsg:return' matched 2 probes CPU ID FUNCTION:NAME 104 51272 tcp_sendmsg:return 0 104 55982 so_sendmsg:return 0 104 51272 tcp_sendmsg:return 0 104 55982 so_sendmsg:return 0
I do not know if this represents a bug in the OS or a bug in the test yet.
No data to display
Actions