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

runtime: linux-mips-softfloat infinite loop before main() is called #23568

Closed
jedisct1 opened this issue Jan 26, 2018 · 6 comments

Comments

Projects
None yet
4 participants
@jedisct1
Copy link

commented Jan 26, 2018

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

1.10rc1

Does this issue reproduce with the latest release?

Yep

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

GOOS=linux GOARCH=mips GOMIPS=softfloat

What did you do?

I compiled github.com/jedisct1/dnscrypt-proxy for linux-mips-softfloat.

I tried to run the resulting binary on OpenWRT/mips (CPU is a MIPS 74Kc V5.0, Qualcomm Atheros QCA9558).

The executable didn't even reach the main() function. RAM usage and CPU sage went to 500%.

I replaced the main() function with one that just prints a Hello World. Same result.

What did you expect to see?

Gorgeous log lines about DNS stuff.

What did you see instead?

Not much.

@ALTree ALTree changed the title linux-mips-softfloat infinite loop before main() is called runtime: linux-mips-softfloat infinite loop before main() is called Jan 26, 2018

@ALTree

This comment has been minimized.

Copy link
Member

commented Jan 26, 2018

softfloat was introduced during the go1.10 cycle, so I'm tentatively putting this into the 1.10 milestone.

cc @vstefanovic @cherrymui @aclements

@ALTree ALTree added this to the Go1.10 milestone Jan 26, 2018

@aclements

This comment has been minimized.

Copy link
Member

commented Jan 26, 2018

Thanks for the report. Do you know if it reached an init function? What happens if you press Ctrl+\ (or send the process a SIGQUIT)?

@jedisct1

This comment has been minimized.

Copy link
Author

commented Jan 26, 2018

@jedisct1

This comment has been minimized.

Copy link
Author

commented Jan 26, 2018

Ok, forget about it. Looks like the github.com/kardianos/service tries to execute /sbin/init --version, which is blocking on Busybox.

Unrelated to softfloat then. Sorry for the noise :(

@jedisct1 jedisct1 closed this Jan 26, 2018

@aclements

This comment has been minimized.

Copy link
Member

commented Jan 26, 2018

No worries. Thanks for resolving!

@jedisct1

This comment has been minimized.

Copy link
Author

commented Jan 26, 2018

Thanks for the Ctrl-\ trick!

@golang golang locked and limited conversation to collaborators Jan 26, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.