panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x8486a2] goroutine 381 [running]: panic(0x11235e0, 0x1cb2140) GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc00027ba78 sp=0xc00027b9b0 pc=0x437c65 runtime.panicmem() GOROOT/src/runtime/panic.go:212 +0x5b fp=0xc00027ba98 sp=0xc00027ba78 pc=0x435cbb runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:734 +0x173 fp=0xc00027bad0 sp=0xc00027ba98 pc=0x44fa93 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Dentry).releaseKeptDentriesLocked(0xc0002c22d0, 0x1476ce0, 0xc0006baa80) pkg/sentry/fsimpl/kernfs/filesystem.go:272 +0x42 fp=0xc00027bbb8 sp=0xc00027bad0 pc=0x8486a2 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*Filesystem).Release(0xc0005120b0, 0x1476ce0, 0xc0006baa80) pkg/sentry/fsimpl/kernfs/filesystem.go:258 +0x70 fp=0xc00027bbf0 sp=0xc00027bbb8 pc=0x8485d0 gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*filesystem).Release(0xc0005120b0, 0x1476ce0, 0xc0006baa80) pkg/sentry/fsimpl/mqfs/mqfs.go:112 +0x5b fp=0xc00027bc18 sp=0xc00027bbf0 pc=0x86d19b gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef.func1() pkg/sentry/vfs/filesystem.go:81 +0xc5 fp=0xc00027bc58 sp=0xc00027bc18 pc=0x76b8c5 gvisor.dev/gvisor/pkg/sentry/vfs.(*FilesystemRefs).DecRef(0xc0005120b0, 0xc00027bce0) bazel-out/k8-fastbuild-ST-4c64f0b3d5c7/bin/pkg/sentry/vfs/filesystem_refs.go:131 +0x5a fp=0xc00027bcd0 sp=0xc00027bc58 pc=0x74cfba gvisor.dev/gvisor/pkg/sentry/vfs.(*Filesystem).DecRef(0xc0005120b0, 0x1476ce0, 0xc0006baa80) pkg/sentry/vfs/filesystem.go:77 +0x69 fp=0xc00027bd10 sp=0xc00027bcd0 pc=0x74c7a9 gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).destroy(0xc00016ecc0, 0x1476ce0, 0xc0006baa80) pkg/sentry/vfs/mount.go:528 +0x6b fp=0xc00027bd60 sp=0xc00027bd10 pc=0x752dcb gvisor.dev/gvisor/pkg/sentry/vfs.(*Mount).DecRef(0xc00016ecc0, 0x1476ce0, 0xc0006baa80) pkg/sentry/vfs/mount.go:512 +0x7d fp=0xc00027bd88 sp=0xc00027bd60 pc=0x752d3d gvisor.dev/gvisor/pkg/sentry/fsimpl/mqfs.(*RegistryImpl).Destroy(0xc00000c2e8, 0x1476ce0, 0xc0006baa80) pkg/sentry/fsimpl/mqfs/registry.go:133 +0x6b fp=0xc00027bdb0 sp=0xc00027bd88 pc=0x86e76b gvisor.dev/gvisor/pkg/sentry/kernel/mq.(*Registry).Destroy(0xc000502300, 0x1476ce0, 0xc0006baa80) pkg/sentry/kernel/mq/mq.go:245 +0x8d fp=0xc00027bdf8 sp=0xc00027bdb0 pc=0x86982d gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).DecRef.func1() pkg/sentry/kernel/ipc_namespace.go:106 +0x85 fp=0xc00027be38 sp=0xc00027bdf8 pc=0x9f42c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespaceRefs).DecRef(0xc000576240, 0xc00027bec0) bazel-out/k8-fastbuild-ST-4c64f0b3d5c7/bin/pkg/sentry/kernel/ipc_namespace_refs.go:131 +0x5a fp=0xc00027beb0 sp=0xc00027be38 pc=0x99e6fa gvisor.dev/gvisor/pkg/sentry/kernel.(*IPCNamespace).DecRef(0xc000576240, 0x1476ce0, 0xc0006baa80) pkg/sentry/kernel/ipc_namespace.go:103 +0x69 fp=0xc00027bef0 sp=0xc00027beb0 pc=0x99e0a9 gvisor.dev/gvisor/pkg/sentry/kernel.(*runExitMain).execute(0x0, 0xc0006baa80, 0x144a940, 0x0) pkg/sentry/kernel/task_exit.go:259 +0x1ea fp=0xc00027bf60 sp=0xc00027bef0 pc=0x9c31ea gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0006baa80, 0x10) pkg/sentry/kernel/task_run.go:97 +0x1af fp=0xc00027bfd0 sp=0xc00027bf60 pc=0x9cbd2f runtime.goexit() src/runtime/asm_amd64.s:1371 +0x1 fp=0xc00027bfd8 sp=0xc00027bfd0 pc=0x472861 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:327 +0xfe