panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd6941c] goroutine 207878 [running]: panic(0x156a380, 0x222f360) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc0007d71e0 sp=0xc0007d7128 pc=0x43611d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc0007d7210 sp=0xc0007d71e0 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(0xc001582200, 0x1918220, 0x2230940) pkg/sentry/socket/netstack/netstack.go:510 +0x42c fp=0xc0007d7350 sp=0xc0007d7210 pc=0xd6941c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Release(0xc001582200, 0x1918220, 0x2230940) :1 +0x58 fp=0xc0007d7378 sp=0xc0007d7350 pc=0xd97158 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x1918220, 0x2230940) pkg/sentry/fs/file.go:152 +0x10d fp=0xc0007d73e8 sp=0xc0007d7378 pc=0x8400fd gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc001656b00, 0x1918220, 0x2230940, 0xc001a57458) pkg/refs/refcounter.go:500 +0x186 fp=0xc0007d7438 sp=0xc0007d73e8 pc=0x60ac46 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc001656b00, 0x1918220, 0x2230940) pkg/sentry/fs/file.go:146 +0x85 fp=0xc0007d7488 sp=0xc0007d7438 pc=0x812af5 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc00112b680, 0xc001656b00) pkg/sentry/kernel/fd_table.go:148 +0x1d7 fp=0xc0007d7520 sp=0xc0007d7488 pc=0xb53437 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc00112b680, 0x4, 0xc000fb31e0, 0x0, 0xc001618200) pkg/sentry/kernel/fd_table_unsafe.go:155 +0x369 fp=0xc0007d75d0 sp=0xc0007d7520 pc=0xb56ce9 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc00112b680, 0x19184a0, 0xc000fa2000, 0x4, 0xc000fb31e0, 0x0, 0xc0000fa000, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:442 +0x146 fp=0xc0007d7660 sp=0xc0007d75d0 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(0xc000fa2000, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x1a5 fp=0xc0007d7740 sp=0xc0007d7660 pc=0xc3f0b5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000fa2000, 0x124, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x340, 0x0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x44e fp=0xc0007d79e0 sp=0xc0007d7740 pc=0xbb67ee gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000fa2000, 0x124, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x407baa, 0xc000fa28d7) pkg/sentry/kernel/task_syscall.go:238 +0xb5 fp=0xc0007d7ac0 sp=0xc0007d79e0 pc=0xbb7ea5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000fa2000, 0x124, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x11698a2, 0x2c1dc32) pkg/sentry/kernel/task_syscall.go:198 +0x10a fp=0xc0007d7b70 sp=0xc0007d7ac0 pc=0xbb780a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000fa2000, 0x2, 0xc000fa2000) pkg/sentry/kernel/task_syscall.go:173 +0x1e8 fp=0xc0007d7cb0 sp=0xc0007d7b70 pc=0xbb6ff8 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000fa2000, 0x18e9da0, 0x0) pkg/sentry/kernel/task_run.go:275 +0x11d9 fp=0xc0007d7ee8 sp=0xc0007d7cb0 pc=0xba3949 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000fa2000, 0x2f8f) pkg/sentry/kernel/task_run.go:93 +0x31d fp=0xc0007d7fd0 sp=0xc0007d7ee8 pc=0xba1b1d runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc0007d7fd8 sp=0xc0007d7fd0 pc=0x46b961 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0x19e