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

ALTree opened this issue May 6, 2018 · 1 comment


Copy link

@ALTree 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:

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 this to the Go1.11 milestone May 6, 2018

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Jul 4, 2018

Change mentions this issue: cmd/internal/obj/s390x: increase maximum number of loop iterations

@gopherbot gopherbot closed this in 9fa9885 Jul 5, 2018
@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.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.