panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd46a5c] goroutine 334213 [running]: panic(0x1537740, 0x21cb350) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc0011810d8 sp=0xc001181020 pc=0x43611d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc001181108 sp=0xc0011810d8 pc=0x44ec4a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Kernel(...) pkg/sentry/kernel/task.go:636 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Release(0xc00174ab00, 0x18db5e0, 0x21cc930) pkg/sentry/socket/netstack/netstack.go:507 +0x42c fp=0xc001181248 sp=0xc001181108 pc=0xd46a5c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Release(0xc00174ab00, 0x18db5e0, 0x21cc930) :1 +0x58 fp=0xc001181270 sp=0xc001181248 pc=0xd73ef8 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x18db5e0, 0x21cc930) pkg/sentry/fs/file.go:152 +0x10d fp=0xc0011812e0 sp=0xc001181270 pc=0x83a09d gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc000b17e40, 0x18db5e0, 0x21cc930, 0xc001811350) pkg/refs/refcounter.go:467 +0x186 fp=0xc001181330 sp=0xc0011812e0 pc=0x60a7d6 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc000b17e40, 0x18db5e0, 0x21cc930) pkg/sentry/fs/file.go:146 +0x85 fp=0xc001181380 sp=0xc001181330 pc=0x80ca95 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc00092f960, 0xc000b17e40) pkg/sentry/kernel/fd_table.go:148 +0x1d7 fp=0xc001181418 sp=0xc001181380 pc=0xb47647 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc00092f960, 0x4, 0xc001643550, 0x0, 0xc000d4cb00) pkg/sentry/kernel/fd_table_unsafe.go:153 +0x369 fp=0xc0011814c8 sp=0xc001181418 pc=0xb4a949 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc00092f960, 0x18db7e0, 0xc000e7b500, 0x4, 0xc001643550, 0x0, 0xb25000, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:443 +0x146 fp=0xc001181558 sp=0xc0011814c8 pc=0xb494a6 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).NewFDAt(...) pkg/sentry/kernel/fd_table.go:417 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).NewFDAt(...) pkg/sentry/kernel/task.go:836 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup3(0xc000e7b500, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x1a5 fp=0xc001181638 sp=0xc001181558 pc=0xc1f295 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup2(0xc000e7b500, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:836 +0x24b fp=0xc001181740 sp=0xc001181638 pc=0xc1f08b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000e7b500, 0x21, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x340, 0x0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x44e fp=0xc0011819e0 sp=0xc001181740 pc=0xba709e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000e7b500, 0x21, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x407baa, 0xc000e7bdd7) pkg/sentry/kernel/task_syscall.go:238 +0xb5 fp=0xc001181ac0 sp=0xc0011819e0 pc=0xba8755 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000e7b500, 0x21, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x1135cb2, 0x2bb98b2) pkg/sentry/kernel/task_syscall.go:198 +0x10a fp=0xc001181b70 sp=0xc001181ac0 pc=0xba80ba gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000e7b500, 0x2, 0xc000e7b500) pkg/sentry/kernel/task_syscall.go:173 +0x1e8 fp=0xc001181cb0 sp=0xc001181b70 pc=0xba78a8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000e7b500, 0x18adec0, 0x0) pkg/sentry/kernel/task_run.go:275 +0x11d9 fp=0xc001181ee8 sp=0xc001181cb0 pc=0xb941e9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000e7b500, 0x3c83) pkg/sentry/kernel/task_run.go:93 +0x31d fp=0xc001181fd0 sp=0xc001181ee8 pc=0xb923bd runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc001181fd8 sp=0xc001181fd0 pc=0x46b961 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0x19e