aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-01-07 20:12:39 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-01-07 20:12:39 +0000
commit575eb8f58b06657c9cadfe6f7ddfd9e530fe5dea (patch)
treece0dcd8fecef8174761dfaa26962f241b47d9606 /gcc
parent419af57c134f3b068530ea51179c220e52623067 (diff)
downloadgcc-575eb8f58b06657c9cadfe6f7ddfd9e530fe5dea.zip
gcc-575eb8f58b06657c9cadfe6f7ddfd9e530fe5dea.tar.gz
gcc-575eb8f58b06657c9cadfe6f7ddfd9e530fe5dea.tar.bz2
runtime: in getTraceback, set gp->m before gogo
Currently, when collecting a traceback for another goroutine, getTraceback calls gogo(gp) switching to gp, which will resume in mcall, which will call gtraceback, which will set up gp->m. There is a gap between setting the current running g to gp and setting gp->m. If a profiling signal arrives in between, sigtramp will see a non-nil gp with a nil m, and will seg fault. Fix this by setting up gp->m first. Fixes golang/go#29448. Reviewed-on: https://go-review.googlesource.com/c/156038 From-SVN: r267658
Diffstat (limited to 'gcc')
-rw-r--r--gcc/go/gofrontend/MERGE2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 3484583..d6fe5f6 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-2ce291eaee427799bfcde256929dab89e0ab61eb
+c257303eaef143663216e483857d5b259e05753f
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.