On Mon, Jan 15, 2018 at 1:43 PM,  <jwald...@gmail.com> wrote:
>
> My bootstrap Go is a 1.9.2 binary, and I'm trying to compile Go on High
> Sierra (MacOS 10.13.2).
>
> I get a SIGSEGV during test run:
>
> ##### cmd/go terminal test
> panic: runtime error: invalid memory address or nil pointer dereference
> [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x110ed55]
>
> goroutine 1 [running]:
> main.(*tester).registerTests.func2(0xc4201cc450, 0xc4201cc450, 0x14)
> /Users/jwaldrop/Projects/go/src/cmd/dist/test.go:364 +0x45
> main.(*tester).run(0xc4201d2000)
> /Users/jwaldrop/Projects/go/src/cmd/dist/test.go:204 +0x94e
> main.cmdtest()
> /Users/jwaldrop/Projects/go/src/cmd/dist/test.go:42 +0x2b8
> main.xmain()
> /Users/jwaldrop/Projects/go/src/cmd/dist/main.go:43 +0x171
> main.main()
> /Users/jwaldrop/Projects/go/src/cmd/dist/util.go:509 +0x261
>
>
> I looked through issues on Github and did a quick search here and didn't see
> anyone else who's had this problem. I can't repro just yet, but will be able
> to try in a few hours. Meanwhile, here's what I did to get here
> (irrelevancies deleted):
>
>   606  git clone https://go.googlesource.com/go
>   607  cd go
>   611  git checkout go1.9.2
>   612  cd src
>   624  ./all.bash
>   625  which go
>   626  export GOROOT_BOOTSTRAP=/usr/local/go
>   627  ./all.bash
>   645  history
>
>
> My pre-built Go binary comes via brew.
>
> Any help is appreciated, I'm trying to speed up Linux cross compiles without
> giving myself write access to /usr/local.

The failing test, "cmd/go terminal test", is only run on GNU/Linux,
but you say that you are running on Darwin.  I don't understand why
that test is being run at all.  Do you have GOOS=linux set in the
environment?

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to