From f6be1179bb66624403d0f55620d67344d9d98c51 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 5 Jan 2019 00:40:04 +0000 Subject: runtime: prevent deadlock when profiling signal arrives during traceback Traceback routines, e.g. callers and funcentry, may call __go_get_backtrace_state. If a profiling signal arrives while we are in the critical section of __go_get_backtrace_state, it tries to do a traceback, which also calls __go_get_backtrace_state, which tries to enter the same critical section and will deadlock. Prevent this deadlock by setting up runtime_in_callers before calling __go_get_backtrace_state. Found while investigating golang/go#29448. Will add a test in the next CL. Updates golang/go#29448. Reviewed-on: https://go-review.googlesource.com/c/156037 From-SVN: r267590 --- gcc/go/gofrontend/MERGE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/go') diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index a36396c..3484583 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -0e482bef69d73b9381dbc543e200a1fe57275e81 +2ce291eaee427799bfcde256929dab89e0ab61eb The first line of this file holds the git revision number of the last merge done from the gofrontend repository. -- cgit v1.1