-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
epoll does not report EPOLLERR events #3816
Comments
Right now I still haven't understood how to trigger This is the description from the man page:
It is still unclear to me what will be considered an error condition for @rustbot claim |
It seems very plausible that the answer is "nothing". I would have thought closing the FD or the peer FD might do that but that doesn't seem to be the case, right? Those cases are both covered already by existing tests? In that case I would say the fix is to add the flag to our |
Actually right now I discovered a test case can trigger But I suspect there should be other test cases that I don't know yet. Would it makes sense to leave this issue up first, wait for bug reports, and fix later? This bug will be discoverable if the user managed to write a test where our epoll notification differs from real system. |
Good catch! If we know about a case, IMO we should implement it. |
According to the man page, epoll will always report EPOLLERR events. However, our implementation never reports them. This is a problem as Miri will silently accept the program but run it in an incorrect way. There's no good way to throw a "not supported" error here, so we should implement this event notification.
Cc @tiif
The text was updated successfully, but these errors were encountered: