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
runtime: netbsd kqueue_register: event type 1 not supported for file type 5 (error 22) #22923
Comments
Anybody know what file type 5 is? |
Maybe it's "misc":
|
Maybe it's /dev/urandom?
I'm totally guessing. |
Is there a reproducer? I'm not sure what might be wrong. |
@krytarowski, run Go's
... looks like there's also |
Unrelated other fun stuff the kernel spits out during all.bash:
|
kqueue_register: event type 1 not supported for file type 5 (error 22) |
@zoulasc, thanks for confirming. Of course, Go doesn't specifically care about /dev/urandom writability (it never tries to write to it). It's just that as of Go 1.9, the os package tries registering all file handles with the OS poller, not knowing what callers are going to do with them. (IIRC) But perhaps that's a mistake on our side too if the file was opened for only read. @ianlancetaylor? |
No, this is intentional. The poller is used for reading too. It's unfortunate that the kernel logs a message but I think the Go code is acting reasonably, and it will handle the error return correctly (by not using the poller for that file). It's true that we could perhaps split the poller apart to handle reading and writing separately, but that seems like extra work for no gain. |
This message is just under DEBUG build. Without checking in detail, it should be disabled in releases as -current branches have enabled extra debugging. |
Thanks. Will close. |
kqueue_register: event type 0 not supported for file type 1 (error 45) |
@zoulasc, thanks! That'll be less kernel log spam to worry about. |
On a netbsd/amd64 builder, I saw this message, presumably from the runtime or internal/poll package:
/cc @ianlancetaylor
The text was updated successfully, but these errors were encountered: