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
Closed

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

jedisct1 opened this issue Jan 26, 2018 · 6 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@jedisct1
Copy link

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 ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jan 26, 2018
@ALTree
Copy link
Member

ALTree 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
Copy link
Member

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
Copy link
Author

Output after SIGQUIT : https://gist.github.com/c24d20cf070c3ae41587f07e29eb13b0

@jedisct1
Copy link
Author

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 :(

@aclements
Copy link
Member

No worries. Thanks for resolving!

@jedisct1
Copy link
Author

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