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: failed build, compile and use compiled binary on macOS Sierra Beta 4(16A270f) #16570

Closed
zchee opened this issue Aug 2, 2016 · 38 comments

Comments

@zchee
Copy link
Contributor

zchee commented Aug 2, 2016

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
  1. ./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
  1. 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.
  • which clang:
    • /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
  1. 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.

https://asciinema.org/a/81537

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.

@zchee zchee changed the title 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) Aug 2, 2016
@bradfitz bradfitz added this to the Go1.7Maybe milestone Aug 2, 2016
@zchee
Copy link
Contributor Author

zchee commented 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
Copy link
Contributor

bradfitz commented Aug 2, 2016

From an email thread,

Beta 4 of macOS 10.12 may subtly break Go's gettimeofday(2) stub again.

% lldb /usr/lib/system/libsystem_kernel.dylib
(lldb) disas -n __gettimeofday
libsystem_kernel.dylib`__gettimeofday:
libsystem_kernel.dylib[0x195d9] <+0>:  movq   $0x0, %rdx
libsystem_kernel.dylib[0x195e0] <+7>:  movl   $0x2000074, %eax
libsystem_kernel.dylib[0x195e5] <+12>: movq   %rcx, %r10
libsystem_kernel.dylib[0x195e8] <+15>: syscall 

Zero’ing the third argument is a change from earlier betas. It’s now used to specify an address where we will copy-out an additional value, so if it contains garbage it may corrupt the memory at that address.

@zchee, thanks for confirming that it does indeed break things.

@bradfitz
Copy link
Contributor

bradfitz commented Aug 2, 2016

@zchee, can you test this patch:

diff --git a/src/runtime/sys_darwin_386.s b/src/runtime/sys_darwin_386.s
index 83f4709..9f877fc 100644
--- a/src/runtime/sys_darwin_386.s
+++ b/src/runtime/sys_darwin_386.s
@@ -199,6 +199,7 @@ systime:
        LEAL    12(SP), AX      // must be non-nil, unused
        MOVL    AX, 4(SP)
        MOVL    $0, 8(SP)       // time zone pointer
+       MOVL    $0, DX  // required as of Sierra; Issue 16570
        MOVL    $116, AX
        INT     $0x80
        CMPL    AX, $0
diff --git a/src/runtime/sys_darwin_amd64.s b/src/runtime/sys_darwin_amd64.s
index e4837ce..ea2cc06 100644
--- a/src/runtime/sys_darwin_amd64.s
+++ b/src/runtime/sys_darwin_amd64.s
@@ -157,6 +157,7 @@ systime:
        // Fall back to system call (usually first call in this thread).
        MOVQ    SP, DI
        MOVQ    $0, SI
+       MOVQ    $0, DX  // required as of Sierra; Issue 16570
        MOVL    $(0x2000000+116), AX
        SYSCALL
        CMPQ    AX, $0

It's at least harmless for me on OS X 10.11.

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/25400 mentions this issue.

@zchee
Copy link
Contributor Author

zchee commented 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
diff --git a/src/runtime/sys_darwin_386.s b/src/runtime/sys_darwin_386.s
index 83f4709..f86840e 100644
--- a/src/runtime/sys_darwin_386.s
+++ b/src/runtime/sys_darwin_386.s
@@ -199,6 +199,7 @@ systime:
    LEAL    12(SP), AX  // must be non-nil, unused
    MOVL    AX, 4(SP)
    MOVL    $0, 8(SP)   // time zone pointer
+   MOVQ    $0, DX  // required as of Sierra; Issue 16570
    MOVL    $116, AX
    INT $0x80
    CMPL    AX, $0
diff --git a/src/runtime/sys_darwin_amd64.s b/src/runtime/sys_darwin_amd64.s
index e4837ce..ea2cc06 100644
--- a/src/runtime/sys_darwin_amd64.s
+++ b/src/runtime/sys_darwin_amd64.s
@@ -157,6 +157,7 @@ systime:
    // Fall back to system call (usually first call in this thread).
    MOVQ    SP, DI
    MOVQ    $0, SI
+   MOVQ    $0, DX  // required as of Sierra; Issue 16570
    MOVL    $(0x2000000+116), AX
    SYSCALL
    CMPQ    AX, $0

first try. ./make.bash:

> ./make.bash
##### Building Go bootstrap tool.
cmd/dist

failed MSpanList_Insert 0x2cc698 0x59a007db3a2 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x28bdc8, 0x2cc698)
        /usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x28b5a0, 0x1, 0x10000000002, 0x3f279)
        /usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x292118, 0xc2081694b8)
        /usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x2c6000, 0x2, 0x808012000)
        /usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 1 [running]:
runtime.switchtoM()
        /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc208169330 sp=0xc208169328
runtime.mallocgc(0x8, 0x17ca80, 0xc200000001, 0x62c00)
        /usr/local/go/src/runtime/malloc.go:147 +0x1bb fp=0xc2081693e0 sp=0xc208169330
runtime.newobject(0x17ca80, 0x2d7a68)
        /usr/local/go/src/runtime/malloc.go:353 +0x49 fp=0xc208169408 sp=0xc2081693e0
runtime.convT2I(0x17ca80, 0x162160, 0x285030, 0xc208169490, 0x0, 0x0)
        /usr/local/go/src/runtime/iface.go:163 +0x130 fp=0xc208169450 sp=0xc208169408
syscall.Stat(0xc20800b140, 0x3e, 0xc208075dd0, 0x0, 0x0)
        /usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1224 +0xec fp=0xc2081694a8 sp=0xc208169450
os.Stat(0xc20800b140, 0x3e, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/os/file_unix.go:134 +0x75 fp=0xc2081694e8 sp=0xc2081694a8
os/exec.findExecutable(0xc20800b140, 0x3e, 0x0, 0x0)
        /usr/local/go/src/os/exec/lp_unix.go:19 +0x44 fp=0xc208169540 sp=0xc2081694e8
os/exec.LookPath(0x1a49f0, 0x3, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/os/exec/lp_unix.go:55 +0x49a fp=0xc208169638 sp=0xc208169540
os/exec.Command(0x1a49f0, 0x3, 0xc208169940, 0x3, 0x3, 0xc208034dc0)
        /usr/local/go/src/os/exec/exec.go:125 +0x2e1 fp=0xc2081696f0 sp=0xc208169638
main.run(0x7fff5fbff9a2, 0xd, 0x1, 0xc208169930, 0x4, 0x4, 0x0, 0x0)
        /usr/local/go/src/cmd/dist/util.go:86 +0x1fb fp=0xc208169808 sp=0xc2081696f0
main.findgoversion(0x0, 0x0)
        /usr/local/go/src/cmd/dist/build.go:305 +0x40a fp=0xc2081699d8 sp=0xc208169808
main.setup()
        /usr/local/go/src/cmd/dist/build.go:444 +0x1117 fp=0xc208169c50 sp=0xc2081699d8
main.cmdbootstrap()
        /usr/local/go/src/cmd/dist/build.go:1019 +0x37d fp=0xc208169d80 sp=0xc208169c50
main.xmain()
        /usr/local/go/src/cmd/dist/main.go:43 +0x240 fp=0xc208169e90 sp=0xc208169d80
main.main()
        /usr/local/go/src/cmd/dist/util.go:496 +0x51b fp=0xc208169f98 sp=0xc208169e90
runtime.main()
        /usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc208169fe0 sp=0xc208169f98
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208169fe8 sp=0xc208169fe0

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
/usr/local/go/src

second try ./make.bash:

> ./make.bash
##### Building Go bootstrap tool.
cmd/dist

##### Building Go toolchain using /usr/local/bootstrap/go/go1.4.3.
bootstrap/internal/sys
bootstrap/asm/internal/flags
bootstrap/internal/bio
bootstrap/compile/internal/big
bootstrap/internal/gcprog
bootstrap/internal/obj
bootstrap/internal/obj/arm
bootstrap/internal/obj/arm64
bootstrap/internal/obj/mips
bootstrap/internal/obj/ppc64
bootstrap/internal/obj/s390x
bootstrap/internal/obj/x86
bootstrap/asm/internal/lex
bootstrap/link/internal/ld
bootstrap/compile/internal/ssa
bootstrap/asm/internal/arch
failed MSpanList_Insert 0x251fb98 0x59abbab8ee9 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x6a1f50, 0x251fb98)
        /usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x6a16c0, 0x1, 0x10000000005, 0x791d9)
        /usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x6a8598, 0xc20825b098)
        /usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x2509000, 0x5, 0x808012000)
        /usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 14 [running]:
runtime.switchtoM()
        /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc20825af60 sp=0xc20825af58
runtime.mallocgc(0x40, 0x0, 0xc200000003, 0xc2082012c0)
        /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc20825b010 sp=0xc20825af60
runtime.rawstring(0x3f, 0x0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/runtime/string.go:195 +0x93 fp=0xc20825b040 sp=0xc20825b010
runtime.concatstrings(0xc20825b180, 0x2, 0x2, 0x0, 0x0)
        /usr/local/go/src/runtime/string.go:33 +0x156 fp=0xc20825b138 sp=0xc20825b040
runtime.concatstring2(0x473590, 0x4, 0xc20802ce40, 0x3b, 0x0, 0x0)
        /usr/local/go/src/runtime/string.go:44 +0x51 fp=0xc20825b180 sp=0xc20825b138
main.envForDir(0xc20802ce40, 0x3b, 0x0, 0x0, 0x0)
        /usr/local/go/src/cmd/go/main.go:408 +0xdf fp=0xc20825b210 sp=0xc20825b180
main.(*builder).runOut(0xc2080113b0, 0xc20802ce40, 0x3b, 0xc2080d4601, 0x1b, 0x0, 0x0, 0x0, 0xc20825b478, 0x1, ...)
        /usr/local/go/src/cmd/go/build.go:1428 +0x286 fp=0xc20825b398 sp=0xc20825b210
main.gcToolchain.gc(0xc2080113b0, 0xc2080cec00, 0xc2081dbe00, 0x60, 0xc2080b36c0, 0x64, 0xc2081fde80, 0x4, 0x4, 0xc20820df10, ...)
        /usr/local/go/src/cmd/go/build.go:1667 +0xf4c fp=0xc20825b628 sp=0xc20825b398
main.(*gcToolchain).gc(0x69a2d0, 0xc2080113b0, 0xc2080cec00, 0xc2081dbe00, 0x60, 0xc2080b36c0, 0x64, 0xc2081fde80, 0x4, 0x4, ...)
        <autogenerated>:3 +0x19c fp=0xc20825b6c8 sp=0xc20825b628
main.(*builder).build(0xc2080113b0, 0xc208035c70, 0x0, 0x0)
        /usr/local/go/src/cmd/go/build.go:944 +0x2828 fp=0xc20825be38 sp=0xc20825b6c8
main.func·005(0xc208035c70)
        /usr/local/go/src/cmd/go/build.go:702 +0x3b9 fp=0xc20825bef8 sp=0xc20825be38
main.func·006()
        /usr/local/go/src/cmd/go/build.go:759 +0x15a fp=0xc20825bfe0 sp=0xc20825bef8
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20825bfe8 sp=0xc20825bfe0
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 1 [semacquire]:
sync.(*WaitGroup).Wait(0xc2080f9260)
        /usr/local/go/src/sync/waitgroup.go:132 +0x169
main.(*builder).do(0xc2080113b0, 0xc20819e820)
        /usr/local/go/src/cmd/go/build.go:768 +0x5bf
main.runInstall(0x68c9a0, 0xc20800a040, 0x1, 0x1)
        /usr/local/go/src/cmd/go/build.go:351 +0x392
main.main()
        /usr/local/go/src/cmd/go/main.go:163 +0x608

goroutine 5 [syscall]:
os/signal.loop()
        /usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
        /usr/local/go/src/os/signal/signal_unix.go:27 +0x35

goroutine 7 [select]:
main.func·006()
        /usr/local/go/src/cmd/go/build.go:749 +0x1d3
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 8 [syscall]:
syscall.Syscall6(0x7, 0x83b8, 0xc20824902c, 0x0, 0xc20819d560, 0x0, 0x0, 0xc20809c6c0, 0x6fd21, 0xc20809c6e0)
        /usr/local/go/src/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x83b8, 0xc20824902c, 0x0, 0xc20819d560, 0x90, 0x0, 0x0)
        /usr/local/go/src/syscall/zsyscall_darwin_amd64.go:32 +0x79
syscall.Wait4(0x83b8, 0xc208249074, 0x0, 0xc20819d560, 0x0, 0x0, 0x0)
        /usr/local/go/src/syscall/syscall_bsd.go:162 +0x60
os.(*Process).wait(0xc2081ce9a0, 0x0, 0x0, 0x0)
        /usr/local/go/src/os/exec_unix.go:22 +0x103
os.(*Process).Wait(0xc2081ce9a0, 0xc2081d1180, 0x0, 0x0)
        /usr/local/go/src/os/doc.go:45 +0x3a
os/exec.(*Cmd).Wait(0xc2081e0280, 0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:364 +0x23c
os/exec.(*Cmd).Run(0xc2081e0280, 0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:246 +0x71
main.(*builder).runOut(0xc2080113b0, 0xc208109b40, 0x3a, 0xc208100a41, 0x1a, 0x0, 0x0, 0x0, 0xc208249478, 0x1, ...)
        /usr/local/go/src/cmd/go/build.go:1429 +0x349
main.gcToolchain.gc(0xc2080113b0, 0xc2081f8400, 0xc2081591a0, 0x5f, 0xc2081918f0, 0x63, 0xc2081fcc80, 0x4, 0x4, 0xc20810f080, ...)
        /usr/local/go/src/cmd/go/build.go:1667 +0xf4c
main.(*gcToolchain).gc(0x69a2d0, 0xc2080113b0, 0xc2081f8400, 0xc2081591a0, 0x5f, 0xc2081918f0, 0x63, 0xc2081fcc80, 0x4, 0x4, ...)
        <autogenerated>:3 +0x19c
main.(*builder).build(0xc2080113b0, 0xc20817f040, 0x0, 0x0)
        /usr/local/go/src/cmd/go/build.go:944 +0x2828
main.func·005(0xc20817f040)
        /usr/local/go/src/cmd/go/build.go:702 +0x3b9
main.func·006()
        /usr/local/go/src/cmd/go/build.go:759 +0x15a
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 9 [select]:
main.func·006()
        /usr/local/go/src/cmd/go/build.go:749 +0x1d3
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 10 [select]:
main.func·006()
        /usr/local/go/src/cmd/go/build.go:749 +0x1d3
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 11 [select]:
main.func·006()
        /usr/local/go/src/cmd/go/build.go:749 +0x1d3
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 12 [select]:
main.func·006()
        /usr/local/go/src/cmd/go/build.go:749 +0x1d3
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 13 [syscall]:
syscall.Syscall6(0x7, 0x83bd, 0xc20825d02c, 0x0, 0xc20819db90, 0x0, 0x0, 0xc20809cea0, 0x6fd21, 0xc20809cec0)
        /usr/local/go/src/syscall/asm_darwin_amd64.s:44 +0x5
syscall.wait4(0x83bd, 0xc20825d02c, 0x0, 0xc20819db90, 0x90, 0x0, 0x0)
        /usr/local/go/src/syscall/zsyscall_darwin_amd64.go:32 +0x79
syscall.Wait4(0x83bd, 0xc20825d074, 0x0, 0xc20819db90, 0x0, 0x0, 0x0)
        /usr/local/go/src/syscall/syscall_bsd.go:162 +0x60
os.(*Process).wait(0xc2081cf000, 0x0, 0x0, 0x0)
        /usr/local/go/src/os/exec_unix.go:22 +0x103
os.(*Process).Wait(0xc2081cf000, 0xc2081ff680, 0x0, 0x0)
        /usr/local/go/src/os/doc.go:45 +0x3a
os/exec.(*Cmd).Wait(0xc2081e0640, 0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:364 +0x23c
os/exec.(*Cmd).Run(0xc2081e0640, 0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:246 +0x71
main.(*builder).runOut(0xc2080113b0, 0xc2080fbe80, 0x3e, 0xc2080f8881, 0x1e, 0x0, 0x0, 0x0, 0xc20825d478, 0x1, ...)
        /usr/local/go/src/cmd/go/build.go:1429 +0x349
main.gcToolchain.gc(0xc2080113b0, 0xc208128400, 0xc20806ce70, 0x63, 0xc20806cd90, 0x67, 0xc2081fd740, 0x4, 0x4, 0xc2081f2a80, ...)
        /usr/local/go/src/cmd/go/build.go:1667 +0xf4c
main.(*gcToolchain).gc(0x69a2d0, 0xc2080113b0, 0xc208128400, 0xc20806ce70, 0x63, 0xc20806cd90, 0x67, 0xc2081fd740, 0x4, 0x4, ...)
        <autogenerated>:3 +0x19c
main.(*builder).build(0xc2080113b0, 0xc2081891e0, 0x0, 0x0)
        /usr/local/go/src/cmd/go/build.go:944 +0x2828
main.func·005(0xc2081891e0)
        /usr/local/go/src/cmd/go/build.go:702 +0x3b9
main.func·006()
        /usr/local/go/src/cmd/go/build.go:759 +0x15a
created by main.(*builder).do
        /usr/local/go/src/cmd/go/build.go:765 +0x591

goroutine 29 [syscall]:
syscall.Syscall(0x3, 0x4, 0xc208140600, 0x200, 0x0, 0x0, 0x0)
        /usr/local/go/src/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x4, 0xc208140600, 0x200, 0x200, 0x0, 0x0, 0x0)
        /usr/local/go/src/syscall/zsyscall_darwin_amd64.go:970 +0x6e
syscall.Read(0x4, 0xc208140600, 0x200, 0x200, 0xc20801cda0, 0x0, 0x0)
        /usr/local/go/src/syscall/syscall_unix.go:136 +0x58
os.(*File).read(0xc20802efc0, 0xc208140600, 0x200, 0x200, 0xc208140600, 0x0, 0x0)
        /usr/local/go/src/os/file_unix.go:191 +0x86
os.(*File).Read(0xc20802efc0, 0xc208140600, 0x200, 0x200, 0x1, 0x0, 0x0)
        /usr/local/go/src/os/file.go:95 +0x91
bytes.(*Buffer).ReadFrom(0xc20820d570, 0x251b8e0, 0xc20802efc0, 0x0, 0x0, 0x0)
        /usr/local/go/src/bytes/buffer.go:169 +0x25a
io.Copy(0x25218e0, 0xc20820d570, 0x251b8e0, 0xc20802efc0, 0x0, 0x0, 0x0)
        /usr/local/go/src/io/io.go:358 +0x13d
os/exec.func·003(0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:221 +0x7d
os/exec.func·004(0xc2081ceb60)
        /usr/local/go/src/os/exec/exec.go:328 +0x2d
created by os/exec.(*Cmd).Start
        /usr/local/go/src/os/exec/exec.go:329 +0xb6d

goroutine 28 [syscall]:
syscall.Syscall(0x3, 0x8, 0xc208140200, 0x200, 0x0, 0x0, 0x0)
        /usr/local/go/src/syscall/asm_darwin_amd64.s:20 +0x5
syscall.read(0x8, 0xc208140200, 0x200, 0x200, 0x0, 0x0, 0x0)
        /usr/local/go/src/syscall/zsyscall_darwin_amd64.go:970 +0x6e
syscall.Read(0x8, 0xc208140200, 0x200, 0x200, 0xc20801bda0, 0x0, 0x0)
        /usr/local/go/src/syscall/syscall_unix.go:136 +0x58
os.(*File).read(0xc20802ef80, 0xc208140200, 0x200, 0x200, 0xc208140200, 0x0, 0x0)
        /usr/local/go/src/os/file_unix.go:191 +0x86
os.(*File).Read(0xc20802ef80, 0xc208140200, 0x200, 0x200, 0x1, 0x0, 0x0)
        /usr/local/go/src/os/file.go:95 +0x91
bytes.(*Buffer).ReadFrom(0xc20820cc40, 0x251b8e0, 0xc20802ef80, 0x0, 0x0, 0x0)
        /usr/local/go/src/bytes/buffer.go:169 +0x25a
io.Copy(0x25218e0, 0xc20820cc40, 0x251b8e0, 0xc20802ef80, 0x0, 0x0, 0x0)
        /usr/local/go/src/io/io.go:358 +0x13d
os/exec.func·003(0x0, 0x0)
        /usr/local/go/src/os/exec/exec.go:221 +0x7d
os/exec.func·004(0xc2081ce540)
        /usr/local/go/src/os/exec/exec.go:328 +0x2d
created by os/exec.(*Cmd).Start
        /usr/local/go/src/os/exec/exec.go:329 +0xb6d
go tool dist: FAILED: /usr/local/bootstrap/go/go1.4.3/bin/go install -gcflags=-l -v bootstrap/...: exit status 2

third try. ./make.bash:

> ./make.bash                                                                                                                                        Docker: native (--)(master)
##### Building Go bootstrap tool.
cmd/dist

##### Building Go toolchain using /usr/local/bootstrap/go/go1.4.3.
bootstrap/internal/sys
bootstrap/asm/internal/flags
bootstrap/internal/bio
bootstrap/compile/internal/big
bootstrap/internal/gcprog
bootstrap/internal/obj
bootstrap/internal/obj/arm
bootstrap/internal/obj/arm64
bootstrap/internal/obj/mips
bootstrap/internal/obj/ppc64
bootstrap/internal/obj/s390x
bootstrap/internal/obj/x86
bootstrap/asm/internal/lex
bootstrap/link/internal/ld
bootstrap/compile/internal/ssa
bootstrap/asm/internal/arch
bootstrap/asm/internal/asm
bootstrap/asm
bootstrap/link/internal/amd64
bootstrap/link/internal/arm
bootstrap/link/internal/arm64
bootstrap/link/internal/mips64
bootstrap/link/internal/ppc64
bootstrap/link/internal/s390x
bootstrap/link/internal/x86
bootstrap/link
bootstrap/compile/internal/gc
bootstrap/compile/internal/amd64
bootstrap/compile/internal/arm
bootstrap/compile/internal/arm64
bootstrap/compile/internal/mips64
bootstrap/compile/internal/ppc64
bootstrap/compile/internal/s390x
bootstrap/compile/internal/x86
bootstrap/compile

##### Building go_bootstrap for host, darwin/amd64.
runtime/internal/sys
runtime/internal/atomic
runtime
failed MSpanList_Insert 0xb27d28 0x5bfd157f2a4 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x8803c0, 0xb27d28)
        /usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x87e6e0, 0x1, 0x10000000004, 0xd589)
        /usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x885498, 0x9433b8)
        /usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x90e000, 0x4, 0x9433b8)
        /usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 1 [running]:
runtime.switchtoM()
        /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc20a32b5f0 sp=0xc20a32b5e8
runtime.mallocgc(0x30, 0x4bfaa0, 0xc700000000000001, 0xc20b329f80)
        /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc20a32b6a0 sp=0xc20a32b5f0
runtime.newarray(0x4bfaa0, 0x5, 0x2043dd)
        /usr/local/go/src/runtime/malloc.go:365 +0xc1 fp=0xc20a32b6d8 sp=0xc20a32b6a0
runtime.makeslice(0x578260, 0x1, 0x5, 0x0, 0x0, 0x0)
        /usr/local/go/src/runtime/slice.go:32 +0x15c fp=0xc20a32b720 sp=0xc20a32b6d8
bootstrap/compile/internal/big.nat.make(0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0)
        /usr/local/go/src/cmd/compile/internal/big/nat.go:54 +0x8a fp=0xc20a32b758 sp=0xc20a32b720
bootstrap/compile/internal/big.nat.setWord(0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0)
        /usr/local/go/src/cmd/compile/internal/big/nat.go:61 +0x91 fp=0xc20a32b798 sp=0xc20a32b758
bootstrap/compile/internal/big.nat.setUint64(0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0)
        /usr/local/go/src/cmd/compile/internal/big/nat.go:69 +0x66 fp=0xc20a32b7d8 sp=0xc20a32b798
bootstrap/compile/internal/big.(*Int).SetInt64(0xc20b329fb0, 0x8, 0xc20b329fb0)
        /usr/local/go/src/cmd/compile/internal/big/int.go:48 +0x61 fp=0xc20a32b838 sp=0xc20a32b7d8
bootstrap/compile/internal/gc.(*Mpint).SetInt64(0xc20b329fb0, 0x8)
        /usr/local/go/src/cmd/compile/internal/gc/mpint.go:278 +0x39 fp=0xc20a32b858 sp=0xc20a32b838
bootstrap/compile/internal/gc.Nodconst(0xc208deafc0, 0xc20805e190, 0x8)
        /usr/local/go/src/cmd/compile/internal/gc/subr.go:437 +0x118 fp=0xc20a32b8e0 sp=0xc20a32b858
bootstrap/compile/internal/gc.compile(0xc208680000)
        /usr/local/go/src/cmd/compile/internal/gc/pgen.go:475 +0x10b3 fp=0xc20a32bb30 sp=0xc20a32b8e0
bootstrap/compile/internal/gc.funccompile(0xc208680000)
        /usr/local/go/src/cmd/compile/internal/gc/dcl.go:1287 +0x1be fp=0xc20a32bba8 sp=0xc20a32bb30
bootstrap/compile/internal/gc.Main()
        /usr/local/go/src/cmd/compile/internal/gc/main.go:467 +0x27fe fp=0xc20a32be80 sp=0xc20a32bba8
bootstrap/compile/internal/amd64.Main()
        /usr/local/go/src/cmd/compile/internal/amd64/galign.go:93 +0x668 fp=0xc20a32bec0 sp=0xc20a32be80
main.main()
        /usr/local/go/src/cmd/compile/main.go:33 +0x17b fp=0xc20a32bf98 sp=0xc20a32bec0
runtime.main()
        /usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0xc20a32bfe0 sp=0xc20a32bf98
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20a32bfe8 sp=0xc20a32bfe0
failed MSpanList_Insert 0x2df970 0x5bfd1c68c71 0x0
fatal error: MSpanList_Insert

runtime stack:
runtime.MSpanList_Insert(0x28e738, 0x2df970)
        /usr/local/go/src/runtime/mheap.c:692 +0x8f
runtime.MHeap_Alloc(0x28b5a0, 0x1, 0x1000000002b, 0x3f279)
        /usr/local/go/src/runtime/mheap.c:240 +0x66
runtime.MCentral_CacheSpan(0x294f38, 0x1)
        /usr/local/go/src/runtime/mcentral.c:85 +0x167
runtime.MCache_Refill(0x2c6000, 0xc20000002b, 0xc208012000)
        /usr/local/go/src/runtime/mcache.c:90 +0xa0

goroutine 59 [running]:
runtime.switchtoM()
        /usr/local/go/src/runtime/asm_amd64.s:198 fp=0xc2081675f0 sp=0xc2081675e8
runtime.mallocgc(0x1000, 0x13b120, 0x1, 0x284f88)
        /usr/local/go/src/runtime/malloc.go:178 +0x849 fp=0xc2081676a0 sp=0xc2081675f0
runtime.newarray(0x13b120, 0xd7b, 0x18e3c0)
        /usr/local/go/src/runtime/malloc.go:365 +0xc1 fp=0xc2081676d8 sp=0xc2081676a0
runtime.makeslice(0x133420, 0xd7b, 0xd7b, 0x0, 0x0, 0x0)
        /usr/local/go/src/runtime/slice.go:32 +0x15c fp=0xc208167720 sp=0xc2081676d8
strings.Join(0xc209895200, 0x5e, 0x60, 0x19cd70, 0x1, 0x0, 0x0)
        /usr/local/go/src/strings/strings.go:394 +0xfd fp=0xc2081677e8 sp=0xc208167720
main.run(0xc20801fae0, 0x19, 0x3, 0xc209895200, 0x5e, 0x60, 0x0, 0x0)
        /usr/local/go/src/cmd/dist/util.go:116 +0x4f2 fp=0xc208167900 sp=0xc2081677e8
main.install(0x1a7410, 0x7)
        /usr/local/go/src/cmd/dist/build.go:703 +0x2f71 fp=0xc208167fd0 sp=0xc208167900
runtime.goexit()
        /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc208167fd8 sp=0xc208167fd0
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 1 [chan receive]:
main.cmdbootstrap()
        /usr/local/go/src/cmd/dist/build.go:1065 +0x828
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

goroutine 14 [chan receive]:
main.install(0x1a3030, 0x5)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 15 [chan receive]:
main.install(0x1a3130, 0x5)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 16 [chan receive]:
main.install(0x1a3490, 0x6)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 17 [chan receive]:
main.install(0x1afdd0, 0xe)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 18 [chan receive]:
main.install(0x1afdf0, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 19 [chan receive]:
main.install(0x1afe70, 0xe)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 20 [chan receive]:
main.install(0x1a3590, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 21 [chan receive]:
main.install(0x1a3610, 0x6)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 22 [chan receive]:
main.install(0x1afff0, 0xb)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 23 [chan receive]:
main.install(0x1b0170, 0xb)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 24 [chan receive]:
main.install(0x1b0190, 0x9)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 25 [chan receive]:
main.install(0x1b01b0, 0xb)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 26 [chan receive]:
main.install(0x1b04f0, 0x8)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 27 [chan receive]:
main.install(0x1b0510, 0xf)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 28 [chan receive]:
main.install(0x1b0530, 0xf)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 29 [chan receive]:
main.install(0x1b0550, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 30 [chan receive]:
main.install(0x1a3dd0, 0x6)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 31 [chan receive]:
main.install(0x1a4190, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 32 [chan receive]:
main.install(0x1a4210, 0x3)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 33 [chan receive]:
main.install(0x1a4a30, 0x6)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 34 [chan receive]:
main.install(0x1b16d0, 0x8)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 35 [chan receive]:
main.install(0x1a4a50, 0x6)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 36 [chan receive]:
main.install(0x1b16f0, 0x9)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 37 [chan receive]:
main.install(0x1b1710, 0xa)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 38 [chan receive]:
main.install(0x1b1730, 0x8)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 39 [chan receive]:
main.install(0x1a4dd0, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 40 [chan receive]:
main.install(0x1b18f0, 0xc)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 41 [chan receive]:
main.install(0x1b1d10, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 42 [chan receive]:
main.install(0x1c1c90, 0x15)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 43 [chan receive]:
main.install(0x1cd1d0, 0x18)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 44 [chan receive]:
main.install(0x1d4cd0, 0x21)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 45 [chan receive]:
main.install(0x1cd210, 0x1f)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 46 [chan receive]:
main.install(0x1a5330, 0x2)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 47 [chan receive]:
main.install(0x1b1ef0, 0x9)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 48 [chan receive]:
main.install(0x1a57d0, 0x3)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 49 [chan receive]:
main.install(0x1a5a30, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 50 [chan receive]:
main.install(0x1a5fd0, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 51 [chan receive]:
main.install(0x1a65b0, 0x2)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 52 [chan receive]:
main.install(0x1a6610, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 53 [chan receive]:
main.install(0x1b32f0, 0x9)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 54 [chan receive]:
main.install(0x1a6890, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 55 [chan receive]:
main.install(0x1b35f0, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 56 [chan receive]:
main.install(0x1a70d0, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 57 [chan receive]:
main.install(0x1a70f0, 0x6)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 58 [chan receive]:
main.install(0x1b3fd0, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 62 [chan receive]:
main.install(0x1a78d0, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 63 [chan receive]:
main.install(0x1a7c30, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 64 [chan receive]:
main.install(0x1a7c70, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 65 [chan receive]:
main.install(0x1a7d10, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 66 [chan receive]:
main.install(0x1b5610, 0xb)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 67 [chan receive]:
main.install(0x1a7d70, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 68 [chan receive]:
main.install(0x1b5b90, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 69 [chan receive]:
main.install(0x1c57d0, 0x13)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 70 [chan receive]:
main.install(0x1a7f50, 0x4)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 71 [chan receive]:
main.install(0x1a82d0, 0x7)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 72 [chan receive]:
main.install(0x1b6070, 0xd)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

goroutine 73 [chan receive]:
main.install(0x1b6090, 0xc)
        /usr/local/go/src/cmd/dist/build.go:512 +0x205
created by main.cmdbootstrap
        /usr/local/go/src/cmd/dist/build.go:1063 +0x7a4

@bradfitz
Copy link
Contributor

bradfitz commented Aug 2, 2016

@zchee, no, my fault probably. We'll take a look tomorrow. Thanks for the report and for trying that patch.

@zchee
Copy link
Contributor Author

zchee commented 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
Copy link

sekimura commented 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
Copy link
Contributor Author

zchee commented 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
Copy link
Contributor Author

zchee commented 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.

  • Beta3 (16A254g): __gettimeofday:
libsystem_kernel.dylib`__gettimeofday:
libsystem_kernel.dylib[0x195e1] <+0>:  movl   $0x2000074, %eax          ; imm = 0x2000074
libsystem_kernel.dylib[0x195e6] <+5>:  movq   %rcx, %r10
libsystem_kernel.dylib[0x195e9] <+8>:  syscall
libsystem_kernel.dylib[0x195eb] <+10>: jae    0x195f5                   ; <+20>
libsystem_kernel.dylib[0x195ed] <+12>: movq   %rax, %rdi
libsystem_kernel.dylib[0x195f0] <+15>: jmp    0x12d8f                   ; cerror_nocancel
libsystem_kernel.dylib[0x195f5] <+20>: cmpq   $0x0, %rax
libsystem_kernel.dylib[0x195f9] <+24>: je     0x19603                   ; <+34>
libsystem_kernel.dylib[0x195fb] <+26>: movq   %rax, (%rdi)
libsystem_kernel.dylib[0x195fe] <+29>: movl   %edx, 0x8(%rdi)
libsystem_kernel.dylib[0x19601] <+32>: xorl   %eax, %eax
libsystem_kernel.dylib[0x19603] <+34>: retq
  • Beta4 (16A270f): __gettimeofday:
libsystem_kernel.dylib`__gettimeofday:
libsystem_kernel.dylib[0x195d9] <+0>:  movq   $0x0, %rdx
libsystem_kernel.dylib[0x195e0] <+7>:  movl   $0x2000074, %eax          ; imm = 0x2000074
libsystem_kernel.dylib[0x195e5] <+12>: movq   %rcx, %r10
libsystem_kernel.dylib[0x195e8] <+15>: syscall
libsystem_kernel.dylib[0x195ea] <+17>: jae    0x195f4                   ; <+27>
libsystem_kernel.dylib[0x195ec] <+19>: movq   %rax, %rdi
libsystem_kernel.dylib[0x195ef] <+22>: jmp    0x12d6f                   ; cerror_nocancel
libsystem_kernel.dylib[0x195f4] <+27>: cmpq   $0x0, %rax
libsystem_kernel.dylib[0x195f8] <+31>: je     0x19602                   ; <+41>
libsystem_kernel.dylib[0x195fa] <+33>: movq   %rax, (%rdi)
libsystem_kernel.dylib[0x195fd] <+36>: movl   %edx, 0x8(%rdi)
libsystem_kernel.dylib[0x19600] <+39>: xorl   %eax, %eax
libsystem_kernel.dylib[0x19602] <+41>: retq
libsystem_kernel.dylib[0x19603] <+42>: nop
  • Beta4 (16A270f): __gettimeofday_with_mach:
libsystem_kernel.dylib`__gettimeofday_with_mach:
libsystem_kernel.dylib[0x195c4] <+0>:  movl   $0x2000074, %eax          ; imm = 0x2000074
libsystem_kernel.dylib[0x195c9] <+5>:  movq   %rcx, %r10
libsystem_kernel.dylib[0x195cc] <+8>:  syscall
libsystem_kernel.dylib[0x195ce] <+10>: jae    0x195d8                   ; <+20>
libsystem_kernel.dylib[0x195d0] <+12>: movq   %rax, %rdi
libsystem_kernel.dylib[0x195d3] <+15>: jmp    0x12d94                   ; cerror
libsystem_kernel.dylib[0x195d8] <+20>: retq

@crawshaw
Copy link
Member

crawshaw commented 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:

  1. Apply the patch on the other machine.
  2. Build a Go installation.
  3. Copy the Go installation to the machine with Beta4.
  4. Use the new copy of Go as GOROOT_BOOTSTRAP.

If you don't have another machine I could build you a patched Go release and put it somewhere for you to download.

@zchee
Copy link
Contributor Author

zchee commented Aug 2, 2016

@crawshaw Thanks for the advice! I understood your intentions regarding that.
Yes, I was wonder why that was included the c file to the error log. My doubt was resolved.

If you don't have another machine I could build you a patched Go release and put it somewhere for you to download.

Thanks.
I don't have another machine but I can downgrade to Beta3, and can build go binary on this kernel version.
I will try to you proposed way.

As a result, If the workaround is successful, does it mean that We must use the patched bootstrap go toolchain on the macOS?
like this issue became a reality? #16352 (comment)

Sorry, it's off topic. Can I ask a question?

I didn't understand the reason that why to use the 1.4 version to bootstrap toolchain than 1.6 stable or etc.
I'm gopher newbie, so I don't know 1.4 eras.
but I know that is the last version of using C, and still the fastest.

So simply, shorten the time to build the latest Golang? or Will it also affect the latest(devel) go binary of the performance if we use it?

@andlabs
Copy link
Contributor

andlabs commented Aug 2, 2016

Go used to be written in C, so it could be built from source on a system that didn't have Go already on it. Starting with Go 1.5, this was changed; now Go is written in Go, and you need a Go installation to build Go from source. So if you want to build the latest version of Go entirely from source, you have two options:

  • build Go 1.4 from source in $HOME/go1.4, which only requires a C compiler (such as the Xcode command-line tools), or
  • install a Go binary package and use that as your bootstrap environment (this is what the $GOROOT_BOOTSTRAP variable is for)

@zchee
Copy link
Contributor Author

zchee commented Aug 2, 2016

@andlabs Thanks.
ah, I know that background history. Yes, current Go sources written in Go.

But why gophers use the 1.4(.3) to bootstrap? Go's default $GOROOT_BOOTSTRAP are $HOME/go1.4, many third-party Docker image also uses 1.4 to bootstrap.
It would be possible to build even in the 1.5 and 1.6...?

@andlabs
Copy link
Contributor

andlabs commented Aug 2, 2016

It would be, but you would need to use a binary distribution, such as the downloads on golang.org. If Docker comes with 1.5 by default, you can use that by just setting the env var.

@bradfitz
Copy link
Contributor

bradfitz commented Aug 2, 2016

Let's move unrelated discussion to the mailing list. See https://golang.org/wiki/Questions

@definitelycarter
Copy link

Wanted to add this also happens with 1.6.3

@mattatcha
Copy link

I just tried building on beta 4 with the patch above and it fails at the following test.

$ GOROOT_BOOTSTRAP=/Users/matt/go-darwin-amd64-bootstrap ./all.bash
...
--- FAIL: TestNetpollDeadlock (60.48s)
    crash_test.go:105: testprognet NetpollDeadlock exit status: exit status 2
    crash_test.go:407: output does not start with "done\n":
        dialing
        SIGQUIT: quit
        PC=0x597db m=0

        goroutine 0 [idle]:
        runtime.mach_semaphore_wait(0xc400000f03, 0x0, 0x18f7c0, 0xf0cb, 0x7fff5fbff5d0, 0x18f240, 0x7fff5fbff5f0, 0x4ff93, 0xffffffffffffffff, 0xc420032c00, ...)
            /Users/matt/go/src/runtime/sys_darwin_amd64.s:418 +0xb
        runtime.semasleep1(0xffffffffffffffff, 0xc420032c00)
            /Users/matt/go/src/runtime/os_darwin.go:435 +0x4b
        runtime.semasleep.func1()
            /Users/matt/go/src/runtime/os_darwin.go:451 +0x33
        runtime.systemstack(0x7fff5fbff618)
            /Users/matt/go/src/runtime/asm_amd64.s:314 +0xab
        runtime.semasleep(0xffffffffffffffff, 0x0)
            /Users/matt/go/src/runtime/os_darwin.go:452 +0x44
        runtime.notesleep(0x18f8d0)
            /Users/matt/go/src/runtime/lock_sema.go:166 +0x9f
        runtime.stoplockedm()
            /Users/matt/go/src/runtime/proc.go:1740 +0x8a
        runtime.schedule()
            /Users/matt/go/src/runtime/proc.go:2077 +0x2fa
        runtime.park_m(0xc4200001a0)
            /Users/matt/go/src/runtime/proc.go:2182 +0x123
        runtime.mcall(0x7fff5fbff760)
            /Users/matt/go/src/runtime/asm_amd64.s:240 +0x5b

        goroutine 1 [IO wait, locked to thread]:
        net.runtime_pollWait(0x268f00, 0x77, 0xc420051501)
            /Users/matt/go/src/runtime/netpoll.go:160 +0x59
        net.(*pollDesc).wait(0xc42005c1b0, 0x77, 0x0, 0x0)
            /Users/matt/go/src/net/fd_poll_runtime.go:73 +0x38
        net.(*pollDesc).waitWrite(0xc42005c1b0, 0xc420010320, 0x1891e0)
            /Users/matt/go/src/net/fd_poll_runtime.go:82 +0x34
        net.(*netFD).connect(0xc42005c150, 0x1891e0, 0xc420010320, 0x0, 0x0, 0x188660, 0xc420012380, 0x0, 0x0)
            /Users/matt/go/src/net/fd_unix.go:152 +0x26d
        net.(*netFD).dial(0xc42005c150, 0x1891e0, 0xc420010320, 0x189340, 0x0, 0x189340, 0xc4200165d0, 0x10, 0x10)
            /Users/matt/go/src/net/sock_posix.go:137 +0x137
        net.socket(0x1891e0, 0xc420010320, 0x10db07, 0x3, 0x1e, 0x1, 0x0, 0x0, 0x189340, 0x0, ...)
            /Users/matt/go/src/net/sock_posix.go:89 +0x209
        net.internetSocket(0x1891e0, 0xc420010320, 0x10db07, 0x3, 0x189340, 0x0, 0x189340, 0xc4200165d0, 0x1, 0x0, ...)
            /Users/matt/go/src/net/ipsock_posix.go:158 +0x129
        net.doDialTCP(0x1891e0, 0xc420010320, 0x10db07, 0x3, 0x0, 0xc4200165d0, 0xecd20, 0x1a95b0, 0xc420051a30)
            /Users/matt/go/src/net/tcpsock_posix.go:58 +0xb9
        net.dialTCP(0x1891e0, 0xc420010320, 0x10db07, 0x3, 0x0, 0xc4200165d0, 0x0, 0x1885a0, 0xc42000c340)
            /Users/matt/go/src/net/tcpsock_posix.go:54 +0xe4
        net.dialSingle(0x1891e0, 0xc420010320, 0xc42005c070, 0x188be0, 0xc4200165d0, 0x0, 0x0, 0x0, 0x0)
            /Users/matt/go/src/net/dial.go:501 +0x479
        net.dialSerial(0x1891e0, 0xc420010320, 0xc42005c070, 0xc42000c300, 0x2, 0x2, 0x0, 0x0, 0x0, 0x0)
            /Users/matt/go/src/net/dial.go:469 +0x223
        net.(*Dialer).DialContext(0xc420051da0, 0x1891e0, 0xc420010320, 0x10db07, 0x3, 0x10f0fd, 0xf, 0x0, 0x0, 0x0, ...)
            /Users/matt/go/src/net/dial.go:351 +0x657
        net.(*Dialer).Dial(0xc420051da0, 0x10db07, 0x3, 0x10f0fd, 0xf, 0x8, 0xc4200180c0, 0x0, 0x0)
            /Users/matt/go/src/net/dial.go:282 +0x75
        net.Dial(0x10db07, 0x3, 0x10f0fd, 0xf, 0x0, 0x0, 0x18f7c0, 0x0)
            /Users/matt/go/src/net/dial.go:261 +0x90
        main.NetpollDeadlockInit()
            /Users/matt/go/src/runtime/testdata/testprognet/net.go:19 +0xdb
        main.registerInit(0x10f076, 0xf, 0x11b8f8)
            /Users/matt/go/src/runtime/testdata/testprognet/main.go:20 +0x7f
        main.init.1()
            /Users/matt/go/src/runtime/testdata/testprognet/net.go:13 +0x42
        main.init()
            /Users/matt/go/src/runtime/testdata/testprognet/signal.go:27 +0xa3

        goroutine 17 [syscall, locked to thread]:
        runtime.goexit()
            /Users/matt/go/src/runtime/asm_amd64.s:2086 +0x1

        goroutine 5 [syscall]:
        os/signal.signal_recv(0x0)
            /Users/matt/go/src/runtime/sigqueue.go:116 +0x157
        os/signal.loop()
            /Users/matt/go/src/os/signal/signal_unix.go:22 +0x22
        created by os/signal.init.1
            /Users/matt/go/src/os/signal/signal_unix.go:28 +0x41

        rax    0xe
        rbx    0x18f7c0
        rcx    0x7fff5fbff590
        rdx    0x7fff5fbff618
        rdi    0xf03
        rsi    0x18f7c0
        rbp    0x7fff5fbff5c8
        rsp    0x7fff5fbff590
        r8     0x0
        r9     0x0
        r10    0x0
        r11    0x286
        r12    0x40
        r13    0x380
        r14    0xf
        r15    0x3
        rip    0x597db
        rflags 0x286
        cs     0x7
        fs     0x0
        gs     0x0
FAIL
FAIL    runtime 70.881s

go-darwin-amd64-bootstrap came from a linux machine and was built with the following command. (with patch applied)

$ GOROOT_BOOTSTRAP=/usr/lib/go GOOS=darwin GOARCH=amd64 ./bootstrap.bash

@bradfitz
Copy link
Contributor

bradfitz commented Aug 2, 2016

@definitelycarter, yes, it should happen with all previous Go releases. See #16352 also.

@bradfitz
Copy link
Contributor

bradfitz commented Aug 2, 2016

@MattAitchison, interesting. Does that test fail consistently?

@mattatcha
Copy link

@bradfitz Yes it does.

@geoff-nixon
Copy link

geoff-nixon commented Aug 2, 2016

I can confirm. I cannot bootstrap on 10.12b4 using any binary distribution. Looks like https://go-review.googlesource.com/#/c/24967 is re-emerging. I don't understand what Apple's trying to do here — basically, since FOREVER, gettimeofday() was the only real way to get true monotonic time on Darwin (there's no clock_gettime()).

Is there a better fix now in place? Or... what?

@mattatcha
Copy link

@geoff-nixon
Copy link

I should mention I've tried bootstrapping from every binary release from 1.4.2 to 1.7rc4.

gopherbot pushed a commit that referenced this issue Oct 23, 2016
This is a cherry-pick of https://go-review.googlesource.com/25400
to the release-branch-go1.4

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes #16570

Change-Id: I714325a7749a145d23cf03251db38196ac9c481a
Reviewed-on: https://go-review.googlesource.com/31750
Reviewed-by: Brad Fitzpatrick <[email protected]>
BramGruneir pushed a commit to BramGruneir/go that referenced this issue Oct 25, 2016
macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes golang#16570

Change-Id: I9f537e552682045325cdbb68b7d0b4ddafade14a
Reviewed-on: https://go-review.googlesource.com/25400
Reviewed-by: David Crawshaw <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Quentin Smith <[email protected]>
Run-TryBot: Brad Fitzpatrick <[email protected]>
Reviewed-by: Austin Clements <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
@geofffranks
Copy link

@bradfitz I'm running into these issues with a bunch of golang binaries that have been built against go1.5/1.6. I saw a note about fixes being backported to 1.4 (but not released yet?). Are there similar plans to backport fixes to 1.6.x and 1.5.x? If so, any idea when to the expect official releases?

Specifically, I tried building via gox on golang1.6.3 (which claimed sierra compatibility on https://golang.org/doc/devel/release.html) using a linux container, am still getting crashes. Homebrew won't allow me to install 1.6.3 on my sierra mac to test non-gox, due to compatibility issues.

@nigeltao
Copy link
Contributor

@geofffranks I don't think they'll be backported to 1.6.x and 1.5.x. See #17234 (and #16352).

@geofffranks
Copy link

I'm curious why the backport to 1.4 (but not other also unsupported golang versions), and why the golang website claims 1.6.3 has macOS Sierra compatibility then (https://golang.org/doc/devel/release.html#go1.6.minor https://golang.org/doc/devel/release.html#go1.6.minor)...

On Oct 27, 2016, at 11:31 PM, Nigel Tao [email protected] wrote:

@geofffranks https://github.com/geofffranks I don't think they'll be backported to 1.6.x and 1.5.x. See #17234 #17234 (and #16352 #16352).


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #16570 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AG2SUsyzchNskgp0UP6_ABcmeOiw5ykWks5q4WyQgaJpZM4JaO5d.

@rsc
Copy link
Contributor

rsc commented Oct 28, 2016

@geofffranks, the claim that macOS Sierra works on Go 1.6.3 was made prematurely: Go 1.6.3 was released in July and Sierra was released in September. Go 1.6.3 worked with the available Sierra beta at the time but changes made in Sierra after that broke the support. In retrospect, it was a mistake to claim support for a future operating system that was not yet officially released. We are going to update the notes.

See #17234 for additional notes about Sierra and Go 1.6.3, including a Git ref for the adventurous.

@geofffranks
Copy link

Ok, thanks!

On Oct 28, 2016, at 9:12 AM, Russ Cox [email protected] wrote:

@geofffranks https://github.com/geofffranks, the claim that macOS Sierra works on Go 1.6.3 was made prematurely: Go 1.6.3 was released in July and Sierra was released in September. Go 1.6.3 worked with the available Sierra beta at the time but changes made in Sierra after that broke the support. In retrospect, it was a mistake to claim support for a future operating system that was not yet officially released. We are going to update the notes.

See #17234 #17234 for additional notes about Sierra and Go 1.6.3, including a Git ref for the adventurous.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #16570 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AG2SUqWBcio-svAl22DjPD4PiEQ8FF9nks5q4fS2gaJpZM4JaO5d.

@devniz
Copy link

devniz commented Nov 14, 2016

I had this issue on my MAC and just reinstalling the GO package fixed it: https://golang.org/doc/install

@golang golang locked and limited conversation to collaborators Nov 14, 2017
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
This is a cherry-pick of https://go-review.googlesource.com/25400
to the release-branch-go1.4

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes golang#16570

Change-Id: I714325a7749a145d23cf03251db38196ac9c481a
Reviewed-on: https://go-review.googlesource.com/31750
Reviewed-by: Brad Fitzpatrick <[email protected]>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
This is a cherry-pick of https://go-review.googlesource.com/25400
to the release-branch-go1.4

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes golang#16570

Change-Id: I714325a7749a145d23cf03251db38196ac9c481a
Reviewed-on: https://go-review.googlesource.com/31750
Reviewed-by: Brad Fitzpatrick <[email protected]>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
This is a cherry-pick of https://go-review.googlesource.com/25400
to the release-branch-go1.4

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes golang#16570

Change-Id: I714325a7749a145d23cf03251db38196ac9c481a
Reviewed-on: https://go-review.googlesource.com/31750
Reviewed-by: Brad Fitzpatrick <[email protected]>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 20, 2018
This is a cherry-pick of https://go-review.googlesource.com/25400
to the release-branch-go1.4

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes golang#16570

Change-Id: I714325a7749a145d23cf03251db38196ac9c481a
Reviewed-on: https://go-review.googlesource.com/31750
Reviewed-by: Brad Fitzpatrick <[email protected]>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
This is a cherry-pick of https://go-review.googlesource.com/25400
to the release-branch-go1.4

macOS Sierra beta4 changed the kernel interface for getting time.
DX now optionally points to an address for additional info.
Set it to zero to avoid corrupting memory.

Fixes golang#16570

Change-Id: I714325a7749a145d23cf03251db38196ac9c481a
Reviewed-on: https://go-review.googlesource.com/31750
Reviewed-by: Brad Fitzpatrick <[email protected]>
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