I also have this problem, has you solved? 在 2019年2月27日星期三 UTC+8上午5:10:21,Ulderico写道: > > Hi, > > > A colleague of mine is getting random errors after upgrading to Go 1.12 in > High Sierra, he would see among the errors these: > > svc.0 : fatal error: sync: inconsistent mutex state > svc.0 : > svc.0 : goroutine 138 [running]: > svc.0 : runtime.throw(0x5862926, 0x1e) > svc.0 : /usr/local/go/src/runtime/panic.go:617 +0x72 > fp=0xc001079fa8 sp=0xc001079f78 pc=0x402f422 > svc.0 : sync.throw(0x5862926, 0x1e) > svc.0 : /usr/local/go/src/runtime/panic.go:603 +0x35 > fp=0xc001079fc8 sp=0xc001079fa8 pc=0x402f3a5 > svc.0 : sync.(*Mutex).Lock(0xc00045ace0) > svc.0 : /usr/local/go/src/sync/mutex.go:143 +0x15b > fp=0xc00107a008 sp=0xc001079fc8 pc=0x40740db > svc.0 : sync.(*Once).Do(0xc00045ace0, 0xc00107a048) > svc.0 : /usr/local/go/src/sync/once.go:40 +0x3b > fp=0xc00107a038 sp=0xc00107a008 pc=0x407435b > (this first seems to be a encapsulated sync.Once > var releaseOnce sync.Once > lockRelease := func() { releaseOnce.Do(func() { lock.Release() }) } > defer lockRelease() > ) > > And > > svc.0 : runtime: nelems=170 nalloc=86 previous allocCount=85 > nfreed=65535 > svc.0 : fatal error: sweep increased allocation count > svc.0 : > svc.0 : goroutine 18 [running]: > svc.0 : runtime.throw(0x58677ea, 0x20) > svc.0 : /usr/local/go/src/runtime/panic.go:617 +0x72 > fp=0xc000068660 sp=0xc000068630 pc=0x402f422 > svc.0 : runtime.(*mspan).sweep(0xb2a5190, 0xc0000a2000, > 0x4059200) > svc.0 : /usr/local/go/src/runtime/mgcsweep.go:329 +0x8da > fp=0xc000068740 sp=0xc000068660 pc=0x402427a > svc.0 : runtime.sweepone(0x5909220) > svc.0 : /usr/local/go/src/runtime/mgcsweep.go:136 +0x26e > fp=0xc0000687a8 sp=0xc000068740 pc=0x402374e > svc.0 : runtime.bgsweep(0xc0000a2000) > svc.0 : /usr/local/go/src/runtime/mgcsweep.go:73 +0xbb > fp=0xc0000687d8 sp=0xc0000687a8 pc=0x402342b > svc.0 : runtime.goexit() > svc.0 : /usr/local/go/src/runtime/asm_amd64.s:1337 +0x1 > fp=0xc0000687e0 sp=0xc0000687d8 pc=0x405e671 > svc.0 : created by runtime.gcenable > svc.0 : /usr/local/go/src/runtime/mgc.go:208 +0x58 > > (we couldn't trace this one to any particular part of the code) > > Has anyone been affected by these problems too? > > > Thanks > >
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5ae38210-bdf0-4331-922d-80bb3a4416c4%40googlegroups.com.