Go: "erreur fatale : signal inattendu lors de l'exécution de l'exécution" - lors de la compilation (transitoire) sur MacOS 10.12

Créé le 26 sept. 2016  ·  1Commentaire  ·  Source: golang/go

Je travaille sur un code de didacticiel pour le livre "Go Web Programming" de Sau Sheong Chang (Manning, 2016) et j'ai obtenu "erreur fatale: signal inattendu lors de l'exécution de l'exécution" en essayant d'exécuter go build une fois, puis j'ai essayé une seconde fois une minute plus tard sans rien essayer et ça a marché. Le code que je construisais est ici .

Je tiens à le répéter : cela n'est arrivé qu'une seule fois. Une exécution ultérieure de go build _sans rien changer_ a fonctionné comme prévu. Malheureusement je n'ai pratiquement aucune information à fournir à part un copier-coller de la trace de pile ci-dessous car je n'ai pas pu reproduire. J'ai vu qu'un problème avait été ouvert avec ce qui semblait être le même bogue, mais ce fil indiquait que s'il apparaissait sur du matériel réel (oui: MacBook Pro 2013), un nouveau problème devrait être ouvert.

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

Commentaire le plus utile

Go 1.6.2 ne prend pas en charge macOS 10.12, veuillez passer à Go 1.7.

Le 26 septembre 2016 à 16h34, "Bart Grantham" [email protected] a écrit :

Je travaille sur un code de tutoriel pour le livre "Go Web Programming"
par Sau Sheong Chang (Manning, 2016) et a obtenu « erreur fatale : signal inattendu
pendant l'exécution de l'exécution" en essayant d'exécuter go build une fois, puis en essayant un
une seconde fois une minute plus tard sans rien essayer et cela a fonctionné. Le code
je construisais est ici
https://github.com/sausheong/gwp/tree/master/Chapter_2_Go_ChitChat/chitchat
.

Je tiens à le répéter : cela n'est arrivé qu'une seule fois. Une exécution ultérieure de go build _without
changer quoi que ce soit_ a fonctionné comme prévu. Malheureusement, je n'ai pratiquement pas
informations à fournir en plus d'un copier-coller de la trace de pile ci-dessous
car je n'ai pas pu reproduire. J'ai vu qu'un problème avait été ouvert
https://github.com/golang/go/issues/11792 avec ce qui semblait être le
même bogue, mais ce fil indiquait que s'il apparaissait sur du matériel réel
(oui : MacBook Pro 2013) qu'un nouveau numéro devrait être ouvert.

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

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Utilisateurs/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

erreur fatale : signal inattendu lors de l'exécution de l'exécution
[signal 0xb code=0x1 adr=0x7b6c76bc73b0 pc=0xf0eb]

pile d'exécution :
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 [en cours d'exécution] :
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/interne/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/interne/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/interne/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/interne/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/interne/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/interne/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

-
Vous recevez ceci parce que vous êtes abonné à ce fil.
Répondez directement à cet e-mail, consultez-le sur GitHub
https://github.com/golang/go/issues/17241 , ou désactiver le fil
https://github.com/notifications/unsubscribe-auth/AAIR5C2-SKYNt3CqpAEFbHLlLyOY1Ja6ks5quCxAgaJpZM4KG9tL
.

>Tous les commentaires

Go 1.6.2 ne prend pas en charge macOS 10.12, veuillez passer à Go 1.7.

Le 26 septembre 2016 à 16h34, "Bart Grantham" [email protected] a écrit :

Je travaille sur un code de tutoriel pour le livre "Go Web Programming"
par Sau Sheong Chang (Manning, 2016) et a obtenu « erreur fatale : signal inattendu
pendant l'exécution de l'exécution" en essayant d'exécuter go build une fois, puis en essayant un
une seconde fois une minute plus tard sans rien essayer et cela a fonctionné. Le code
je construisais est ici
https://github.com/sausheong/gwp/tree/master/Chapter_2_Go_ChitChat/chitchat
.

Je tiens à le répéter : cela n'est arrivé qu'une seule fois. Une exécution ultérieure de go build _without
changer quoi que ce soit_ a fonctionné comme prévu. Malheureusement, je n'ai pratiquement pas
informations à fournir en plus d'un copier-coller de la trace de pile ci-dessous
car je n'ai pas pu reproduire. J'ai vu qu'un problème avait été ouvert
https://github.com/golang/go/issues/11792 avec ce qui semblait être le
même bogue, mais ce fil indiquait que s'il apparaissait sur du matériel réel
(oui : MacBook Pro 2013) qu'un nouveau numéro devrait être ouvert.

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

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Utilisateurs/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

erreur fatale : signal inattendu lors de l'exécution de l'exécution
[signal 0xb code=0x1 adr=0x7b6c76bc73b0 pc=0xf0eb]

pile d'exécution :
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 [en cours d'exécution] :
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/interne/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/interne/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/interne/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/interne/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/interne/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/interne/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

-
Vous recevez ceci parce que vous êtes abonné à ce fil.
Répondez directement à cet e-mail, consultez-le sur GitHub
https://github.com/golang/go/issues/17241 , ou désactiver le fil
https://github.com/notifications/unsubscribe-auth/AAIR5C2-SKYNt3CqpAEFbHLlLyOY1Ja6ks5quCxAgaJpZM4KG9tL
.

Cette page vous a été utile?
0 / 5 - 0 notes