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

net/http: data race in Close() #3861

Closed
dvyukov opened this issue Jul 25, 2012 · 2 comments
Closed

net/http: data race in Close() #3861

dvyukov opened this issue Jul 25, 2012 · 2 comments

Comments

@dvyukov
Copy link
Member

dvyukov commented Jul 25, 2012

ThreadSanitizer says:

WARNING: DATA RACE at 0x000040119588
Read by goroutine 152:
  net/http.(*bodyEOFSignal).Close()
      src/pkg/net/http/transport.go:813 +0x41
  net/http.(*persistConn).readLoop()
      src/pkg/net/http/transport.go:558 +0x3f2
Previous write by goroutine 30:
  net/http.(*bodyEOFSignal).Close()
      src/pkg/net/http/transport.go:816 +0x78
  net/http_test.func·097()
      src/pkg/net/http/transport_test.go:894 +0x499
Goroutine 152 (running) created at:
  net/http.(*Transport).getConn()
      src/pkg/net/http/transport.go:390 +0x7be
  net/http.(*Transport).RoundTrip()
      src/pkg/net/http/transport.go:156 +0x31e
  net/http.send()
      src/pkg/net/http/client.go:141 +0x47c
  net/http.(*Client).doFollowingRedirects()
      src/pkg/net/http/client.go:254 +0x941
  net/http.(*Client).Get()
      src/pkg/net/http/client.go:201 +0xc1
  net/http_test.func·097()
      src/pkg/net/http/transport_test.go:878 +0xec
Goroutine 30 (running) created at:
  net/http_test.TestTransportConcurrency()
      src/pkg/net/http/transport_test.go:896 +0x2be
  testing.tRunner()
      src/pkg/testing/testing.go:279 +0x86

13810:c793f0042883 (Jul 24 tip)
@alberts
Copy link
Contributor

alberts commented Jul 26, 2012

Comment 1:

I still see the bug reported in issue #3793 on a many-core machine. I posted more details
there. Same cause maybe?

@davecheney
Copy link
Contributor

Comment 2:

Status changed to Duplicate.

Merged into issue #3793.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants