Bug 260891 - failing test case: nvlist_send_recv__send_many_fds__dgram
Summary: failing test case: nvlist_send_recv__send_many_fds__dgram
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-testing (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-02 21:02 UTC by Robert Wing
Modified: 2022-01-02 21:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Wing freebsd_committer freebsd_triage 2022-01-02 21:02:10 UTC
The failing test:

https://ci.freebsd.org/job/FreeBSD-main-amd64-test/20266/testReport/junit/lib.libnv/nvlist_send_recv_test/nvlist_send_recv__send_many_fds__dgram/

With error message:

/usr/src/lib/libnv/tests/nvlist_send_recv_test.c:457: nvl != NULL not met

I *think* the problem with this test is that the nvlist_send() fails because the underlying sendmsg() call fails with ENOBUFS. Then, nvlist_recv() returns NULL because it detects that it didn't receive the expected number of file descriptors.

Adjusting net.local.dgram.recvspace worked on local machine, however, on CI the test still fails consistently.

I'll disable this test for now.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-01-02 21:30:18 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=7c9948c2e9199d33e380ddc9de5edfa31f5f9bb7

commit 7c9948c2e9199d33e380ddc9de5edfa31f5f9bb7
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2022-01-02 21:07:18 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2022-01-02 21:26:07 +0000

    skip test case nvlist_send_recv__send_many_fds__dgram

    If I'm not mistaken, the underlying sendmsg() for nvlist_send() is
    failing with ENOBUFS. In turn, nvlist_recv() returns NULL because it
    didn't receive the expected number of file descriptors.

    Adjusting net.local.dgram.recvspace worked on my local machine, but on
    CI the test still fails consistently.

    PR:     260891

 lib/libnv/tests/nvlist_send_recv_test.c | 2 ++
 1 file changed, 2 insertions(+)