Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goc运行大概8天就会重启一次,重启时的日志如下 #371

Open
zhuang111 opened this issue Apr 3, 2024 · 0 comments
Open

goc运行大概8天就会重启一次,重启时的日志如下 #371

zhuang111 opened this issue Apr 3, 2024 · 0 comments

Comments

@zhuang111
Copy link

fatal error: concurrent map iteration and map write

goroutine 232621 [running]:
runtime.throw({0xbae576?, 0xc00056f438?})
/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/panic.go:992 +0x71 fp=0xc00056f3d8 sp=0xc00056f3a8 pc=0x434431
runtime.mapiternext(0xb9058d?)
/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/map.go:871 +0x4eb fp=0xc00056f448 sp=0xc00056f3d8 pc=0x40fd2b
github.com/qiniu/goc/pkg/cover.(*fileStore).Set(0xc000486b80, 0xc00030a7b0?)
/home/runner/work/goc/goc/pkg/cover/store.go:186 +0x1d3 fp=0xc00056f588 sp=0xc00056f448 pc=0x93b153
github.com/qiniu/goc/pkg/cover.(*fileStore).Remove(0xc000486b80, {0xc00030a7b0?, 0xc0001ce070?})
/home/runner/work/goc/goc/pkg/cover/store.go:113 +0x5e fp=0xc00056f5b0 sp=0xc00056f588 pc=0x93a67e
github.com/qiniu/goc/pkg/cover.(*server).removeServices(0xc00039ff00, 0xc000414300)
/home/runner/work/goc/goc/pkg/cover/server.go:318 +0x335 fp=0xc00056f6b0 sp=0xc00056f5b0 pc=0x9390f5
github.com/qiniu/goc/pkg/cover.(*server).removeServices-fm(0xc00070d708?)
:1 +0x2c fp=0xc00056f6d0 sp=0xc00056f6b0 pc=0x93ceec
github.com/gin-gonic/gin.(*Context).Next(...)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc000414300)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:99 +0x82 fp=0xc00056f720 sp=0xc00056f6d0 pc=0x924862
github.com/gin-gonic/gin.(*Context).Next(...)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165
github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc000414300)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/logger.go:241 +0xe7 fp=0xc00056f8d8 sp=0xc00056f720 pc=0x923987
github.com/gin-gonic/gin.(*Context).Next(...)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0004a41a0, 0xc000414300)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 +0x63e fp=0xc00056fa58 sp=0xc00056f8d8 pc=0x922a3e
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0004a41a0, {0xca8e78?, 0xc00038e000}, 0xc000414200)
/home/runner/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 +0x1c5 fp=0xc00056fa98 sp=0xc00056fa58 pc=0x922225
net/http.serverHandler.ServeHTTP({0xca6a00?}, {0xca8e78, 0xc00038e000}, 0xc000414200)
/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/server.go:2916 +0x43b fp=0xc00056fb58 sp=0xc00056fa98 pc=0x6d075b
net/http.(*conn).serve(0xc0004a7360, {0xca9730, 0xc0004b6240})
/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/server.go:1966 +0x5d7 fp=0xc00056ffb8 sp=0xc00056fb58 pc=0x6cb757
net/http.(*Server).Serve.func3()
/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/server.go:3071 +0x2e fp=0xc00056ffe0 sp=0xc00056ffb8 pc=0x6d10ae
runtime.goexit()
/opt/hostedtoolcache/go/1.18.3/x64/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00056ffe8 sp=0xc00056ffe0 pc=0x463ae1
created by net/http.(*Server).Serve
/opt/hostedtoolcache/go/1.18.3/x64/src/net/http/server.go:3071 +0x4db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant