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
Milestone

Comments

@almostssh
Copy link

@almostssh almostssh commented Aug 28, 2019

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 this to the Go1.14 milestone Aug 28, 2019
@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Aug 28, 2019

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

This comment has been minimized.

Copy link
Contributor

@cherrymui cherrymui commented Aug 28, 2019

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

@almostssh

This comment has been minimized.

Copy link
Author

@almostssh almostssh commented Aug 28, 2019

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

This comment has been minimized.

Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Aug 28, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.