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

go run -race Warning data race #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zile2000
Copy link

WARNING: DATA RACE
Write at 0x00c0005c41b8 by goroutine 152:
github.com/ergo-services/ergo/gen.(*Application).ProcessLoop.func1()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/gen/application.go:118 +0x39
runtime.deferreturn()
E:/Golang/src/runtime/panic.go:476 +0x32
myApp/myApp.(*MyApp).ProcessLoop()
:1 +0x95
github.com/ergo-services/ergo/node.(*core).spawn.func3()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/core.go:521 +0x19e
github.com/ergo-services/ergo/node.(*core).spawn.func5()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/core.go:525 +0x74

Previous read at 0x00c0005c41b8 by goroutine 179:
github.com/ergo-services/ergo/node.(*node).listApplications()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/node.go:199 +0x153
github.com/ergo-services/ergo/node.(*node).WhichApplications()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/node.go:187 +0x176
github.com/ergo-services/ergo/node.(*node).Stats()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/node.go:165 +0x177
github.com/ergo-services/ergo/apps/system.gatherStats()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/apps/system/metrics.go:175 +0x19d
github.com/ergo-services/ergo/apps/system.(*systemMetrics).HandleCast()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/apps/system/metrics.go:75 +0x2f5
github.com/ergo-services/ergo/gen.(*ServerProcess).handleCast()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/gen/server.go:518 +0x16d
github.com/ergo-services/ergo/gen.(*ServerProcess).waitCallbackOrDeferr.func2()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/gen/server.go:424 +0x8c

@CLAassistant
Copy link

CLAassistant commented Aug 19, 2023

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

None yet

2 participants