LibBSD | Socket close fails when using kqueue (#41)
Aaron Nyholm (@eagleirony)
gitlab at rtems.org
Tue May 27 03:58:21 UTC 2025
Aaron Nyholm created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/41
## Summary
Sockets fail to close when using Kqueue as not all references to the IOP are released. There is a bug in the Kqueue which holds the IOP twice in `kqueue_register` and only released once during `close` if the FD passed in is a libbsd FD. This means that the socket can never be closed.
The issue is present in all Freebsd 14 branches.
## Steps to reproduce
1. Open a socket
2. Attach Kqueue events to socket FD
3. Close Kqueue fd
4. Close socket (this will fail)
### Pre-set options
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/41
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250527/0bb1ee0e/attachment.htm>
More information about the bugs
mailing list