commit | 0e482bef69d73b9381dbc543e200a1fe57275e81 | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Fri Dec 28 14:05:33 2018 -0500 |
committer | Ian Lance Taylor <iant@golang.org> | Sat Dec 29 00:06:25 2018 +0000 |
tree | a708417c0f6bbe1261256b22964b9c6e594e9ff1 | |
parent | d9a30434440469c640a120fe7132057f5644d38c [diff] |
runtime: prevent deadlock when profiling signal arrives in stack scan Precise stack scan needs to unwind the stack. When it is unwinding the stack, if a profiling signal arrives, which also does a traceback, it may deadlock in dl_iterate_phdr. Prevent this deadlock by setting up runtime_in_callers before traceback. Change-Id: If9b15dd00f1d3f6ce557ea740d9fd6fd3b842879 Reviewed-on: https://go-review.googlesource.com/c/155766 Reviewed-by: Ian Lance Taylor <iant@golang.org>