-
Notifications
You must be signed in to change notification settings - Fork 18k
x/sys: fsnotify module demo cannot recv sysevents on mips64le #40633
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
Comments
@evanphx please help me, What should I do to get system catalog monitoring events in this version。 golang.org/x/sys@v0.0.0-20200805065543-0cf7623e9dbd |
Do you have the full error output? |
goroutine 8 [syscall]: demo test error: |
What kernel version are you using? You are not showing us the complete error output. The program is printing something before |
3.10 kernel version |
@duchuanLX According to https://golang.org/wiki/MinimumRequirements, little-endian MIPS requires Linux kernel version newer than 4.1. Linux kernel version 3.10 is not supported. Sorry. |
Thank you very much, why did the 3.10 kernel pass the test in the sys2020 version? |
Probably because the x/sys tests are not very good. |
Do you mean the test case |
I'm sorry, I do not understand the question. When you asked "why did the 3.10 kernel pass the test in the sys2020 version?" what did you mean by "the test"? |
sys version platfrom kernelversion res |
As it says on the wiki page I mentioned, https://golang.org/wiki/MinimumRequirements, the minimum kernel version required for MIPS is 4.8. The minimum kernel version for x86 is 2.6.23. So it is not surprising that x86 passes. In your little table, I don't know what "sys" means, and I don't know what 2019 and 2020 mean. I assume that 2020 is newer, so it sounds like it passes. That seems good. The fact that the minimum requirement for MIPS is 4.8 doesn't mean that all earlier versions will always fail. It only means that programs may fail on earlier versions, and we won't try to fix them. Whether they fail or not depends on exactly what they do. |
golang.org/x/sys version platfrom kernelversion res |
golang.org/x/sys-version platfrom kernelversion res appearance |
I'm sorry, I don't understand. Is there still a bug here? Is there something to fix? |
golang.org/x/sys@v0.0.0-20190813064441-fde4db37ae7a MIPS64 cannot recv os event。 unix/zsyscall_linux_mips64le.go:1790 func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { |
From what you say above it sounds like that problem is already fixed in a later version of golang.org/x/sys. |
Closing old issues that still have the WaitingForInfo label where enough details to investigate weren't provided. Feel free to leave a comment with more details and we can reopen. |
What version of Go are you using (
go version
)?1.13.9/mips64le and 1.14.4
Does this issue reproduce with the latest release?
The new version does not reappear
golang.org/x/sys@v0.0.0-20200805065543-0cf7623e9dbd
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
write go.demo and test -v ./touchoff
What did you expect to see?
What can I do to receive system events
What did you see instead?
The text was updated successfully, but these errors were encountered: