Description
At first, I'm not good at English. If you can't understand, please point out.
1 . What version of Go are you using (go version
)?
go version devel +f575873 Tue Aug 2 01:58:14 2016 +0000 darwin/amd64
2 . What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/zchee/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/kb/8855kjqx63723nzsgmmy7z2c0000gn/T/go-build555090261=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
3 . What did you do?
On macOS Sierra Beta 4(16A270f), all of the go compiled tools can not be used.
Broken go runtime on Sierra again :(
It's related upgrade of macOS kernel to Beta 4, also there is no direct relationship to Xcode and Command Line Tools.
It is certainly. Because I know way of the downgrade to macOS kernel and I had tested.
Also, now my kernel version is the downgrade to Beta3 (16A254g)
.
but If you want to more debug, I can try to upgrade again and any debugging.
The error log is described below. Please click to ▶︎.
First and second is building go
binary use ./make.bash
.
Second is set GODEBUG=gctrace=1,schedtrace=100,scheddetail=1
because suggests at #16272 (comment). But maybe it's for __commpage_gettimeofday
?
If so, and if you want to more debug log with other flags, Please feel free to instruct.
./all.bash
also fail in the same way, so does not put it.
That result will occur runtime.MSpanList_Insert
error and more.
env:
$GOROOT_BOOTSTRAP=/usr/local/bootstrap/go/go1.4.3
which clang
:/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
./make.bash
:
./make.bash
:> ./make.bash
##### Building Go bootstrap tool.
cmd/dist
##### Building Go toolchain using /usr/local/bootstrap/go/go1.4.3.
failed MSpanList_Insert 0x2cb178 0x1083b5d9ac 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.MSpanList_Insert(0x28baf0, 0x2cb178)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Free(0x28b5a0, 0x2cb178, 0x1)
/usr/local/go/src/runtime/mheap.c:500 +0x5b
runtime.MSpan_Sweep(0x2cb178, 0x2f00000000, 0xc200000001)
/usr/local/go/src/runtime/mgc0.c:1061 +0x6f9
goroutine 3 [running]:
runtime.switchtoM()
/usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc20801dfa8 sp=0xc20801dfa0
runtime.gosweepone(0x0)
/usr/local/go/src/runtime/mgc0.c:1168 +0x1e fp=0xc20801dfc0 sp=0xc20801dfa8
runtime.bgsweep()
/usr/local/go/src/runtime/mgc0.go:85 +0x36 fp=0xc20801dfe0 sp=0xc20801dfc0
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20801dfe8 sp=0xc20801dfe0
created by gc
/usr/local/go/src/runtime/mgc0.c:1386
goroutine 1 [syscall]:
syscall.Syscall(0x3, 0x3, 0xc20805a500, 0x4ef, 0x13b120, 0x1, 0xc20820c1c0)
/usr/local/go/src/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x3, 0xc20805a500, 0x4ef, 0x4ef, 0xc208252000, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:970 +0x6e
syscall.Read(0x3, 0xc20805a500, 0x4ef, 0x4ef, 0xc20803c570, 0x0, 0x0)
/usr/local/go/src/syscall/syscall_unix.go:136 +0x58
os.(*File).read(0xc208056028, 0xc20805a500, 0x4ef, 0x4ef, 0x70, 0x0, 0x0)
/usr/local/go/src/os/file_unix.go:191 +0x86
os.(*File).Read(0xc208056028, 0xc20805a500, 0x4ef, 0x4ef, 0x2ca208, 0x0, 0x0)
/usr/local/go/src/os/file.go:95 +0x91
bytes.(*Buffer).ReadFrom(0xc2080100e0, 0x2d7b58, 0xc208056028, 0x0, 0x0, 0x0)
/usr/local/go/src/bytes/buffer.go:169 +0x25a
io/ioutil.readAll(0x2d7b58, 0xc208056028, 0x4ef, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:33 +0x1b0
io/ioutil.ReadFile(0xc20820c140, 0x3b, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:70 +0x1b5
main.readfile(0xc20820c140, 0x3b, 0x0, 0x0)
/usr/local/go/src/cmd/dist/util.go:241 +0x58
main.bootstrapBuildTools()
/usr/local/go/src/cmd/dist/buildtool.go:89 +0xb5e
main.cmdbootstrap()
/usr/local/go/src/cmd/dist/build.go:1022 +0x387
main.xmain()
/usr/local/go/src/cmd/dist/main.go:43 +0x240
main.main()
/usr/local/go/src/cmd/dist/util.go:496 +0x51b
goroutine 5 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
goroutine 6 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
goroutine 7 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
goroutine 8 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
GODEBUG=gctrace=1,schedtrace=100,scheddetail=1 ./make.bash
:
GODEBUG=gctrace=1,schedtrace=100,scheddetail=1 ./make.bash
:##### Building Go bootstrap tool.
cmd/dist
SCHED 0ms: gomaxprocs=1 idleprocs=0 threads=2 spinningthreads=0 idlethreads=0 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=1 schedtick=1 syscalltick=0 m=0 runqsize=0 gfreecnt=0
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=1
G1: status=2() m=0 lockedm=0
gc1(1): 2+0+2852+2 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 16/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 2+0+118+1 us, 0 -> 0 MB, 41 (42-1) objects, 3 goroutines, 20/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 3+0+1555+1 us, 0 -> 0 MB, 113 (132-19) objects, 4 goroutines, 23/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 1+0+149+0 us, 0 -> 0 MB, 230 (276-46) objects, 4 goroutines, 36/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc5(1): 1+0+763+3 us, 0 -> 0 MB, 569 (695-126) objects, 5 goroutines, 42/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc6(1): 4+1+425+0 us, 0 -> 0 MB, 1640 (2128-488) objects, 6 goroutines, 57/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc7(1): 2+0+418+0 us, 0 -> 0 MB, 2849 (4271-1422) objects, 6 goroutines, 72/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc8(1): 1+0+359+0 us, 0 -> 0 MB, 3348 (6319-2971) objects, 6 goroutines, 85/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc9(1): 0+0+336+0 us, 0 -> 0 MB, 3862 (8720-4858) objects, 6 goroutines, 89/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc10(1): 1+0+352+0 us, 0 -> 0 MB, 4931 (11020-6089) objects, 6 goroutines, 111/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc11(1): 1+0+328+0 us, 0 -> 0 MB, 4952 (13340-8388) objects, 6 goroutines, 119/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
SCHED 100ms: gomaxprocs=1 idleprocs=0 threads=4 spinningthreads=0 idlethreads=1 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=1 schedtick=337 syscalltick=1021 m=0 runqsize=2 gfreecnt=0
M3: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=1(stack growth) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=1(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G6: status=1(chan send) m=-1 lockedm=-1
gc12(1): 1+0+275+0 us, 0 -> 0 MB, 5246 (15879-10633) objects, 5 goroutines, 122/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc13(1): 0+7+492+0 us, 0 -> 0 MB, 5289 (19268-13979) objects, 5 goroutines, 123/0/12 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc14(1): 1+0+365+0 us, 0 -> 0 MB, 4983 (22108-17125) objects, 5 goroutines, 123/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc15(1): 1+0+369+0 us, 0 -> 0 MB, 5572 (25257-19685) objects, 5 goroutines, 123/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc16(1): 1+0+395+0 us, 0 -> 0 MB, 6047 (28305-22258) objects, 5 goroutines, 127/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc17(1): 1+0+338+0 us, 0 -> 0 MB, 6036 (31294-25258) objects, 5 goroutines, 133/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc18(1): 1+0+482+0 us, 0 -> 0 MB, 6604 (35088-28484) objects, 5 goroutines, 134/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc19(1): 1+0+366+0 us, 0 -> 0 MB, 7167 (38812-31645) objects, 5 goroutines, 141/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc20(1): 0+0+370+0 us, 0 -> 0 MB, 7596 (42820-35224) objects, 5 goroutines, 146/1/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc21(1): 1+0+449+0 us, 0 -> 0 MB, 7936 (46865-38929) objects, 5 goroutines, 150/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
SCHED 212ms: gomaxprocs=1 idleprocs=0 threads=4 spinningthreads=0 idlethreads=0 runqueue=1 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=1 schedtick=345 syscalltick=3001 m=3 runqsize=7 gfreecnt=0
M3: p=0 curg=9 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=7 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(semacquire) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=1(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G7: status=3(stack growth) m=0 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=4(select) m=-1 lockedm=-1
G10: status=4(select) m=-1 lockedm=-1
G11: status=4(select) m=-1 lockedm=-1
G12: status=4(select) m=-1 lockedm=-1
G13: status=4(select) m=-1 lockedm=-1
G14: status=4(select) m=-1 lockedm=-1
G15: status=3() m=3 lockedm=-1
SCHED 322ms: gomaxprocs=1 idleprocs=1 threads=5 spinningthreads=0 idlethreads=1 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=0 schedtick=387 syscalltick=3001 m=-1 runqsize=0 gfreecnt=0
M4: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M3: p=0 curg=15 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=7 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(semacquire) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=4(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G7: status=3(stack growth) m=0 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=4(select) m=-1 lockedm=-1
G10: status=4(select) m=-1 lockedm=-1
G11: status=4(select) m=-1 lockedm=-1
G12: status=4(select) m=-1 lockedm=-1
G13: status=4(select) m=-1 lockedm=-1
G14: status=4(select) m=-1 lockedm=-1
G15: status=3() m=3 lockedm=-1
SCHED 428ms: gomaxprocs=1 idleprocs=1 threads=5 spinningthreads=0 idlethreads=1 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=0 schedtick=387 syscalltick=3001 m=-1 runqsize=0 gfreecnt=0
M4: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M3: p=0 curg=15 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=7 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(semacquire) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=4(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G7: status=3(stack growth) m=0 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=4(select) m=-1 lockedm=-1
G10: status=4(select) m=-1 lockedm=-1
G11: status=4(select) m=-1 lockedm=-1
G12: status=4(select) m=-1 lockedm=-1
G13: status=4(select) m=-1 lockedm=-1
G14: status=4(select) m=-1 lockedm=-1
G15: status=3() m=3 lockedm=-1
SCHED 531ms: gomaxprocs=1 idleprocs=0 threads=5 spinningthreads=0 idlethreads=2 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=2 schedtick=391 syscalltick=3060 m=-1 runqsize=1 gfreecnt=0
M4: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M3: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=7 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(semacquire) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=4(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G7: status=3(chan receive) m=0 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=4(select) m=-1 lockedm=-1
G10: status=4(select) m=-1 lockedm=-1
G11: status=4(select) m=-1 lockedm=-1
G12: status=4(select) m=-1 lockedm=-1
G13: status=4(select) m=-1 lockedm=-1
G14: status=4(select) m=-1 lockedm=-1
G18: status=1() m=-1 lockedm=-1
SCHED 632ms: gomaxprocs=1 idleprocs=1 threads=5 spinningthreads=0 idlethreads=1 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=0 schedtick=392 syscalltick=3060 m=-1 runqsize=0 gfreecnt=0
M4: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M3: p=0 curg=18 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=7 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(semacquire) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=4(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G7: status=3(chan receive) m=0 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=4(select) m=-1 lockedm=-1
G10: status=4(select) m=-1 lockedm=-1
G11: status=4(select) m=-1 lockedm=-1
G12: status=4(select) m=-1 lockedm=-1
G13: status=4(select) m=-1 lockedm=-1
G14: status=4(select) m=-1 lockedm=-1
G18: status=3() m=3 lockedm=-1
SCHED 739ms: gomaxprocs=1 idleprocs=1 threads=5 spinningthreads=0 idlethreads=1 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=0 schedtick=392 syscalltick=3060 m=-1 runqsize=0 gfreecnt=0
M4: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M3: p=0 curg=18 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=5 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=7 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(semacquire) m=-1 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=4(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=3() m=2 lockedm=-1
G7: status=3(chan receive) m=0 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=4(select) m=-1 lockedm=-1
G10: status=4(select) m=-1 lockedm=-1
G11: status=4(select) m=-1 lockedm=-1
G12: status=4(select) m=-1 lockedm=-1
G13: status=4(select) m=-1 lockedm=-1
G14: status=4(select) m=-1 lockedm=-1
G18: status=3() m=3 lockedm=-1
SCHED 0ms: gomaxprocs=1 idleprocs=0 threads=2 spinningthreads=0 idlethreads=0 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=1 schedtick=1 syscalltick=0 m=0 runqsize=0 gfreecnt=0
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=1
G1: status=2(stack growth) m=0 lockedm=0
G2: status=1() m=-1 lockedm=-1
gc1(1): 51+0+126+0 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 15/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 0+0+74+0 us, 0 -> 0 MB, 95 (97-2) objects, 3 goroutines, 22/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 0+0+88+0 us, 0 -> 0 MB, 174 (214-40) objects, 4 goroutines, 44/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 0+0+502+0 us, 0 -> 0 MB, 163 (224-61) objects, 4 goroutines, 45/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
SCHED 0ms: gomaxprocs=1 idleprocs=0 threads=2 spinningthreads=0 idlethreads=0 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=1 schedtick=1 syscalltick=0 m=0 runqsize=1 gfreecnt=0
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=1 mallocing=0 throwing=0 gcing=1 locks=1 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=1
G1: status=2(stack growth) m=0 lockedm=0
G2: status=1() m=-1 lockedm=-1
gc1(1): 55+0+75+0 us, 0 -> 0 MB, 21 (21-0) objects, 2 goroutines, 16/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc2(1): 0+0+63+0 us, 0 -> 0 MB, 91 (93-2) objects, 3 goroutines, 22/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc3(1): 0+0+75+0 us, 0 -> 0 MB, 175 (213-38) objects, 4 goroutines, 44/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
gc4(1): 0+0+810+0 us, 0 -> 0 MB, 162 (223-61) objects, 4 goroutines, 45/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields
failed MSpanList_Insert 0x2cb3e8 0x1a66b926f47 0x0
SCHED -1470109654236ms: gomaxprocs=1 idleprocs=0 threads=4 spinningthreads=0 idlethreads=2 runqueue=0 gcwaiting=0 nmidlelocked=0 stopwait=0 sysmonwait=0
P0: status=1 schedtick=11 syscalltick=30 m=0 runqsize=0 gfreecnt=1
M3: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M2: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M1: p=-1 curg=-1 mallocing=0 throwing=0 gcing=0 locks=0 dying=0 helpgc=0 spinning=0 blocked=0 lockedg=-1
M0: p=0 curg=1 mallocing=0 throwing=1 gcing=0 locks=4 dying=1 helpgc=0 spinning=0 blocked=0 lockedg=-1
G1: status=4(stack growth) m=0 lockedm=-1
G2: status=4(force gc (idle)) m=-1 lockedm=-1
G3: status=4(GC sweep wait) m=-1 lockedm=-1
G4: status=4(finalizer wait) m=-1 lockedm=-1
G5: status=4(select) m=-1 lockedm=-1
G6: status=4(select) m=-1 lockedm=-1
G7: status=4(select) m=-1 lockedm=-1
G8: status=4(select) m=-1 lockedm=-1
G9: status=6() m=-1 lockedm=-1
fatal error: MSpanList_Insert
runtime stack:
runtime.MSpanList_Insert(0x28d420, 0x2cb3e8)
/usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_AllocStack(0x28b5a0, 0x4, 0xc207ff8d01)
/usr/local/go/src/runtime/mheap.c:267 +0x71
goroutine 1 [stack growth]:
fmt.(*pp).printReflectValue(0xc20803e270, 0x13a2a0, 0xc20803254a, 0x41, 0x76, 0x0, 0x405a8)
/usr/local/go/src/fmt/print.go:843 fp=0xc20814e5c8 sp=0xc20814e5c0
fmt.(*pp).printArg(0xc20803e270, 0x13a2a0, 0xc20803254a, 0x76, 0x0, 0x0)
/usr/local/go/src/fmt/print.go:798 +0x44f fp=0xc20814e698 sp=0xc20814e5c8
fmt.(*pp).doPrintf(0xc20803e270, 0x19d1b0, 0x2, 0xc20814eac0, 0x1, 0x1)
/usr/local/go/src/fmt/print.go:1183 +0x21cd fp=0xc20814ea28 sp=0xc20814e698
fmt.Sprintf(0x19d1b0, 0x2, 0xc20814eac0, 0x1, 0x1, 0x0, 0x0)
/usr/local/go/src/fmt/print.go:203 +0x78 fp=0xc20814ea78 sp=0xc20814ea28
flag.(*boolValue).String(0x284e0d, 0x0, 0x0)
/usr/local/go/src/flag/flag.go:96 +0xfc fp=0xc20814eaf0 sp=0xc20814ea78
flag.(*FlagSet).Var(0xc208036000, 0x2d7bd0, 0x284e0d, 0x1a2830, 0x1, 0x1b3b50, 0xb)
/usr/local/go/src/flag/flag.go:669 +0x3c fp=0xc20814ebf8 sp=0xc20814eaf0
flag.BoolVar(0x284e0d, 0x1a2830, 0x1, 0x0, 0x1b3b50, 0xb)
/usr/local/go/src/flag/flag.go:458 +0x8d fp=0xc20814ec50 sp=0xc20814ebf8
main.cmdbootstrap()
/usr/local/go/src/cmd/dist/build.go:1002 +0x6c fp=0xc20814ed80 sp=0xc20814ec50
main.xmain()
/usr/local/go/src/cmd/dist/main.go:43 +0x240 fp=0xc20814ee90 sp=0xc20814ed80
main.main()
/usr/local/go/src/cmd/dist/util.go:496 +0x51b fp=0xc20814ef98 sp=0xc20814ee90
runtime.main()
/usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc20814efe0 sp=0xc20814ef98
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20814efe8 sp=0xc20814efe0
goroutine 5 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
goroutine 6 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
goroutine 7 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
goroutine 8 [select]:
main.bghelper()
/usr/local/go/src/cmd/dist/util.go:150 +0x148
created by main.bginit
/usr/local/go/src/cmd/dist/util.go:143 +0x58
Next is compiling package, e.g. gb
.
env:
$GOROOT=/usr/local/bootstrap/go/go1.7rc3
- Because
/usr/local/go/bin/go
was broken.
- Because
which clang
:/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
go get -u -v -x github.com/constabulary/gb/...
:
go get -u -v -x github.com/constabulary/gb/...
:> go get -u -v -x github.com/constabulary/gb/...
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
github.com/constabulary/gb (download)
cd /Users/zchee/go/src/github.com/constabulary/gb
git pull --ff-only
cd /Users/zchee/go/src/github.com/constabulary/gb
git submodule update --init --recursive
cd /Users/zchee/go/src/github.com/constabulary/gb
git show-ref
cd /Users/zchee/go/src/github.com/constabulary/gb
git submodule update --init --recursive
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/pkg/errors
git config remote.origin.url
github.com/pkg/errors (download)
cd /Users/zchee/go/src/github.com/pkg/errors
git pull --ff-only
cd /Users/zchee/go/src/github.com/pkg/errors
git submodule update --init --recursive
cd /Users/zchee/go/src/github.com/pkg/errors
git show-ref
cd /Users/zchee/go/src/github.com/pkg/errors
git submodule update --init --recursive
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
cd /Users/zchee/go/src/github.com/constabulary/gb
git config remote.origin.url
WORK=/var/folders/kb/8855kjqx63723nzsgmmy7z2c0000gn/T/go-build045534630
github.com/constabulary/gb/internal/debug
github.com/pkg/errors
mkdir -p $WORK/github.com/constabulary/gb/internal/debug/_obj/
mkdir -p $WORK/github.com/constabulary/gb/internal/
mkdir -p $WORK/github.com/pkg/errors/_obj/
cd /Users/zchee/go/src/github.com/constabulary/gb/internal/debug
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/internal/debug.a -trimpath $WORK -p github.com/constabulary/gb/internal/debug -complete -buildid 9b964ef02ba1d8dd9d0be9bca5eb78eadf7b91cf -D _/Users/zchee/go/src/github.com/constabulary/gb/internal/debug -I $WORK -pack ./debug.go
mkdir -p $WORK/github.com/pkg/
cd /Users/zchee/go/src/github.com/pkg/errors
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/pkg/errors.a -trimpath $WORK -p github.com/pkg/errors -complete -buildid 6d19a46070aedcc80955b67f997c8d9ad7d253cb -D _/Users/zchee/go/src/github.com/pkg/errors -I $WORK -pack ./errors.go ./stack.go
mkdir -p /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/
mv $WORK/github.com/constabulary/gb/internal/debug.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/debug.a
github.com/constabulary/gb/cmd/gb/internal/match
mkdir -p $WORK/github.com/constabulary/gb/cmd/gb/internal/match/_obj/
mkdir -p $WORK/github.com/constabulary/gb/cmd/gb/internal/
cd /Users/zchee/go/src/github.com/constabulary/gb/cmd/gb/internal/match
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/cmd/gb/internal/match.a -trimpath $WORK -p github.com/constabulary/gb/cmd/gb/internal/match -complete -buildid 56998acc2092330ce0791344f88aa7fd1345f9a1 -D _/Users/zchee/go/src/github.com/constabulary/gb/cmd/gb/internal/match -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./match.go
mkdir -p /Users/zchee/go/pkg/darwin_amd64/github.com/pkg/
mv $WORK/github.com/pkg/errors.a /Users/zchee/go/pkg/darwin_amd64/github.com/pkg/errors.a
github.com/constabulary/gb/internal/depfile
mkdir -p $WORK/github.com/constabulary/gb/internal/depfile/_obj/
github.com/constabulary/gb/internal/fileutils
github.com/constabulary/gb/internal/importer
mkdir -p $WORK/github.com/constabulary/gb/internal/importer/_obj/
github.com/constabulary/gb/internal/untar
cd /Users/zchee/go/src/github.com/constabulary/gb/internal/depfile
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/internal/depfile.a -trimpath $WORK -p github.com/constabulary/gb/internal/depfile -complete -buildid f16f14c25062772213962cbb22fe57090971c042 -D _/Users/zchee/go/src/github.com/constabulary/gb/internal/depfile -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./depfile.go
mkdir -p $WORK/github.com/constabulary/gb/internal/fileutils/_obj/
cd /Users/zchee/go/src/github.com/constabulary/gb/internal/importer
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/internal/importer.a -trimpath $WORK -p github.com/constabulary/gb/internal/importer -complete -buildid d542980787150603d85fde7108d9048ff4db6f3c -D _/Users/zchee/go/src/github.com/constabulary/gb/internal/importer -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./build.go ./importer.go ./pkg.go ./read.go ./util.go
cd /Users/zchee/go/src/github.com/constabulary/gb/internal/fileutils
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/internal/fileutils.a -trimpath $WORK -p github.com/constabulary/gb/internal/fileutils -complete -buildid 29ab0211a61049ec7d3f2c501a648d95c479ec38 -D _/Users/zchee/go/src/github.com/constabulary/gb/internal/fileutils -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./fileutils.go
mkdir -p $WORK/github.com/constabulary/gb/internal/untar/_obj/
cd /Users/zchee/go/src/github.com/constabulary/gb/internal/untar
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/internal/untar.a -trimpath $WORK -p github.com/constabulary/gb/internal/untar -complete -buildid 11bf98c221dcc0a8424522c29b13594388e217ee -D _/Users/zchee/go/src/github.com/constabulary/gb/internal/untar -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./untar.go
mkdir -p /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/cmd/gb/internal/
mv $WORK/github.com/constabulary/gb/cmd/gb/internal/match.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/cmd/gb/internal/match.a
mv $WORK/github.com/constabulary/gb/internal/depfile.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/depfile.a
mv $WORK/github.com/constabulary/gb/internal/fileutils.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/fileutils.a
github.com/constabulary/gb/internal/vendor
mkdir -p $WORK/github.com/constabulary/gb/internal/vendor/_obj/
cd /Users/zchee/go/src/github.com/constabulary/gb/internal/vendor
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/internal/vendor.a -trimpath $WORK -p github.com/constabulary/gb/internal/vendor -complete -buildid be0d8aac15a3f40e39b31d911c8ab60fc00f50f2 -D _/Users/zchee/go/src/github.com/constabulary/gb/internal/vendor -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./depset.go ./discovery.go ./imports.go ./manifest.go ./repo.go ./stringset.go
mv $WORK/github.com/constabulary/gb/internal/untar.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/untar.a
mv $WORK/github.com/constabulary/gb/internal/importer.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/importer.a
github.com/constabulary/gb
mkdir -p $WORK/github.com/constabulary/gb/_obj/
mkdir -p $WORK/github.com/constabulary/
cd /Users/zchee/go/src/github.com/constabulary/gb
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb.a -trimpath $WORK -p github.com/constabulary/gb -complete -buildid 7cda6a80533514420defd9e737ae3156e9848547 -D _/Users/zchee/go/src/github.com/constabulary/gb -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./build.go ./cgo.go ./context.go ./defaultcc_bsd.go ./depfile.go ./executor.go ./gb.go ./gc.go ./goversion16.go ./install.go ./package.go ./project.go ./resolver.go
mv $WORK/github.com/constabulary/gb/internal/vendor.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/internal/vendor.a
mkdir -p /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/
mv $WORK/github.com/constabulary/gb.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb.a
github.com/constabulary/gb/cmd
mkdir -p $WORK/github.com/constabulary/gb/cmd/_obj/
mkdir -p $WORK/github.com/constabulary/gb/
github.com/constabulary/gb/test
mkdir -p $WORK/github.com/constabulary/gb/test/_obj/
cd /Users/zchee/go/src/github.com/constabulary/gb/cmd
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/cmd.a -trimpath $WORK -p github.com/constabulary/gb/cmd -complete -buildid 8ee13c5256811a9d4415670d0ae1757e81779244 -D _/Users/zchee/go/src/github.com/constabulary/gb/cmd -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./cmd.go ./env.go ./path.go
cd /Users/zchee/go/src/github.com/constabulary/gb/test
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/test.a -trimpath $WORK -p github.com/constabulary/gb/test -complete -buildid f2d3cd257ab2d6e1bda7e6671b46290d4bf3c834 -D _/Users/zchee/go/src/github.com/constabulary/gb/test -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./gotest.go ./resolve.go ./test.go
mkdir -p /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/
mv $WORK/github.com/constabulary/gb/cmd.a /Users/zchee/go/pkg/darwin_amd64/github.com/constabulary/gb/cmd.a
github.com/constabulary/gb/cmd/gb-vendor
mkdir -p $WORK/github.com/constabulary/gb/cmd/gb-vendor/_obj/
mkdir -p $WORK/github.com/constabulary/gb/cmd/gb-vendor/_obj/exe/
cd /Users/zchee/go/src/github.com/constabulary/gb/cmd/gb-vendor
/usr/local/bootstrap/go/go1.7rc3/pkg/tool/darwin_amd64/compile -o $WORK/github.com/constabulary/gb/cmd/gb-vendor.a -trimpath $WORK -p main -complete -buildid 014ba2ae1a703b55611bc3bb81828bc380ac6569 -D _/Users/zchee/go/src/github.com/constabulary/gb/cmd/gb-vendor -I $WORK -I /Users/zchee/go/pkg/darwin_amd64 -pack ./alldocs.go ./delete.go ./fetch.go ./help.go ./list.go ./main.go ./purge.go ./restore.go ./update.go
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
.
.
.
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine# github.com/constabulary/gb/cmd/gb-vendor
unexpected fault address 0x2a5c8903d6d
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0x2a5c8903d6d pc=0x2c83a2]
goroutine 1 [running]:
runtime.throw(0x4f03bc, 0x5)
/usr/local/go/src/runtime/panic.go:566 +0x95 fp=0xc420c6de70 sp=0xc420c6de50
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:27 +0x288 fp=0xc420c6dec8 sp=0xc420c6de70
cmd/compile/internal/ssa.(*Config).Log(0x2a5c8903d25, 0xc403714578)
/usr/local/go/src/cmd/compile/internal/ssa/config.go:199 +0x22 fp=0xc420c6dee8 sp=0xc420c6dec8
cmd/compile/internal/ssa.(*Func).Log(0xc42001c960, 0xc403714578)
/usr/local/go/src/cmd/compile/internal/ssa/func.go:396 +0x2e fp=0xc420c6df08 sp=0xc420c6dee8
cmd/compile/internal/ssa.Compile(0xc42001c960)
/usr/local/go/src/cmd/compile/internal/ssa/compile.go:68 +0x355 fp=0xc420c71608 sp=0xc420c6df08
cmd/compile/internal/gc.buildssa(0xc4206a1c20, 0x0)
/usr/local/go/src/cmd/compile/internal/gc/ssa.go:232 +0xc53 fp=0xc420c718e0 sp=0xc420c71608
cmd/compile/internal/gc.compile(0xc4206a1c20)
/usr/local/go/src/cmd/compile/internal/gc/pgen.go:405 +0x1363 fp=0xc420c71b90 sp=0xc420c718e0
cmd/compile/internal/gc.funccompile(0xc4206a1c20)
/usr/local/go/src/cmd/compile/internal/gc/dcl.go:1287 +0x186 fp=0xc420c71c08 sp=0xc420c71b90
cmd/compile/internal/gc.Main()
/usr/local/go/src/cmd/compile/internal/gc/main.go:467 +0x19f8 fp=0xc420c71e50 sp=0xc420c71c08
cmd/compile/internal/amd64.Main()
/usr/local/go/src/cmd/compile/internal/amd64/galign.go:93 +0x2fa fp=0xc420c71e88 sp=0xc420c71e50
main.main()
/usr/local/go/src/cmd/compile/main.go:33 +0x2a3 fp=0xc420c71f18 sp=0xc420c71e88
runtime.main()
/usr/local/go/src/runtime/proc.go:183 +0x1f4 fp=0xc420c71f70 sp=0xc420c71f18
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc420c71f78 sp=0xc420c71f70
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
fatal error: systemstack called from unexpected goroutine
.
.
.
# endless......
Finally, use peco
cli tools.
runtime: newstack sp=0xc420033f00 stack=[0x376cad98ec7, 0xc420033fe0]
morebuf={pc:0x2525c sp:0xc420033f10 lr:0x0}
sched={pc:0x257d0 sp:0xc420033f08 lr:0x0 ctxt:0x0}
runtime: gp=0xc420069ba0, gp->status=0x2
runtime: split stack overflow: 0xc420033f00 < 0x376cad98ec7
fatal error: runtime: split stack overflow
runtime: newstack sp=0xc420033700 stack=[0x376cad9c134, 0xc4200337e0]
morebuf={pc:0x253c8 sp:0xc420033710 lr:0x0}
sched={pc:0x23f70 sp:0xc420033708 lr:0x0 ctxt:0x0}
runtime: gp=0xc420069a00, gp->status=0x2
runtime: split stack overflow: 0xc420033700 < 0x376cad9c134
fatal error: runtime: split stack overflow
runtime: newstack sp=0xc420036f38 stack=[0x376cada72cf, 0xc420036fe0]
morebuf={pc:0x21cad sp:0xc420036f48 lr:0x0}
sched={pc:0x25100 sp:0xc420036f40 lr:0x0 ctxt:0x0}
runtime: gp=0xc420000ea0, gp->status=0x2
runtime: split stack overflow: 0xc420036f38 < 0x376cada72cf
fatal error: runtime: split stack overflow
or
fatal error: systemstack called from unexpected goroutine
I don't know why to occur that error and go runtime source, but I think related goroutine.
Because If does not use the goroutine (than main
) cli tool, does not occur. such as gotype
.
4 . What did you expect?
Build the go binary to complete successfully, also package.
and use go compiled tools successfully.
5 . What did you see instead?
build, compile, use cli.
Activity
[-]runtime: failed runtime.MSpanList_Insert on macOS Sierra Beta 4(16A270f)[/-][+]runtime: failed build, compile and use compiled binary on macOS Sierra Beta 4(16A270f)[/+]zchee commentedon Aug 2, 2016
Oh, I forgot.
If that problem was the macOS feature specification rather than a macOS's bug, I think the very impact issue.
I do not know whether it is difficult to fix this, However, It does not work anything.
bradfitz commentedon Aug 2, 2016
From an email thread,
@zchee, thanks for confirming that it does indeed break things.
bradfitz commentedon Aug 2, 2016
@zchee, can you test this patch:
It's at least harmless for me on OS X 10.11.
gopherbot commentedon Aug 2, 2016
CL https://golang.org/cl/25400 mentions this issue.
zchee commentedon Aug 2, 2016
@bradfitz Thanks! oh, it's known issue :)
Sorry for I'm not checked email thread.
Now tested that patch only
./make.bash
, but results will same... :(Why? My bad...?
$GOROOT_BOOTSTRAP=/usr/local/bootstrap/go/go1.4.3
first try.
./make.bash
:second try
./make.bash
:third try.
./make.bash
:bradfitz commentedon Aug 2, 2016
@zchee, no, my fault probably. We'll take a look tomorrow. Thanks for the report and for trying that patch.
zchee commentedon Aug 2, 2016
@bradfitz I got it. Thanks :)
I will try to more debug use llvm, will reports if I find something.
and FYI, I have macOS Sierra Beta1 ~ Beta4 upgrade
pkg
, also expanded included file to flatten directory.If you want to disassemble any
dylib
information, I can offer that data per each Beta version to the Go core members.sekimura commentedon Aug 2, 2016
It's true that there are some changes in gettimeofday but is this related to runtime.systime in sys_darwin_amd64.s fixed in #16272 ? I wonder if it's about runtime.switchtoM in asm_amd64.s according to the error messages.
zchee commentedon Aug 2, 2016
@sekimura I think so, too. It's have not to the related of
_gettimeofday
in the error log.As @bradfitz says, surely libsystem_kernel.dylib has been changed, but It does not hit those that related to
_gettimeofday
in the lldb output.I cannot read
.s
and not familiar with lldb, but I think maybe the different issue from the_gettimeofday
.zchee commentedon Aug 2, 2016
This may not be relevant...
but I found new
__gettimeofday_with_mach
on the/usr/local/lib/libsystem_kernel.dylib
from the Beta4.Beta3's
libsystem_kernel.dylib
has not that syscall.I don't know where to use. but just to be sure, post the those disassemble results.
__gettimeofday
:__gettimeofday
:__gettimeofday_with_mach
:crawshaw commentedon Aug 2, 2016
@zchee the error you are reporting is coming from the Go 1.4 distribution you are using. (Note the first position listed in the stack trace, /usr/local/go/src/runtime/mheap.c:692.)
If you are applying @bradfitz's patch to your GOROOT, it won't fix the error you are seeing because the 1.4 binary is already built and not being rebuilt.
Do you have another machine not running Beta4? If so, could you please:
If you don't have another machine I could build you a patched Go release and put it somewhere for you to download.
65 remaining items
runtime: fix nanotime for macOS Sierra, again.
runtime: fix nanotime for macOS Sierra, again.
runtime: fix nanotime for macOS Sierra, again.
runtime: fix nanotime for macOS Sierra, again.
runtime: fix nanotime for macOS Sierra, again.