panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xd5085c] goroutine 719974 [running]: panic(0x154cea0, 0x21f4350) GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc0010a51e0 sp=0xc0010a5128 pc=0x43611d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc0010a5210 sp=0xc0010a51e0 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(0xc084f18300, 0x18f5cc0, 0x21f5930) pkg/sentry/socket/netstack/netstack.go:507 +0x42c fp=0xc0010a5350 sp=0xc0010a5210 pc=0xd5085c gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketOperations).Release(0xc084f18300, 0x18f5cc0, 0x21f5930) :1 +0x58 fp=0xc0010a5378 sp=0xc0010a5350 pc=0xd7dcf8 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x18f5cc0, 0x21f5930) pkg/sentry/fs/file.go:152 +0x10d fp=0xc0010a53e8 sp=0xc0010a5378 pc=0x83a9cd gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc0835386e0, 0x18f5cc0, 0x21f5930, 0xc00113d458) pkg/refs/refcounter.go:467 +0x186 fp=0xc0010a5438 sp=0xc0010a53e8 pc=0x60a7d6 gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc0835386e0, 0x18f5cc0, 0x21f5930) pkg/sentry/fs/file.go:146 +0x85 fp=0xc0010a5488 sp=0xc0010a5438 pc=0x80d3c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc0854bc540, 0xc0835386e0) pkg/sentry/kernel/fd_table.go:148 +0x1d7 fp=0xc0010a5520 sp=0xc0010a5488 pc=0xb4cc57 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc0854bc540, 0x4, 0xc083538580, 0x0, 0xc08c3a8100) pkg/sentry/kernel/fd_table_unsafe.go:155 +0x369 fp=0xc0010a55d0 sp=0xc0010a5520 pc=0xb50509 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc0854bc540, 0x18f5ec0, 0xc001df3500, 0x4, 0xc083538580, 0x0, 0xc00041e100, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:442 +0x146 fp=0xc0010a5660 sp=0xc0010a55d0 pc=0xb4ea36 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(0xc001df3500, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x1a5 fp=0xc0010a5740 sp=0xc0010a5660 pc=0xc29095 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc001df3500, 0x124, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x340, 0x0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x44e fp=0xc0010a59e0 sp=0xc0010a5740 pc=0xbb000e gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc001df3500, 0x124, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x407baa, 0xc001df3dd7) pkg/sentry/kernel/task_syscall.go:238 +0xb5 fp=0xc0010a5ac0 sp=0xc0010a59e0 pc=0xbb16c5 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc001df3500, 0x124, 0x3, 0x4, 0x0, 0x0, 0x0, 0x0, 0x1149ec2, 0x2be2cb2) pkg/sentry/kernel/task_syscall.go:198 +0x10a fp=0xc0010a5b70 sp=0xc0010a5ac0 pc=0xbb102a gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc001df3500, 0x2, 0xc001df3500) pkg/sentry/kernel/task_syscall.go:173 +0x1e8 fp=0xc0010a5cb0 sp=0xc0010a5b70 pc=0xbb0818 gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc001df3500, 0x18c8000, 0x0) pkg/sentry/kernel/task_run.go:275 +0x11d9 fp=0xc0010a5ee8 sp=0xc0010a5cb0 pc=0xb9d169 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc001df3500, 0x89fa) pkg/sentry/kernel/task_run.go:93 +0x31d fp=0xc0010a5fd0 sp=0xc0010a5ee8 pc=0xb9b33d runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc0010a5fd8 sp=0xc0010a5fd0 pc=0x46b961 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0x19e