panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd6941c] goroutine 316307 [running]: panic(0x156a380, 0x222f360) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc0025831e0 sp=0xc002583128 pc=0x43611d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc002583210 sp=0xc0025831e0 pc=0x44ec4a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Kernel(...) pkg/sentry/kernel/task.go:641 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Release(0xc000d3a300, 0x1918220, 0x2230940) pkg/sentry/socket/netstack/netstack.go:510 +0x42c fp=0xc002583350 sp=0xc002583210 pc=0xd6941c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Release(0xc000d3a300, 0x1918220, 0x2230940) :1 +0x58 fp=0xc002583378 sp=0xc002583350 pc=0xd97158 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x1918220, 0x2230940) pkg/sentry/fs/file.go:152 +0x10d fp=0xc0025833e8 sp=0xc002583378 pc=0x8400fd gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc001ed5a20, 0x1918220, 0x2230940, 0xc001c6f458) pkg/refs/refcounter.go:500 +0x186 fp=0xc002583438 sp=0xc0025833e8 pc=0x60ac46 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc001ed5a20, 0x1918220, 0x2230940) pkg/sentry/fs/file.go:146 +0x85 fp=0xc002583488 sp=0xc002583438 pc=0x812af5 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc001cfdfb0, 0xc001ed5a20) pkg/sentry/kernel/fd_table.go:148 +0x1d7 fp=0xc002583520 sp=0xc002583488 pc=0xb53437 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc001cfdfb0, 0x3, 0xc001f8b6b0, 0x0, 0xc000ed4800) pkg/sentry/kernel/fd_table_unsafe.go:155 +0x369 fp=0xc0025835d0 sp=0xc002583520 pc=0xb56ce9 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc001cfdfb0, 0x19184a0, 0xc0020e7500, 0x3, 0xc001f8b6b0, 0x0, 0xc000452000, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:442 +0x146 fp=0xc002583660 sp=0xc0025835d0 pc=0xb55216 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).NewFDAt(...) pkg/sentry/kernel/fd_table.go:416 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).NewFDAt(...) pkg/sentry/kernel/task.go:841 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup3(0xc0020e7500, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x1a5 fp=0xc002583740 sp=0xc002583660 pc=0xc3f0b5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0020e7500, 0x124, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x340, 0x0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x44e fp=0xc0025839e0 sp=0xc002583740 pc=0xbb67ee gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0020e7500, 0x124, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x407baa, 0xc0020e7dd7) pkg/sentry/kernel/task_syscall.go:238 +0xb5 fp=0xc002583ac0 sp=0xc0025839e0 pc=0xbb7ea5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0020e7500, 0x124, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x11698a2, 0x2c1dc32) pkg/sentry/kernel/task_syscall.go:198 +0x10a fp=0xc002583b70 sp=0xc002583ac0 pc=0xbb780a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0020e7500, 0x2, 0xc0020e7500) pkg/sentry/kernel/task_syscall.go:173 +0x1e8 fp=0xc002583cb0 sp=0xc002583b70 pc=0xbb6ff8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0020e7500, 0x18e9da0, 0x0) pkg/sentry/kernel/task_run.go:275 +0x11d9 fp=0xc002583ee8 sp=0xc002583cb0 pc=0xba3949 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0020e7500, 0x3cc2) pkg/sentry/kernel/task_run.go:93 +0x31d fp=0xc002583fd0 sp=0xc002583ee8 pc=0xba1b1d runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc002583fd8 sp=0xc002583fd0 pc=0x46b961 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0x19e