Project

General

Profile

Actions

Bug #15330

open

os-tests tests/sockfs/nosignal aborts on occasion

Added by Robert Mustacchi 19 days ago.

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

Also available in: Atom PDF