aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2023-05-05 02:08:24 -0700
committerGitHub <noreply@github.com>2023-05-05 09:08:24 +0000
commit1530314b2e24c90ed6a463f4f666a7ebfabf1cd2 (patch)
treec0217344104cabae9114397436377f2349a8c23c
parentabac29b5933127db5511c4020f2852ec16e9095f (diff)
gvisor: disable glibc rseq (#3869)
-rw-r--r--vm/gvisor/gvisor.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go
index f6eb8d16b..2e9da0eec 100644
--- a/vm/gvisor/gvisor.go
+++ b/vm/gvisor/gvisor.go
@@ -237,6 +237,10 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd {
cmd.Env = []string{
"GOTRACEBACK=all",
"GORACE=halt_on_error=1",
+ // New glibc-s enable rseq by default but ptrace and systrap
+ // platforms don't work in this case. runsc is linked with libc
+ // only when the race detector is enabled.
+ "GLIBC_TUNABLES=glibc.pthread.rseq=0",
}
return cmd
}