WARNING: DATA RACE Write at 0x00c0004359d8 by goroutine 300: sync/atomic.CompareAndSwapInt32() bazel-out/k8-fastbuild/bin/external/io_bazel_rules_go/linux_amd64_static_race_stripped/stdlib%/src/runtime/race_amd64.s:293 +0xb sync.(*Mutex).Lock() GOROOT/src/sync/mutex.go:74 +0x4d gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Shm).RemoveMapping() pkg/sentry/kernel/shm/shm.go:421 +0x47 gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).removeVMAsLocked() pkg/sentry/mm/vma.go:371 +0x51a gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).unmapLocked() pkg/sentry/mm/vma.go:346 +0x8b gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).DecUsers() pkg/sentry/mm/lifecycle.go:226 +0x27e gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runExitMain).execute() pkg/sentry/kernel/task_context.go:64 +0x383 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:91 +0x2e5 Previous read at 0x00c0004359d8 by goroutine 291: reflect.typedmemmove() GOROOT/src/runtime/mbarrier.go:177 +0x0 reflect.packEface() GOROOT/src/reflect/value.go:119 +0x104 reflect.valueInterface() GOROOT/src/reflect/value.go:1009 +0x170 fmt.(*pp).printValue() GOROOT/src/reflect/value.go:979 +0x3928 fmt.(*pp).printValue() GOROOT/src/fmt/print.go:866 +0x2624 fmt.(*pp).printArg() GOROOT/src/fmt/print.go:702 +0x2f2 fmt.(*pp).doPrintf() GOROOT/src/fmt/print.go:1016 +0x315 fmt.Fprintf() GOROOT/src/fmt/print.go:199 +0x7f gvisor.googlesource.com/gvisor/pkg/log.(*Writer).Emit() pkg/log/log.go:121 +0x89 gvisor.googlesource.com/gvisor/pkg/log.GoogleEmitter.Emit() pkg/log/glog.go:162 +0x18b0 gvisor.googlesource.com/gvisor/pkg/log.(*GoogleEmitter).Emit() :1 +0xe1 gvisor.googlesource.com/gvisor/pkg/log.(*BasicLogger).Debugf() pkg/log/log.go:177 +0x107 gvisor.googlesource.com/gvisor/pkg/log.Debugf() pkg/log/log.go:235 +0x90 gvisor.googlesource.com/gvisor/pkg/sentry/kernel/shm.(*Shm).RemoveMapping() pkg/sentry/kernel/shm/shm.go:436 +0x1dd gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).removeVMAsLocked() pkg/sentry/mm/vma.go:371 +0x51a gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).unmapLocked() pkg/sentry/mm/vma.go:346 +0x8b gvisor.googlesource.com/gvisor/pkg/sentry/mm.(*MemoryManager).DecUsers() pkg/sentry/mm/lifecycle.go:226 +0x27e gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*runExitMain).execute() pkg/sentry/kernel/task_context.go:64 +0x383 gvisor.googlesource.com/gvisor/pkg/sentry/kernel.(*Task).run() pkg/sentry/kernel/task_run.go:91 +0x2e5