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)
Thu, Oct 24, 3:00 AM
Unknown Object (File)
Wed, Oct 23, 9:38 AM
Unknown Object (File)
Wed, Oct 23, 9:19 AM
Unknown Object (File)
Oct 5 2024, 7:59 AM
Unknown Object (File)
Oct 4 2024, 7:23 AM
Unknown Object (File)
Oct 2 2024, 12:10 AM
Unknown Object (File)
Oct 1 2024, 9:26 PM
Unknown Object (File)
Oct 1 2024, 8:55 PM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41761
Build 38650: arc lint + arc unit