升级了macOS后运行beego项目出现fatal error: unexpected signal during runtime execution错误

升级了macOS后运行beego项目经常会出现这样的错误信息。有没有遇到过并解决了的?


go version go1.6.2 darwin/amd64


fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x630cbbb1250 pc=0xf0eb]


runtime stack:
runtime.throw(0x4971c0, 0x2a)
/usr/local/go/src/runtime/panic.go:547 +0x90
runtime.sigpanic()
/usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a
runtime.unlock(0x982540)
/usr/local/go/src/runtime/lock_sema.go:107 +0x14b
runtime.(mheap).alloc_m(0x982540, 0x1, 0xa, 0xbeba88)
/usr/local/go/src/runtime/mheap.go:492 +0x314
runtime.(
mheap).alloc.func1()
/usr/local/go/src/runtime/mheap.go:502 +0x41
runtime.systemstack(0xc820037e58)
/usr/local/go/src/runtime/asm_amd64.s:307 +0xab
runtime.(mheap).alloc(0x982540, 0x1, 0x1000000000a, 0xed8f)
/usr/local/go/src/runtime/mheap.go:503 +0x63
runtime.(
mcentral).grow(0x983c70, 0x0)
/usr/local/go/src/runtime/mcentral.go:209 +0x93
runtime.(mcentral).cacheSpan(0x983c70, 0xc8200160b0)
/usr/local/go/src/runtime/mcentral.go:89 +0x47d
runtime.(
mcache).refill(0xaf4e10, 0xa, 0xc820016080)
/usr/local/go/src/runtime/mcache.go:119 +0xcc
runtime.mallocgc.func2()
/usr/local/go/src/runtime/malloc.go:642 +0x2b
runtime.systemstack(0xc82001b500)
/usr/local/go/src/runtime/asm_amd64.s:291 +0x79
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1051


goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:245 fp=0xc820aef5c8 sp=0xc820aef5c0
runtime.mallocgc(0x90, 0x437920, 0x0, 0x19c9fb)
/usr/local/go/src/runtime/malloc.go:643 +0x869 fp=0xc820aef6a0 sp=0xc820aef5c8
runtime.newobject(0x437920, 0xc8200144e0)
/usr/local/go/src/runtime/malloc.go:781 +0x42 fp=0xc820aef6c8 sp=0xc820aef6a0
cmd/compile/internal/gc.Nod(0xc820336801, 0x0, 0x0, 0xc820336880)
/usr/local/go/src/cmd/compile/internal/gc/subr.go:337 +0x27 fp=0xc820aef6e8 sp=0xc820aef6c8
cmd/compile/internal/gc.newname(0xc8207e8900, 0x0)
/usr/local/go/src/cmd/compile/internal/gc/dcl.go:352 +0x68 fp=0xc820aef720 sp=0xc820aef6e8
cmd/compile/internal/gc.(parser).hidden_fndcl(0x972b80, 0x0)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:2190 +0x127 fp=0xc820aef800 sp=0xc820aef720
cmd/compile/internal/gc.(
parser).hidden_import(0x972b80)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:3017 +0x15a fp=0xc820aef928 sp=0xc820aef800
cmd/compile/internal/gc.(parser).hidden_import_list(0x972b80)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:3462 +0x28 fp=0xc820aef950 sp=0xc820aef928
cmd/compile/internal/gc.(
parser).import_there(0x972b80)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:503 +0x26 fp=0xc820aef978 sp=0xc820aef950
cmd/compile/internal/gc.(parser).import_stmt(0x972b80)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:369 +0x6b fp=0xc820aefa70 sp=0xc820aef978
cmd/compile/internal/gc.(
parser).import_(0x972b80)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:350 +0x69 fp=0xc820aefa98 sp=0xc820aefa70
cmd/compile/internal/gc.(*parser).file(0x972b80)
/usr/local/go/src/cmd/compile/internal/gc/parser.go:316 +0x53 fp=0xc820aefad0 sp=0xc820aefa98
cmd/compile/internal/gc.parse_file()
/usr/local/go/src/cmd/compile/internal/gc/parser.go:56 +0x5a fp=0xc820aefae0 sp=0xc820aefad0
cmd/compile/internal/gc.Main()
/usr/local/go/src/cmd/compile/internal/gc/lex.go:345 +0x1d44 fp=0xc820aefe00 sp=0xc820aefae0
cmd/compile/internal/amd64.Main()
/usr/local/go/src/cmd/compile/internal/amd64/galign.go:127 +0x58d fp=0xc820aefe68 sp=0xc820aefe00
main.main()
/usr/local/go/src/cmd/compile/main.go:32 +0x395 fp=0xc820aeff40 sp=0xc820aefe68
runtime.main()
/usr/local/go/src/runtime/proc.go:188 +0x2b0 fp=0xc820aeff90 sp=0xc820aeff40
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1998 +0x1 fp=0xc820aeff98 sp=0xc820aeff90

已邀请:

astaxie - 创造、获取、分享、传播和应用Go

赞同来自:

这个是Go在新版本MacOS下面的bug,你需要升级到最新版本的Go。和beego没关系

nil

赞同来自:

升级你的GO

要回复问题请先登录注册