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

Found data race in the "Remote Disk Server" and "Remote Disk Client" mode #5

Closed
mstmdev opened this issue Jan 7, 2022 · 1 comment · Fixed by #7
Closed

Found data race in the "Remote Disk Server" and "Remote Disk Client" mode #5

mstmdev opened this issue Jan 7, 2022 · 1 comment · Fixed by #7
Labels
race Data race

Comments

@mstmdev
Copy link
Member

mstmdev commented Jan 7, 2022

Running command (Windows 10)

cd E:/workspace/gowork/src/github.com/no-src/gofs
mkdir rs\src rs\target rc\src rc\target
# server
go run -race ./cmd/gofs -src="rs://127.0.0.1:9016?mode=server&local_sync_disabled=true&path=./rs/src" -target=./rs/target -tls_cert_file=./gofs.pem -tls_key_file=./gofs.key -users="u1234|p4321"
# client
go run -race ./cmd/gofs -src="rs://127.0.0.1:9016" -target=./rc/target -users="u1234|p4321"

Server error info

==================
WARNING: DATA RACE
Write at 0x00c000078650 by goroutine 24:
  github.com/no-src/gofs/tran.(*Conn).MarkAuthorized()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/conn.go:32 +0x6d
  github.com/no-src/gofs/sync.(*remoteServerSync).authCommand()
      E:/workspace/gowork/src/github.com/no-src/gofs/sync/remote_server_sync.go:277 +0x1d3
  github.com/no-src/gofs/sync.(*remoteServerSync).start.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/sync/remote_server_sync.go:226 +0x604
  github.com/no-src/gofs/tran.(*tcpServer).Accept.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/tcpserver.go:104 +0x1dd

Previous read at 0x00c000078650 by goroutine 23:
  github.com/no-src/gofs/tran.(*Conn).authCheck.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/conn.go:63 +0x96

Goroutine 24 (running) created at:
  github.com/no-src/gofs/tran.(*tcpServer).Accept()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/tcpserver.go:93 +0x1d8
  github.com/no-src/gofs/sync.(*remoteServerSync).start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/sync/remote_server_sync.go:211 +0x59

Goroutine 23 (running) created at:
  github.com/no-src/gofs/tran.(*Conn).authCheck()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/conn.go:58 +0x90
  github.com/no-src/gofs/tran.(*Conn).StartAuthCheck()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/conn.go:48 +0x95
  github.com/no-src/gofs/tran.(*tcpServer).addClient()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/tcpserver.go:117 +0x56
  github.com/no-src/gofs/tran.(*tcpServer).Accept()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/tcpserver.go:91 +0xea
  github.com/no-src/gofs/sync.(*remoteServerSync).start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/sync/remote_server_sync.go:211 +0x59
==================
==================
WARNING: DATA RACE
Write at 0x00c00002a4d8 by main goroutine:
  container/list.(*List).insert()
      c:/go/src/container/list/list.go:98 +0x6b2
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x38d
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Previous read at 0x00c00002a4d8 by goroutine 19:
  container/list.(*List).Front()
      c:/go/src/container/list/list.go:70 +0x7d
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:133 +0x3e
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00002a4b0 by goroutine 19:
  container/list.(*List).Front()
      c:/go/src/container/list/list.go:73 +0x95
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:133 +0x3e
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a4b0 by main goroutine:
  container/list.(*List).insert()
      c:/go/src/container/list/list.go:95 +0x5b3
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x38d
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00002a588 by goroutine 19:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:134 +0xba
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a588 by main goroutine:
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x467
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00002a4b8 by goroutine 19:
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0xab8
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:164 +0x978
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a4b8 by main goroutine:
  container/list.(*List).insert()
      c:/go/src/container/list/list.go:96 +0x611
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x38d
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c000502900 by goroutine 19:
  container/list.(*List).insert()
      c:/go/src/container/list/list.go:94 +0xbc4
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x9f0
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0xaaa
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:164 +0x978
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c000502900 by main goroutine:
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x467
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00002a630 by goroutine 19:
  container/list.(*List).remove()
      c:/go/src/container/list/list.go:109 +0xf24
  container/list.(*List).Remove()
      c:/go/src/container/list/list.go:141 +0xf1d
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:185 +0xecc
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a630 by main goroutine:
  container/list.(*List).insert()
      c:/go/src/container/list/list.go:95 +0x5b3
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x38d
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Write at 0x00c00002a668 by goroutine 19:
  container/list.(*List).remove()
      c:/go/src/container/list/list.go:110 +0xfd6
  container/list.(*List).Remove()
      c:/go/src/container/list/list.go:141 +0xf1d
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:185 +0xecc
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a668 by main goroutine:
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x467
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00002a670 by goroutine 19:
  container/list.(*List).Remove()
      c:/go/src/container/list/list.go:138 +0xf05
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:185 +0xecc
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a670 by main goroutine:
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x467
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00002a660 by goroutine 19:
  container/list.(*List).remove()
      c:/go/src/container/list/list.go:109 +0xf24
  container/list.(*List).Remove()
      c:/go/src/container/list/list.go:141 +0xf1d
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).processEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:185 +0xecc
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start·dwrap·3()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x39

Previous write at 0x00c00002a660 by main goroutine:
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x467
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x42a
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).listenEvents()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:110 +0x328
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:98 +0x404
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 19 (running) created at:
  github.com/no-src/gofs/monitor.(*fsNotifyMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/fsnotify_monitor.go:96 +0x3f7
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================

Client error info

==================
WARNING: DATA RACE
Write at 0x00c0002be2f8 by goroutine 11:
  container/list.(*List).insert()
      c:/go/src/container/list/list.go:98 +0xa95
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x844
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x821
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:196 +0x456

Previous read at 0x00c0002be2f8 by goroutine 15:
  container/list.(*List).Front()
      c:/go/src/container/list/list.go:70 +0x7d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:212 +0x3e
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c0002be2d0 by goroutine 15:
  container/list.(*List).Front()
      c:/go/src/container/list/list.go:73 +0x95
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:212 +0x3e
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Previous write at 0x00c0002be2d0 by goroutine 11:
  [failed to restore the stack]

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c0002be918 by goroutine 15:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:213 +0xbd
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Previous write at 0x00c0002be918 by goroutine 11:
  [failed to restore the stack]

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c0002be2d8 by goroutine 11:
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x82f
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:196 +0x456

Previous write at 0x00c0002be2d8 by goroutine 15:
  container/list.(*List).remove()
      c:/go/src/container/list/list.go:110 +0x1693
  container/list.(*List).Remove()
      c:/go/src/container/list/list.go:141 +0x15d0
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:267 +0x1579
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c0002bff98 by goroutine 15:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:213 +0xbd
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Previous write at 0x00c0002bff98 by goroutine 11:
  container/list.(*List).insertValue()
      c:/go/src/container/list/list.go:104 +0x85e
  container/list.(*List).PushBack()
      c:/go/src/container/list/list.go:155 +0x821
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:196 +0x456

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00038dc62 by goroutine 15:
  runtime.slicebytetostring()
      c:/go/src/runtime/string.go:80 +0x0
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:221 +0x3ea
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Previous write at 0x00c00038dc62 by goroutine 11:
  runtime.slicecopy()
      c:/go/src/runtime/slice.go:284 +0x0
  github.com/no-src/gofs/tran.(*tcpClient).ReadAll()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/tcpclient.go:132 +0x58a
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:159 +0xa5

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
==================
WARNING: DATA RACE
Read at 0x00c00038dc64 by goroutine 15:
  runtime.slicebytetostring()
      c:/go/src/runtime/string.go:80 +0x0
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).processingMessage()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:221 +0x3ea
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start·dwrap·7()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x39

Previous write at 0x00c00038dc64 by goroutine 11:
  runtime.slicecopy()
      c:/go/src/runtime/slice.go:284 +0x0
  github.com/no-src/gofs/tran.(*tcpClient).ReadAll()
      E:/workspace/gowork/src/github.com/no-src/gofs/tran/tcpclient.go:133 +0x68e
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive.func1()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:159 +0xa5

Goroutine 15 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:120 +0x2d2
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2

Goroutine 11 (running) created at:
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).receive()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:153 +0x11d
  github.com/no-src/gofs/monitor.(*remoteClientMonitor).Start()
      E:/workspace/gowork/src/github.com/no-src/gofs/monitor/remote_client_monitor.go:102 +0xa4
  main.main()
      E:/workspace/gowork/src/github.com/no-src/gofs/cmd/gofs/main.go:127 +0x11e2
==================
@mstmdev
Copy link
Member Author

mstmdev commented Jan 7, 2022

fixed by #6 #7

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

Successfully merging a pull request may close this issue.

1 participant