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

Go 1.4 faults when bootstrapping 1.14.3 on Plan 9 (9front) #39273

Open
duncan-bayne opened this issue May 27, 2020 · 6 comments
Open

Go 1.4 faults when bootstrapping 1.14.3 on Plan 9 (9front) #39273

duncan-bayne opened this issue May 27, 2020 · 6 comments

Comments

@duncan-bayne
Copy link

@duncan-bayne duncan-bayne commented May 27, 2020

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

term% ./go version
go version go 1.4.2 plan9/amd64

Does this issue reproduce with the latest release?

Yes - although I'm bootstrapping with 1.4.2, the issue occurs when building 1.14.3.

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

go env
term% ./go env
GOARCH='amd64'
GOBIN=''
GOCHAR='6'
GOEXE=''
GOHOSTARCH='amd64'
GOHOSTOS='plan9'
GOOS='plan9'
GOPATH='/usr/glenda/code/go'
GORACE=''
GOROOT='/usr/glenda/go1.4'
GOTOOLDIR='/usr/glenda/go1.4/pkg/tool/plan9_amd64'
CGO_ENABLED='0'

What did you do?

Built and installed Go 1.4.2 into $home/go1.4 (which succeded), then:

cd $home
git clone https://go.googlesource.com/go go
cd go
git checkout go1.14.3
cd src
./make.rc

What did you expect to see?

A successful build of Go.

What did you see instead?

The front fell off.

Building Go cmd/dist using /usr/glenda/go1.4
Building Go toolchain1 using /usr/glenda/go1.4.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
unexpected fault address 0x720000008d
fatal error: fault
[signal 0x2 code=0x0 addr=0x720000008d pc=0x4a7b91]

goroutine 1 [running]:
runtime.gothrow(0xb7b6b0, 0x5)
	/usr/glenda/go1.4/src/runtime/panic.go:503 +0x8e fp=0x9640c98 sp=0x9640c80
runtime.sigpanic()
	/usr/glenda/go1.4/src/runtime/os_plan9.go:48 +0x1a5 fp=0x9640d00 sp=0x9640c98
bootstrap/cmd/compile/internal/ssa.BuildFuncDebug(0x9340d00, 0x9375340, 0x0, 0xcffab8, 0x1)
	/usr/glenda/go/src/cmd/compile/internal/ssa/debug.go:367 +0x19b1 fp=0x96411c0 sp=0x9640d00
bootstrap/cmd/compile/internal/gc.genssa(0x9375340, 0x97185b0)
	/usr/glenda/go/src/cmd/compile/internal/gc/ssa.go:6141 +0x135c fp=0x9641630 sp=0x96411c0
bootstrap/cmd/compile/internal/gc.compileSSA(0x93742c0, 0x0)
	/usr/glenda/go/src/cmd/compile/internal/gc/pgen.go:308 +0x127 fp=0x9641708 sp=0x9641630
bootstrap/cmd/compile/internal/gc.compile(0x93742c0)
	/usr/glenda/go/src/cmd/compile/internal/gc/pgen.go:277 +0x2ed fp=0x96417b0 sp=0x9641708
bootstrap/cmd/compile/internal/gc.funccompile(0x93742c0)
	/usr/glenda/go/src/cmd/compile/internal/gc/pgen.go:222 +0x201 fp=0x9641828 sp=0x96417b0
bootstrap/cmd/compile/internal/gc.Main(0xcff678)
	/usr/glenda/go/src/cmd/compile/internal/gc/main.go:714 +0x39c4 fp=0x9641ee8 sp=0x9641828
main.main()
	/usr/glenda/go/src/cmd/compile/main.go:52 +0x1ca fp=0x9641f98 sp=0x9641ee8
runtime.main()
	/usr/glenda/go1.4/src/runtime/proc.go:63 +0xf8 fp=0x9641fe0 sp=0x9641f98
runtime.goexit()
	/usr/glenda/go1.4/src/runtime/asm_amd64.s:2232 +0x1 fp=0x9641fe8 sp=0x9641fe0

go tool dist: FAILED: /usr/glenda/go/pkg/tool/plan9_amd64/compile -std -pack -o /tmp/go-tool-dist-483795052/internal/cpu/_go_.a -p internal/cpu -importcfg /tmp/go-tool-dist-483795052/internal/cpu/importcfg -asmhdr /tmp/go-tool-dist-483795052/internal/cpu/go_asm.h -symabis /tmp/go-tool-dist-483795052/internal/cpu/symabis /usr/glenda/go/src/internal/cpu/cpu.go /usr/glenda/go/src/internal/cpu/cpu_amd64.go /usr/glenda/go/src/internal/cpu/cpu_x86.go: exit status: 'compile 1807: 2'
go tool dist: open /tmp/go-tool-dist-483795052/internal/cpu/_go_.a: '/tmp/go-tool-dist-483795052/internal/cpu/_go_.a' does not exist
@duncan-bayne duncan-bayne changed the title Go 1.14.3 faults when bootstrapped with Go 1.4.2 Go 1.4.2 faults when bootstrapping 1.14.3 May 27, 2020
@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented May 27, 2020

It is possible that Go 1.4.2 is not stable on Plan 9.

Could you try bootstrapping from the tip of release-branch.go1.4, or https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz ? This is the maintained version for bootstrapping, not 1.4.2. Thanks.

@duncan-bayne
Copy link
Author

@duncan-bayne duncan-bayne commented May 27, 2020

Thanks @cherrymui - I tried downloading and building Go from https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz into $home/go1.4, but the problem persists:

term% ./make.rc
Building Go cmd/dist using /usr/glenda/go1.4
Building Go toolchain1 using /usr/glenda/go1.4.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
unexpected fault address 0x720000008d
fatal error: fault
[signal 0x2 code=0x0 addr=0x720000008d pc=0x4a7e81]

goroutine 1 [running]:
runtime.gothrow(0xb7c9f0, 0x5)
	/usr/glenda/go1.4/src/runtime/panic.go:503 +0x8e fp=0x9640c98 sp=0x9640c80
runtime.sigpanic()
	/usr/glenda/go1.4/src/runtime/os_plan9.go:50 +0x1a5 fp=0x9640d00 sp=0x9640c98
bootstrap/cmd/compile/internal/ssa.BuildFuncDebug(0x93411e0, 0x9375340, 0x0, 0xd010f8, 0x1)
	/usr/glenda/go/src/cmd/compile/internal/ssa/debug.go:367 +0x19b1 fp=0x96411c0 sp=0x9640d00
bootstrap/cmd/compile/internal/gc.genssa(0x9375340, 0x972c460)
	/usr/glenda/go/src/cmd/compile/internal/gc/ssa.go:6141 +0x135c fp=0x9641630 sp=0x96411c0
bootstrap/cmd/compile/internal/gc.compileSSA(0x93742c0, 0x0)
	/usr/glenda/go/src/cmd/compile/internal/gc/pgen.go:308 +0x127 fp=0x9641708 sp=0x9641630
bootstrap/cmd/compile/internal/gc.compile(0x93742c0)
	/usr/glenda/go/src/cmd/compile/internal/gc/pgen.go:277 +0x2ed fp=0x96417b0 sp=0x9641708
bootstrap/cmd/compile/internal/gc.funccompile(0x93742c0)
	/usr/glenda/go/src/cmd/compile/internal/gc/pgen.go:222 +0x201 fp=0x9641828 sp=0x96417b0
bootstrap/cmd/compile/internal/gc.Main(0xd00cb8)
	/usr/glenda/go/src/cmd/compile/internal/gc/main.go:714 +0x39c4 fp=0x9641ee8 sp=0x9641828
main.main()
	/usr/glenda/go/src/cmd/compile/main.go:52 +0x1ca fp=0x9641f98 sp=0x9641ee8
runtime.main()
	/usr/glenda/go1.4/src/runtime/proc.go:63 +0xf8 fp=0x9641fe0 sp=0x9641f98
runtime.goexit()
	/usr/glenda/go1.4/src/runtime/asm_amd64.s:2232 +0x1 fp=0x9641fe8 sp=0x9641fe0

go tool dist: FAILED: /usr/glenda/go/pkg/tool/plan9_amd64/compile -std -pack -o /tmp/go-tool-dist-498300585/internal/cpu/_go_.a -p internal/cpu -importcfg /tmp/go-tool-dist-498300585/internal/cpu/importcfg -asmhdr /tmp/go-tool-dist-498300585/internal/cpu/go_asm.h -symabis /tmp/go-tool-dist-498300585/internal/cpu/symabis /usr/glenda/go/src/internal/cpu/cpu.go /usr/glenda/go/src/internal/cpu/cpu_amd64.go /usr/glenda/go/src/internal/cpu/cpu_x86.go: exit status: 'compile 3833: 2'
go tool dist: open /tmp/go-tool-dist-498300585/internal/cpu/_go_.a: '/tmp/go-tool-dist-498300585/internal/cpu/_go_.a' does not exist

FWIW, 1.4 is at least functional enough for go get github.com/golang/example/hello to result in a working hello world binary. It just doesn't seem capable of bootstrapping 1.14.3.

@duncan-bayne duncan-bayne changed the title Go 1.4.2 faults when bootstrapping 1.14.3 Go 1.4 faults when bootstrapping 1.14.3 on Plan 9 (9front) May 27, 2020
@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented May 27, 2020

cc @0intro

@millerresearch
Copy link

@millerresearch millerresearch commented May 27, 2020

Have you seen the bootstrapping instructions in https://github.com/golang/go/wiki/Plan9 ?

@duncan-bayne
Copy link
Author

@duncan-bayne duncan-bayne commented May 27, 2020

@millerresearch: No I hadn't, thanks - I was using the 9front FQA instructions. I'll take a look at the wiki, and try the instructions there.

@0intro
Copy link
Member

@0intro 0intro commented May 28, 2020

I think you should try to bootstrap from a more recent Go distribution. More binary packages are available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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