-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: racing write to t.ProxyConnectHeader in dialConn when proxy URL includes auth credentials #36431
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
Comments
Thanks for the report. I can reproduce this with both Since this bug is already present in 1.13, I'm tentatively milestoning it for 1.15, but if the fix is small it might make 1.14 (and might be a backport candidate for a patch release either way). CC @bradfitz |
It is also worth noting that the stack traces in the race report seem to be missing at least one inlined stack frame. That is probably a compiler and/or runtime bug. CC @dvyukov @randall77 @aclements [Update: this is #19749.] |
Here is a race report with inlining disabled, using a current
|
Change https://golang.org/cl/213638 mentions this issue: |
@gopherbot, please backport to Go 1.13 and 1.12. This is a data race in |
Backport issue(s) opened: #36433 (for 1.12), #36434 (for 1.13). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
This should be fixed in the next 1.14 build (beta2 or rc1). |
Change https://golang.org/cl/213657 mentions this issue: |
Change https://golang.org/cl/213677 mentions this issue: |
…nectHeader Previously, we accidentally wrote the Proxy-Authorization header for the initial CONNECT request to the shared ProxyConnectHeader map when it was non-nil. Updates #36431 Fixes #36434 Change-Id: I5cb414f391dddf8c23d85427eb6973f14c949025 Reviewed-on: https://go-review.googlesource.com/c/go/+/213638 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> (cherry picked from commit 249c85d) Reviewed-on: https://go-review.googlesource.com/c/go/+/213657
…nectHeader Previously, we accidentally wrote the Proxy-Authorization header for the initial CONNECT request to the shared ProxyConnectHeader map when it was non-nil. Updates #36431 Fixes #36433 Change-Id: I5cb414f391dddf8c23d85427eb6973f14c949025 Reviewed-on: https://go-review.googlesource.com/c/go/+/213638 Run-TryBot: Bryan C. Mills <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> (cherry picked from commit 249c85d) Reviewed-on: https://go-review.googlesource.com/c/go/+/213677
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
1.13.5, yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Ran this code. although it uses
elazarl/goproxy
package, behavour can be reproduced without this package.What did you expect to see?
Above code to run without data race warning.
What did you see instead?
The text was updated successfully, but these errors were encountered: