Page MenuHomeFreeBSD

fusefs: fix intermittency in the dev_fuse_poll test
ClosedPublic

Authored by asomers on Sep 25 2021, 4:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 23, 8:13 PM
Unknown Object (File)
Tue, Nov 18, 4:25 PM
Unknown Object (File)
Thu, Nov 6, 8:45 AM
Unknown Object (File)
Wed, Nov 5, 2:48 PM
Unknown Object (File)
Sat, Nov 1, 12:46 AM
Unknown Object (File)
Oct 27 2025, 12:34 AM
Unknown Object (File)
Oct 20 2025, 1:01 AM
Unknown Object (File)
Oct 8 2025, 2:18 AM
Subscribers

Details

Summary

The DevFusePoll::access/select test would occasionally segfault. The
cause was a file descriptor that was shared between two threads. The
first thread would kill the second and close the file descriptor. But
it was possible that the second would read the file descriptor before it
shut down. That did not cause problems for kqueue, poll, or blocking
operation, but it triggered segfaults in select's macros.

MFC after: 2 weeks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable