-
Notifications
You must be signed in to change notification settings - Fork 18k
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
database/sql: ensure releaseConn is defined before a possible close (cherry-pick to Go 1.8) #20217
Comments
I see no indication on the CL, in the issue it fixes or in the github milestone that the patch is being considered for inclusion in go1.8.2. Are you requesting the inclusion of the patch in go1.8.2? |
@kardianos, is this something that qualifies for a minor release cherrypick? |
This is not a security issue. It may cause a panic. Regardless, in the meantime if this affects you, you can vendor database/SQL and database/sql/driver and apply the patch locally. It is a one line patch. |
That's a lot of work for a user to do to fix a panic. Are you comfortable with the patch being backported to 1.8.x? It looks small at least. |
Yep. It would need to be a new CL. I'll get one ready in case of a 1.8.2. |
CL https://golang.org/cl/42532 mentions this issue. |
A coworker once played around with the Go runtime and it's a pain in the ass to compile it, took a long time to figure out how to build it properly. |
@freedombird9 You wouldn't need to compile it, just copy (database/sql and database/sql/driver) in to the vendor folder. But a CL is coming. |
@freedombird9, you just run "./make.bash" in the "src" directory and wait about 45 seconds. This is all documented at https://golang.org/doc/install/source |
Sounds easy enough. You know when it's gonna released to 1.8.2? If soon, I'll probably just wait and won't bother to build a docker image out of it myself. |
…fore a possible close Applies https://golang.org/cl/42139 to the go1.8 release branch. Also correct two minor issues detected with go vet. Fixes #20217 Change-Id: I2c41af9497493598fbcfc140439b4e25b9bb7e72 Reviewed-on: https://go-review.googlesource.com/42532 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Chris Broadfoot <cbro@golang.org>
@kardianos Hi, I wonder when Commit 2133d63 is planned to be merged to release 1.8? I'm also experiencing this issue in many of our programs due to a recent upgrade to Go 1.8.1. Thanks.
The text was updated successfully, but these errors were encountered: