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

reflect: panic from malloc after MakeFunc function returns value that is also stored globally [1.13 backport] #39697

Closed
gopherbot opened this issue Jun 18, 2020 · 3 comments
Labels
CherryPickApproved Used during the release process for point releases FrozenDueToAge
Milestone

Comments

@gopherbot
Copy link

@randall77 requested issue #39541 to be considered for backport to the next 1.13 minor release.

@gopherbot please open backport issues for 1.14 and 1.13.

@randall77
Copy link
Contributor

This issue is pretty rare, but causes random GC crashes when it does happen. Seems worth backporting.

@ianlancetaylor ianlancetaylor added the CherryPickApproved Used during the release process for point releases label Jun 19, 2020
@gopherbot gopherbot removed the CherryPickCandidate Used during the release process for point releases label Jun 19, 2020
@gopherbot
Copy link
Author

Change https://golang.org/cl/238862 mentions this issue: [release-branch.go1.13] reflect: zero stack slots before writing to them with write barriers

gopherbot pushed a commit that referenced this issue Jul 11, 2020
…hem with write barriers

reflect.assignTo writes to the target using write barriers. Make sure
that the memory it is writing to is zeroed, so the write barrier does
not read pointers from uninitialized memory.

Fixes #39697

Change-Id: Ia64b2cacc193bffd0c1396bbce1dfb8182d4905b
Reviewed-on: https://go-review.googlesource.com/c/go/+/238760
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 3dec253)
Reviewed-on: https://go-review.googlesource.com/c/go/+/238862
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
@gopherbot
Copy link
Author

Closed by merging 3c1722c to release-branch.go1.13.

@andybons andybons modified the milestones: Go1.13.13, Go1.13.14 Jul 14, 2020
@golang golang locked and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CherryPickApproved Used during the release process for point releases FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

4 participants