Skip to content
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

net: Listen returns errno -89 on linux/mipsle #33914

Closed
almostssh opened this issue Aug 28, 2019 · 4 comments
Closed

net: Listen returns errno -89 on linux/mipsle #33914

almostssh opened this issue Aug 28, 2019 · 4 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@almostssh
Copy link

What version of Go are you using (go version)?

$ go version
go1.10.8 linux/amd64

Does this issue reproduce with the latest release?

No version above 1.10.8 executes on mipsle router

What operating system and processor architecture are you using (go env)?

linux/mipsle

What did you do?

net.Listen("tcp", "127.0.0.1:8080")

What did you expect to see?

No error

What did you see instead?

Error listening: listen tcp 127.0.0.1:8080: errno -89

I'm running into an error with Go not being able to listen on a MIPSLE router. A simple listener using net.Listen("tcp", "127.0.0.1:8080"). Tried multiple ports high and low. Running as root.

Is returning Error listening: listen tcp 127.0.0.1:8080: errno -89

C compiled programs work fine, it seems to be just Go. I'm compiling with version 1.10.8 (1.11+ does not run on the router)

env GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -a

@ianlancetaylor ianlancetaylor changed the title net.Listen returns errno -89 on linux/mipsle net: Listen returns errno -89 on linux/mipsle Aug 28, 2019
@ianlancetaylor ianlancetaylor added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Aug 28, 2019
@ianlancetaylor ianlancetaylor added this to the Go1.14 milestone Aug 28, 2019
@ianlancetaylor
Copy link
Contributor

The errno value 89 would be ENOSYS. It's likely that some code somewhere is negating an errno value that should not be negated, or vice-versa. I note that you are using 1.10.8; how hard would it be for you to test 1.13rc1 to see if the problem has been fixed?

@cherrymui
Copy link
Member

Possibly related to #23446, which is fixed in Go 1.11.

@almostssh
Copy link
Author

The errno value 89 would be ENOSYS. It's likely that some code somewhere is negating an errno value that should not be negated, or vice-versa. I note that you are using 1.10.8; how hard would it be for you to test 1.13rc1 to see if the problem has been fixed?

All GO versions 1.11+ simply do not run on the router and have set of their own issues that is worth another ticket. The mipsel router is on 2.6 kernel

@ianlancetaylor
Copy link
Contributor

@cherrymui Thanks for the pointer. This problem is almost certainly fixed by https://golang.org/cl/125895, which is in 1.11 but is not in 1.10. As we no longer support 1.10 , closing this issue. Please comment if you disagree, or if you find that the problem still exists in 1.12 or later.

Please do file separate issues about problems using Go 1.12 or later on your hardware.

@golang golang locked and limited conversation to collaborators Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants