panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x798 pc=0x9f356b] goroutine 1603569 [running]: panic(0xf016c0, 0x1a46b30) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc0012df688 sp=0xc0012df5d0 pc=0x43438d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc0012df6b8 sp=0xc0012df688 pc=0x44b8fa gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Kernel(...) pkg/sentry/kernel/task.go:641 gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).Release(0xc0018d6200, 0x1238600, 0x1a48110) pkg/sentry/socket/netstack/netstack.go:510 +0x2eb fp=0xc0012df788 sp=0xc0012df6b8 pc=0x9f356b gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x1238600, 0x1a48110) pkg/sentry/fs/file.go:152 +0xaa fp=0xc0012df7e0 sp=0xc0012df788 pc=0x6a606a gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc003226bb0, 0x1238600, 0x1a48110, 0xc003233848) pkg/refs/refcounter.go:500 +0x17a fp=0xc0012df828 sp=0xc0012df7e0 pc=0x559f7a gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc003226bb0, 0x1238600, 0x1a48110) pkg/sentry/fs/file.go:146 +0x73 fp=0xc0012df878 sp=0xc0012df828 pc=0x6869f3 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc00379d8f0, 0xc003226bb0) pkg/sentry/kernel/fd_table.go:148 +0x121 fp=0xc0012df8f8 sp=0xc0012df878 pc=0x892da1 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc00379d8f0, 0x0, 0xc003173ef0, 0x0, 0xc000869200) pkg/sentry/kernel/fd_table_unsafe.go:155 +0x20a fp=0xc0012df988 sp=0xc0012df8f8 pc=0x89589a gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc00379d8f0, 0x1238880, 0xc00249aa80, 0xc000000000, 0xc003173ef0, 0x0, 0x2b9434ef6c00, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:442 +0x103 fp=0xc0012df9e0 sp=0xc0012df988 pc=0x894493 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(0xc00249aa80, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x128 fp=0xc0012dfa70 sp=0xc0012df9e0 pc=0x927458 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup2(0xc00249aa80, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:836 +0x1c9 fp=0xc0012dfb08 sp=0xc0012dfa70 pc=0x9272c9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc00249aa80, 0x21, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1067b00, ...) pkg/sentry/kernel/task_syscall.go:103 +0x122 fp=0xc0012dfc68 sp=0xc0012dfb08 pc=0x8cde72 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc00249aa80, 0x21, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc0012dfcf0 sp=0xc0012dfc68 pc=0x8cf056 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00249aa80, 0x21, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x120a701, 0x100000000000000) pkg/sentry/kernel/task_syscall.go:198 +0x96 fp=0xc0012dfd50 sp=0xc0012dfcf0 pc=0x8cebe6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc00249aa80, 0x2, 0xc00249aa80) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc0012dfe10 sp=0xc0012dfd50 pc=0x8ce57c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc00249aa80, 0x120a700, 0x0) pkg/sentry/kernel/task_run.go:275 +0xc18 fp=0xc0012dff60 sp=0xc0012dfe10 pc=0x8c2f38 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc00249aa80, 0xfb32) pkg/sentry/kernel/task_run.go:93 +0x18b fp=0xc0012dffd0 sp=0xc0012dff60 pc=0x8c1c0b runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc0012dffd8 sp=0xc0012dffd0 pc=0x467d61 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0xfe