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: fatal error: exitThread on Plan 9 since CL 46037 #22221

Closed
0intro opened this issue Oct 11, 2017 · 2 comments
Closed

runtime: fatal error: exitThread on Plan 9 since CL 46037 #22221

0intro opened this issue Oct 11, 2017 · 2 comments

Comments

@0intro
Copy link
Member

0intro commented Oct 11, 2017

Since CL 46037, the runtime is crashing on Plan 9 with the following error:

cmd/go

##### Building packages and commands for plan9/386.
fatal error: exitThread

runtime stack:
runtime.throw(0x25274d, 0xa)
	/usr/go/src/runtime/panic.go:616 +0x6a
runtime.exitThread(0x105c6590)
	/usr/go/src/runtime/os_plan9.go:427 +0x2a
runtime.mexit(0x0)
	/usr/go/src/runtime/proc.go:1328 +0x10c
runtime.mstart()
	/usr/go/src/runtime/proc.go:1179 +0x6b

goroutine 1 [runnable]:
syscall.Seek(0x4, 0x0, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0)
	/usr/go/src/syscall/syscall_plan9.go:157 +0xc5
syscall.readenv(0x10732d50, 0x6, 0x0, 0x0, 0x0, 0x0)
	/usr/go/src/syscall/env_plan9.go:25 +0x114
syscall.Environ(0x0, 0x0, 0x0)
	/usr/go/src/syscall/env_plan9.go:101 +0x126
os.Environ(0x106ea38c, 0x2, 0x106da5e8)
	/usr/go/src/os/env.go:117 +0x19
cmd/go/internal/work.(*Builder).gccSupportsFlag(0x106d80f0, 0x1065e708, 0x1, 0x1, 0x2562ff, 0x16, 0x0)
	/usr/go/src/cmd/go/internal/work/build.go:3572 +0x390
cmd/go/internal/work.(*Builder).compilerCmd(0x106d80f0, 0x24fc22, 0x2, 0x24fbfe, 0x2, 0x24fb31, 0x1, 0x0, 0x0, 0x20e2c0, ...)
	/usr/go/src/cmd/go/internal/work/build.go:3503 +0x4f7
cmd/go/internal/work.(*Builder).GccCmd(0x106d80f0, 0x24fb31, 0x1, 0x0, 0x0, 0x106a4160, 0xb, 0x16)
	/usr/go/src/cmd/go/internal/work/build.go:3449 +0x64
cmd/go/internal/envcmd.MkEnv(0x1068c580, 0x58, 0x58)
	/usr/go/src/cmd/go/internal/envcmd/env.go:76 +0x31a
main.main()
	/usr/go/src/cmd/go/main.go:122 +0x479

goroutine 5 [syscall]:
os/signal.signal_recv(0x0, 0x0)
	/usr/go/src/runtime/sigqueue_plan9.go:109 +0x69
os/signal.loop()
	/usr/go/src/os/signal/signal_plan9.go:27 +0x19
created by os/signal.init.0
	/usr/go/src/os/signal/signal_plan9.go:22 +0x36
@0intro 0intro added this to the Go1.10 milestone Oct 11, 2017
@0intro 0intro self-assigned this Oct 11, 2017
@0intro
Copy link
Member Author

0intro commented Oct 11, 2017

This issue was discovered while investigating on issue #22219.

@gopherbot
Copy link

Change https://golang.org/cl/70190 mentions this issue: runtime: fix crash on Plan 9

@golang golang locked and limited conversation to collaborators Oct 12, 2018
@rsc rsc unassigned 0intro Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants