Skip to content

runtime: Panic in golang compiler on macOS Sierra Third Public Beta (16A270f) #16585

Closed
@n1rvana

Description

@n1rvana

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
go version go1.6.3 darwin/amd64
  1. What operating system and processor architecture are you using (go env)?

Third public beta of macOS Sierra 10.12 (build 16A270f)

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/userid/codex/gopath_m2"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.3/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
  1. What did you do?

I checked out and tried to install:
https://github.com/n1rvana/go-spammer

This is a trivial app. This issue has appeared with all apps I've tried to compile since installing this beta of the OS.

  1. What did you expect to see?
    Successful build
  2. What did you see instead?
/go-spammer/ (m2) 🌀  go install
# github.com/n1rvana/go-spammer
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x14e5a4567ffe pc=0xf47b]

runtime stack:
runtime.throw(0x2c4920, 0x2a)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x3a70a0)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/lock_sema.go:107 +0x14b
runtime.(*mheap).alloc_m(0x3a70a0, 0x1, 0x12, 0x45b558)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:492 +0x314
runtime.(*mheap).alloc.func1()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:502 +0x41
runtime.systemstack(0x7fff5fbfee98)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:307 +0xab
runtime.(*mheap).alloc(0x3a70a0, 0x1, 0x10000000012, 0xf11f)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mheap.go:503 +0x63
runtime.(*mcentral).grow(0x3a8b50, 0x0)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcentral.go:209 +0x93
runtime.(*mcentral).cacheSpan(0x3a8b50, 0x45b558)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcentral.go:89 +0x47d
runtime.(*mcache).refill(0x402000, 0x12, 0x45b558)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:642 +0x2b
runtime.systemstack(0x3a0700)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:291 +0x79
runtime.mstart()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/proc.go:1051

goroutine 1 [running]:
runtime.systemstack_switch()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:245 fp=0xc82003e878 sp=0xc82003e870
runtime.mallocgc(0x120, 0x276fa0, 0x0, 0x1d7520)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:643 +0x869 fp=0xc82003e950 sp=0xc82003e878
runtime.newobject(0x276fa0, 0xc82000e570)
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/malloc.go:781 +0x42 fp=0xc82003e978 sp=0xc82003e950
cmd/link/internal/ld._lookup(0xc82001e360, 0xc8202f4630, 0x24, 0x0, 0x1, 0x24)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/sym.go:201 +0xf3 fp=0xc82003e9f0 sp=0xc82003e978
cmd/link/internal/ld.Linklookup(0xc82001e360, 0xc8202f4630, 0x24, 0x0, 0xc8202f4630)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/sym.go:208 +0x48 fp=0xc82003ea28 sp=0xc82003e9f0
cmd/link/internal/ld.rdsym(0xc82001e360, 0xc8200ea3c0, 0x27e550, 0x7, 0x0)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:459 +0x232 fp=0xc82003eb38 sp=0xc82003ea28
cmd/link/internal/ld.readsym(0xc82001e360, 0xc8200ea3c0, 0x27e550, 0x7, 0xc820016dc0, 0x45)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:249 +0xd5b fp=0xc82003ef80 sp=0xc82003eb38
cmd/link/internal/ld.ldobjfile(0xc82001e360, 0xc8200ea3c0, 0x27e550, 0x7, 0x2a1a54, 0xc820016dc0, 0x45)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/objfile.go:147 +0xa62 fp=0xc82003f190 sp=0xc82003ef80
cmd/link/internal/ld.ldobj(0xc8200ea3c0, 0x27e550, 0x7, 0x2a1aae, 0xc820016dc0, 0x45, 0xc820014f40, 0x3d, 0x1, 0x0)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:1351 +0x1569 fp=0xc82003f400 sp=0xc82003f190
cmd/link/internal/ld.objfile(0xc82001a4d0)
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:847 +0x10d9 fp=0xc82003f710 sp=0xc82003f400
cmd/link/internal/ld.loadlib()
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/lib.go:513 +0x5ce fp=0xc82003f9f0 sp=0xc82003f710
cmd/link/internal/ld.Ldmain()
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/ld/pobj.go:214 +0x1cd3 fp=0xc82003fe70 sp=0xc82003f9f0
cmd/link/internal/amd64.Main()
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/internal/amd64/obj.go:44 +0x19 fp=0xc82003fe78 sp=0xc82003fe70
main.main()
    /usr/local/Cellar/go/1.6.3/libexec/src/cmd/link/main.go:27 +0x36f fp=0xc82003ff50 sp=0xc82003fe78
runtime.main()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/proc.go:188 +0x2b0 fp=0xc82003ffa0 sp=0xc82003ff50
runtime.goexit()
    /usr/local/Cellar/go/1.6.3/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82003ffa8 sp=0xc82003ffa0
/go-spammer/ (m2) 🌀

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions