-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: failed initialization of GODEBUG vars #9217
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
known problem for 1.5, but still investigating the proper fix. see https://golang.org/cl/172510043/ |
Can we have a stop gap fix soon please? And a test in all.bash. It broke perf dashboard at the most interesting moment: |
initial investigation showed that gc is unable to statically initialize |
Can we move that particular var definition into the function with a TODO to fix bots and the functionality, and then continue investigation on the proper fix? |
see #9355 for the underlying bug and one proposed solution. |
This bug will be fixed in tip by fixing #9355. For 1.4.1, however, we should do the simpler fix like https://codereview.appspot.com/172510043/ . It is a much safer fix. |
Fortunately, this bug doesn't affect Go 1.4 because it's due to the |
When we do y = &x for global variables x and y, y gets initialized at link time. Do the same for y = &x.f if x is a struct and y=&x[5] if x is an array. fixes #9217 fixes #9355 Change-Id: Iea3c0ce2ce1b309e2b760e345608fd95460b5713 Reviewed-on: https://go-review.googlesource.com/1691 Reviewed-by: Minux Ma <minux@golang.org>
The text was updated successfully, but these errors were encountered: