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

cmd/compile: compiler crashes with "stuck in spanz loop" error on s390x with -N #25269

Closed
ALTree opened this issue May 6, 2018 · 1 comment
Closed
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Milestone

Comments

@ALTree
Copy link
Member

ALTree commented May 6, 2018

$ gotip version
go version devel +f7c767edc5 Sat May 5 00:54:52 2018 +0000 linux/amd64

The (lengthy) go program at:

https://gist.github.com/ALTree/463f8b338c112f33ba59857b4db219d2

crashes the tip compiler when built for s390x with optimizations disabled.

$ GOARCH=s390x gotip tool compile -N crash.go 
crash.go:1259:37: stuck in spanz loop

The program compiles fine on amd64 and other architectures I tested. The error message comes from obj/s390x/asmz.go and it's surrounded by:

430-		if loop > 10 {
431:			c.ctxt.Diag("stuck in spanz loop")
432-			break
433-		}

Maybe 10 was too optimistic?

cc @mundaym

@ALTree ALTree added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker labels May 6, 2018
@ALTree ALTree added this to the Go1.11 milestone May 6, 2018
@gopherbot
Copy link

Change https://golang.org/cl/122235 mentions this issue: cmd/internal/obj/s390x: increase maximum number of loop iterations

@golang golang locked and limited conversation to collaborators Jul 5, 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. release-blocker
Projects
None yet
Development

No branches or pull requests

2 participants