panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x798 pc=0x9f307b] goroutine 1728732 [running]: panic(0xefdde0, 0x1a3eb30) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc000d09688 sp=0xc000d095d0 pc=0x43438d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc000d096b8 sp=0xc000d09688 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(0xc00076b500, 0x1233ee0, 0x1a40110) pkg/sentry/socket/netstack/netstack.go:510 +0x2eb fp=0xc000d09788 sp=0xc000d096b8 pc=0x9f307b gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x1233ee0, 0x1a40110) pkg/sentry/fs/file.go:152 +0xaa fp=0xc000d097e0 sp=0xc000d09788 pc=0x6a604a gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc004ba4630, 0x1233ee0, 0x1a40110, 0xc000d09848) pkg/refs/refcounter.go:500 +0x17a fp=0xc000d09828 sp=0xc000d097e0 pc=0x559f7a gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc004ba4630, 0x1233ee0, 0x1a40110) pkg/sentry/fs/file.go:146 +0x73 fp=0xc000d09878 sp=0xc000d09828 pc=0x6869d3 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc004d80f60, 0xc004ba4630) pkg/sentry/kernel/fd_table.go:148 +0x121 fp=0xc000d098f8 sp=0xc000d09878 pc=0x892881 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc004d80f60, 0x4, 0xc004ba44d0, 0x0, 0xc001eb3f00) pkg/sentry/kernel/fd_table_unsafe.go:155 +0x20a fp=0xc000d09988 sp=0xc000d098f8 pc=0x89537a gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc004d80f60, 0x1234160, 0xc0043e5500, 0xc000000004, 0xc004ba44d0, 0x0, 0x2ac16b434c00, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:442 +0x103 fp=0xc000d099e0 sp=0xc000d09988 pc=0x893f73 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(0xc0043e5500, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x128 fp=0xc000d09a70 sp=0xc000d099e0 pc=0x926f38 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup2(0xc0043e5500, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:836 +0x1c9 fp=0xc000d09b08 sp=0xc000d09a70 pc=0x926da9 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0043e5500, 0x21, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1063720, ...) pkg/sentry/kernel/task_syscall.go:103 +0x122 fp=0xc000d09c68 sp=0xc000d09b08 pc=0x8cd952 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0043e5500, 0x21, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc000d09cf0 sp=0xc000d09c68 pc=0x8ceb36 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0043e5500, 0x21, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x1206001, 0x100000000000000) pkg/sentry/kernel/task_syscall.go:198 +0x96 fp=0xc000d09d50 sp=0xc000d09cf0 pc=0x8ce6c6 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0043e5500, 0x2, 0xc0043e5500) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc000d09e10 sp=0xc000d09d50 pc=0x8ce05c gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0043e5500, 0x1206080, 0x0) pkg/sentry/kernel/task_run.go:275 +0xc18 fp=0xc000d09f60 sp=0xc000d09e10 pc=0x8c2a18 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0043e5500, 0x374e) pkg/sentry/kernel/task_run.go:93 +0x18b fp=0xc000d09fd0 sp=0xc000d09f60 pc=0x8c16eb runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc000d09fd8 sp=0xc000d09fd0 pc=0x467d61 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0xfe