Go: “致命错误:运行时执行期间出现意外信号” - 在 MacOS 10.12 上进行构建(瞬态)期间

创建于 2016-09-26  ·  1评论  ·  资料来源: golang/go

我正在阅读 Sau Sheong Chang (Manning, 2016) 所著的“Go Web Programming”一书的一些教程代码,并在尝试运行go build一次时遇到“致命错误:运行时执行期间出现意外信号”,然后尝试一分钟后第二次没有尝试任何东西并且它起作用了。 我正在构建的代码在这里

我想重申:这种情况只发生过一次。 随后运行的go build _没有改变任何东西_按预期工作。 不幸的是,除了剪切和粘贴下面的堆栈跟踪之外,我几乎没有任何信息可提供,因为我无法重现。 我看到一个问题已被打开,似乎是相同的错误,但该线程表示如果它出现在真实硬件(是:2013 MacBook Pro)上,则应打开一个新问题。

go version : go version go1.6.2 darwin/amd64
go env

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/bart/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.2/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"
bart@Barts-MBP:chitchat (master*)$ go build
# github.com/sausheong/gwp/Chapter_2_Go_ChitChat/chitchat/data
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x7b6c76bc73b0 pc=0xf0eb]

runtime stack:
runtime.throw(0x4971e0, 0x2a)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x984540)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/lock_sema.go:107 +0x14b
runtime.(*mheap).alloc_m(0x984540, 0x1, 0x9, 0xb92fa0)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:492 +0x314
runtime.(*mheap).alloc.func1()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:502 +0x41
runtime.systemstack(0x7fff5fbff218)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:307 +0xab
runtime.(*mheap).alloc(0x984540, 0x1, 0x10000000009, 0xed8f)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:503 +0x63
runtime.(*mcentral).grow(0x985c00, 0x0)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcentral.go:209 +0x93
runtime.(*mcentral).cacheSpan(0x985c00, 0xb54508)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcentral.go:89 +0x47d
runtime.(*mcache).refill(0xaf64b0, 0x9, 0xb54508)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:642 +0x2b
runtime.systemstack(0x975d00)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:291 +0x79
runtime.mstart()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/proc.go:1051

goroutine 1 [running]:
runtime.systemstack_switch()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:245 fp=0xc82084cfe0 sp=0xc82084cfd8
runtime.mallocgc(0x80, 0x405340, 0xc800000000, 0x11029)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:643 +0x869 fp=0xc82084d0b8 sp=0xc82084cfe0
runtime.newarray(0x405340, 0x4, 0x0)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:798 +0xc9 fp=0xc82084d0f8 sp=0xc82084d0b8
runtime.growslice(0x3b0120, 0xc820ac9740, 0x2, 0x2, 0x3, 0x0, 0x0, 0x0)
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/slice.go:100 +0x2c1 fp=0xc82084d168 sp=0xc82084d0f8
cmd/compile/internal/gc.livenessepilogue(0xc820b028c0)
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/plive.go:1289 +0x3323 fp=0xc82084d708 sp=0xc82084d168
cmd/compile/internal/gc.liveness(0xc820518b40, 0xc820ba4360, 0xc820b17480, 0xc820b17500)
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/plive.go:1794 +0x334 fp=0xc82084d7e8 sp=0xc82084d708
cmd/compile/internal/gc.compile(0xc820518b40)
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/pgen.go:541 +0xdf2 fp=0xc82084da58 sp=0xc82084d7e8
cmd/compile/internal/gc.funccompile(0xc820518b40)
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/dcl.go:1450 +0x1c0 fp=0xc82084dad0 sp=0xc82084da58
cmd/compile/internal/gc.Main()
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/lex.go:472 +0x2116 fp=0xc82084ddf0 sp=0xc82084dad0
cmd/compile/internal/amd64.Main()
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/amd64/galign.go:127 +0x58d fp=0xc82084de58 sp=0xc82084ddf0
main.main()
        /usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/main.go:32 +0x395 fp=0xc82084df30 sp=0xc82084de58
runtime.main()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/proc.go:188 +0x2b0 fp=0xc82084df80 sp=0xc82084df30
runtime.goexit()
        /usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82084df88 sp=0xc82084df80
FrozenDueToAge OS-Darwin

最有用的评论

Go 1.6.2 不支持 macOS 10.12,请升级到 Go 1.7。

2016 年 9 月 26 日下午 4:34,“Bart Grantham”通知@ github.com 写道:

我正在研究“Go Web Programming”这本书的一些教程代码
作者:Sau Sheong Chang (Manning, 2016) 并得到“致命错误:意外信号
在运行时执行期间”尝试运行 go build 一次,然后尝试了
一分钟后第二次没有尝试任何东西并且它起作用了。 编码
我正在建造在这里
https://github.com/sausheong/gwp/tree/master/Chapter_2_Go_ChitChat/chitchat
.

我想重申:这种情况只发生过一次。 随后运行 go build _without
改变任何东西_按预期工作。 不幸的是我几乎没有
除了下面的堆栈跟踪的剪切和粘贴之外要提供的信息
因为我无法复制。 我看到一个问题已经打开
https://github.com/golang/go/issues/11792似乎是
同样的错误,但该线程表明如果它出现在真实硬件上
(是的:2013 MacBook Pro)应该打开一个新问题。

go版本:go版本go1.6.2 darwin/amd64
去环境:

GOARCH="amd64"
戈宾=“”
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS=“达尔文”
GOOS =“达尔文”
GOPATH="/用户/bart/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.2/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
抄送=“叮当”
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

bart@Barts-MBP :chitchat (master*)$ go build

github.com/sausheong/gwp/Chapter_2_Go_ChitChat/chitchat/data

致命错误:运行时执行期间出现意外信号
[信号0xb代码=0x1地址=0x7b6c76bc73b0 pc=0xf0eb]

运行时堆栈:
运行时抛出(0x4971e0,0x2a)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90
运行时.sigpanic()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/sigpanic_unix.go:12 +0x5a
运行时.解锁(0x984540)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/lock_sema.go:107 +0x14b
运行时。(_mheap).alloc_m(0x984540, 0x1, 0x9, 0xb92fa0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:492 +0x314
运行时。(_mheap).alloc.func1()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:502 +0x41
运行时系统堆栈(0x7fff5fbff218)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:307 +0xab
运行时。(_mheap).alloc(0x984540, 0x1, 0x10000000009, 0xed8f)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:503 +0x63
运行时。(_mcentral)。增长(0x985c00,0x0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcentral.go:209 +0x93
运行时。(_mcentral).cacheSpan(0x985c00, 0xb54508)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcentral.go:89 +0x47d
运行时。(_mcache).refill(0xaf64b0, 0x9, 0xb54508)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:642 +0x2b
运行时系统堆栈(0x975d00)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:291 +0x79
运行时.mstart()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/proc.go:1051

goroutine 1 [正在运行]:
runtime.systemstack_switch()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:245 fp=0xc82084cfe0 sp=0xc82084cfd8
运行时.mallocgc(0x80,0x405340,0xc800000000,0x11029)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:643 +0x869 fp=0xc82084d0b8 sp=0xc82084cfe0
运行时.newarray(0x405340,0x4,0x0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:798 +0xc9 fp=0xc82084d0f8 sp=0xc82084d0b8
运行时.growslice(0x3b0120, 0xc820ac9740, 0x2, 0x2, 0x3, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/slice.go:100 +0x2c1 fp=0xc82084d168 sp=0xc82084d0f8
cmd/compile/internal/gc.livenessepilogue(0xc820b028c0)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/plive.go:1289 +0x3323 fp=0xc82084d708 sp=0xc82084d168
cmd/compile/internal/gc.liveness(0xc820518b40, 0xc820ba4360, 0xc820b17480, 0xc820b17500)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/plive.go:1794 +0x334 fp=0xc82084d7e8 sp=0xc82084d708
cmd/compile/internal/gc.compile(0xc820518b40)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/pgen.go:541 +0xdf2 fp=0xc82084da58 sp=0xc82084d7e8
cmd/compile/internal/gc.funccompile(0xc820518b40)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/dcl.go:1450 +0x1c0 fp=0xc82084dad0 sp=0xc82084da58
cmd/编译/内部/gc.Main()
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/lex.go:472 +0x2116 fp=0xc82084ddf0 sp=0xc82084dad0
cmd/编译/内部/amd64.Main()
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/amd64/galign.go:127 +0x58d fp=0xc82084de58 sp=0xc82084ddf0
main.main()
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/main.go:32 +0x395 fp=0xc82084df30 sp=0xc82084de58
运行时.main()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/proc.go:188 +0x2b0 fp=0xc82084df80 sp=0xc82084df30
运行时.goexit()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82084df88 sp=0xc82084df80


您收到此消息是因为您订阅了此线程。
直接回复本邮件,在GitHub上查看
https://github.com/golang/go/issues/17241 ,或静音线程
https://github.com/notifications/unsubscribe-auth/AAIR5C2-SKYNt3CqpAEFbHLlLyOY1Ja6ks5quCxAgaJpZM4KG9tL
.

>所有评论

Go 1.6.2 不支持 macOS 10.12,请升级到 Go 1.7。

2016 年 9 月 26 日下午 4:34,“Bart Grantham”通知@ github.com 写道:

我正在研究“Go Web Programming”这本书的一些教程代码
作者:Sau Sheong Chang (Manning, 2016) 并得到“致命错误:意外信号
在运行时执行期间”尝试运行 go build 一次,然后尝试了
一分钟后第二次没有尝试任何东西并且它起作用了。 编码
我正在建造在这里
https://github.com/sausheong/gwp/tree/master/Chapter_2_Go_ChitChat/chitchat
.

我想重申:这种情况只发生过一次。 随后运行 go build _without
改变任何东西_按预期工作。 不幸的是我几乎没有
除了下面的堆栈跟踪的剪切和粘贴之外要提供的信息
因为我无法复制。 我看到一个问题已经打开
https://github.com/golang/go/issues/11792似乎是
同样的错误,但该线程表明如果它出现在真实硬件上
(是的:2013 MacBook Pro)应该打开一个新问题。

go版本:go版本go1.6.2 darwin/amd64
去环境:

GOARCH="amd64"
戈宾=“”
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS=“达尔文”
GOOS =“达尔文”
GOPATH="/用户/bart/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.2/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.2/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
抄送=“叮当”
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

bart@Barts-MBP :chitchat (master*)$ go build

github.com/sausheong/gwp/Chapter_2_Go_ChitChat/chitchat/data

致命错误:运行时执行期间出现意外信号
[信号0xb代码=0x1地址=0x7b6c76bc73b0 pc=0xf0eb]

运行时堆栈:
运行时抛出(0x4971e0,0x2a)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90
运行时.sigpanic()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/sigpanic_unix.go:12 +0x5a
运行时.解锁(0x984540)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/lock_sema.go:107 +0x14b
运行时。(_mheap).alloc_m(0x984540, 0x1, 0x9, 0xb92fa0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:492 +0x314
运行时。(_mheap).alloc.func1()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:502 +0x41
运行时系统堆栈(0x7fff5fbff218)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:307 +0xab
运行时。(_mheap).alloc(0x984540, 0x1, 0x10000000009, 0xed8f)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mheap.go:503 +0x63
运行时。(_mcentral)。增长(0x985c00,0x0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcentral.go:209 +0x93
运行时。(_mcentral).cacheSpan(0x985c00, 0xb54508)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcentral.go:89 +0x47d
运行时。(_mcache).refill(0xaf64b0, 0x9, 0xb54508)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:642 +0x2b
运行时系统堆栈(0x975d00)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:291 +0x79
运行时.mstart()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/proc.go:1051

goroutine 1 [正在运行]:
runtime.systemstack_switch()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:245 fp=0xc82084cfe0 sp=0xc82084cfd8
运行时.mallocgc(0x80,0x405340,0xc800000000,0x11029)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:643 +0x869 fp=0xc82084d0b8 sp=0xc82084cfe0
运行时.newarray(0x405340,0x4,0x0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/malloc.go:798 +0xc9 fp=0xc82084d0f8 sp=0xc82084d0b8
运行时.growslice(0x3b0120, 0xc820ac9740, 0x2, 0x2, 0x3, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/slice.go:100 +0x2c1 fp=0xc82084d168 sp=0xc82084d0f8
cmd/compile/internal/gc.livenessepilogue(0xc820b028c0)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/plive.go:1289 +0x3323 fp=0xc82084d708 sp=0xc82084d168
cmd/compile/internal/gc.liveness(0xc820518b40, 0xc820ba4360, 0xc820b17480, 0xc820b17500)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/plive.go:1794 +0x334 fp=0xc82084d7e8 sp=0xc82084d708
cmd/compile/internal/gc.compile(0xc820518b40)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/pgen.go:541 +0xdf2 fp=0xc82084da58 sp=0xc82084d7e8
cmd/compile/internal/gc.funccompile(0xc820518b40)
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/dcl.go:1450 +0x1c0 fp=0xc82084dad0 sp=0xc82084da58
cmd/编译/内部/gc.Main()
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/gc/lex.go:472 +0x2116 fp=0xc82084ddf0 sp=0xc82084dad0
cmd/编译/内部/amd64.Main()
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/internal/amd64/galign.go:127 +0x58d fp=0xc82084de58 sp=0xc82084ddf0
main.main()
/usr/local/Cellar/go/1.6.2/libexec/src/cmd/compile/main.go:32 +0x395 fp=0xc82084df30 sp=0xc82084de58
运行时.main()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/proc.go:188 +0x2b0 fp=0xc82084df80 sp=0xc82084df30
运行时.goexit()
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc82084df88 sp=0xc82084df80


您收到此消息是因为您订阅了此线程。
直接回复本邮件,在GitHub上查看
https://github.com/golang/go/issues/17241 ,或静音线程
https://github.com/notifications/unsubscribe-auth/AAIR5C2-SKYNt3CqpAEFbHLlLyOY1Ja6ks5quCxAgaJpZM4KG9tL
.

此页面是否有帮助?
0 / 5 - 0 等级