Skip to content

data race #1142

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

Closed
dajohi opened this issue Mar 8, 2018 · 1 comment · Fixed by #1157
Closed

data race #1142

dajohi opened this issue Mar 8, 2018 · 1 comment · Fixed by #1157
Labels
Milestone

Comments

@dajohi
Copy link
Member

dajohi commented Mar 8, 2018

==================
WARNING: DATA RACE
Write at 0x00c4352e40d0 by goroutine 71:
  main.(*rpcServer).jsonRPCRead()
      /home/j/go/src/github.com/decred/dcrd/rpcserver.go:6219 +0x957
  main.(*rpcServer).Start.func1()
      /home/j/go/src/github.com/decred/dcrd/rpcserver.go:6270 +0x211
  net/http.HandlerFunc.ServeHTTP()
      /usr/lib/go/src/net/http/server.go:1918 +0x51
  net/http.(*ServeMux).ServeHTTP()
      /usr/lib/go/src/net/http/server.go:2254 +0xa2
  net/http.serverHandler.ServeHTTP()
      /usr/lib/go/src/net/http/server.go:2619 +0xbc
  net/http.(*conn).serve()
      /usr/lib/go/src/net/http/server.go:1801 +0x83b

Previous write at 0x00c4352e40d0 by goroutine 174:
  main.(*rpcServer).jsonRPCRead.func1()
      /home/j/go/src/github.com/decred/dcrd/rpcserver.go:6061 +0xa7

Goroutine 71 (running) created at:
  net/http.(*Server).Serve()
      /usr/lib/go/src/net/http/server.go:2720 +0x37c
  main.(*rpcServer).Start.func3()
      /home/j/go/src/github.com/decred/dcrd/rpcserver.go:6300 +0x131

Goroutine 174 (finished) created at:
  main.(*rpcServer).jsonRPCRead()
      /home/j/go/src/github.com/decred/dcrd/rpcserver.go:6060 +0x7b4
  main.(*rpcServer).Start.func1()
      /home/j/go/src/github.com/decred/dcrd/rpcserver.go:6270 +0x211
  net/http.HandlerFunc.ServeHTTP()
      /usr/lib/go/src/net/http/server.go:1918 +0x51
  net/http.(*ServeMux).ServeHTTP()
      /usr/lib/go/src/net/http/server.go:2254 +0xa2
  net/http.serverHandler.ServeHTTP()
      /usr/lib/go/src/net/http/server.go:2619 +0xbc
  net/http.(*conn).serve()
      /usr/lib/go/src/net/http/server.go:1801 +0x83b
==================
@jrick jrick added this to the 1.2.0 milestone Mar 8, 2018
@jrick jrick added the bug label Mar 8, 2018
@jrick
Copy link
Member

jrick commented Mar 19, 2018

This was encountered on commit 1329f87 (so the line numbers make sense)

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

Successfully merging a pull request may close this issue.

2 participants