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

race detection #18

Open
jjhesk opened this issue Jan 30, 2019 · 0 comments
Open

race detection #18

jjhesk opened this issue Jan 30, 2019 · 0 comments

Comments

@jjhesk
Copy link

jjhesk commented Jan 30, 2019

==================
WARNING: DATA RACE
Write at 0x00c000281f80 by goroutine 54:
runtime.slicecopy()
/usr/local/Cellar/go/1.11.4/libexec/src/runtime/slice.go:221 +0x0
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/io.(*ByteBuffer).Write()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/io/bytebuffer.go:78 +0x130
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*messageSerializer).serialize()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/message.go:90 +0xda
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*emitter).Emit()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/emitter.go:40 +0x11a
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*connection).Emit()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/connection.go:531 +0x8a
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x.StartWebsocket.func1.12()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x/ws_core.go:375 +0x71

Previous read at 0x00c000281f80 by goroutine 56:
runtime.slicecopy()
/usr/local/Cellar/go/1.11.4/libexec/src/runtime/slice.go:221 +0x0
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*emitter).Emit()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/emitter.go:46 +0x236
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x.ReturnAuth()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x/ws_core.go:465 +0x113
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x.StartWebsocket.func1.3.2()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x/ws_core.go:211 +0x166
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/fund/sql.UserLogin()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/fund/sql/rawsql.go:35 +0x21b
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x.StartWebsocket.func1.3()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/core_x/ws_core.go:157 +0x340
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*connection).messageReceived()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/connection.go:443 +0x4f7
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*connection).startReader()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/connection.go:413 +0x25e
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*connection).Wait()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/connection.go:587 +0x8f
_/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket.(*Server).Handler.func1()
/Users/hesk/Documents/bigbangsurvivalrun/backendc/main/common/websocket/server.go:108 +0x155
github.com/kataras/iris/context.DefaultNext()
/Users/hesk/go/src/github.com/kataras/iris/context/context.go:1208 +0x134

i have checked for many time that there is a race detection over the this byte operations. I cant think of a solution to resolve this..

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