panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x798 pc=0x9e6e3b] goroutine 791929 [running]: panic(0xef2ca0, 0x1a1bb30) D0827 19:02:29.328306 12955 task_signals.go:220] [ 30389] Signal 23: delivering to handler GOROOT/src/runtime/panic.go:1064 +0x46d fp=0xc003185688 sp=0xc0031855d0 pc=0x43438d runtime.panicmem(...) GOROOT/src/runtime/panic.go:212 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:695 +0x3da fp=0xc0031856b8 sp=0xc003185688 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(0xc002064200, 0x12245a0, 0x1a1d110) pkg/sentry/socket/netstack/netstack.go:507 +0x2eb fp=0xc003185788 sp=0xc0031856b8 pc=0x9e6e3b gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef.func1(0x12245a0, 0x1a1d110) pkg/sentry/fs/file.go:152 +0xaa fp=0xc0031857e0 sp=0xc003185788 pc=0x6a350a gvisor.dev/gvisor/pkg/refs.(*AtomicRefCount).DecRefWithDestructor(0xc002922790, 0x12245a0, 0x1a1d110, 0xc003185848) pkg/refs/refcounter.go:467 +0x17a fp=0xc003185828 sp=0xc0031857e0 pc=0x559bfa gvisor.dev/gvisor/pkg/sentry/fs.(*File).DecRef(0xc002922790, 0x12245a0, 0x1a1d110) pkg/sentry/fs/file.go:146 +0x73 fp=0xc003185878 sp=0xc003185828 pc=0x683e93 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).drop(0xc0020457d0, 0xc002922790) pkg/sentry/kernel/fd_table.go:148 +0x121 fp=0xc0031858f8 sp=0xc003185878 pc=0x88f6e1 gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).setAll(0xc0020457d0, 0x3, 0xc002930160, 0x0, 0xc000b5e500) pkg/sentry/kernel/fd_table_unsafe.go:155 +0x20a fp=0xc003185988 sp=0xc0031858f8 pc=0x8921da gvisor.dev/gvisor/pkg/sentry/kernel.(*FDTable).newFDAt(0xc0020457d0, 0x12247a0, 0xc0035f7500, 0xc000000003, 0xc002930160, 0x0, 0x2b327812cc00, 0x0, 0x0) pkg/sentry/kernel/fd_table.go:442 +0x103 fp=0xc0031859e0 sp=0xc003185988 pc=0x890dd3 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(0xc0035f7500, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:855 +0x128 fp=0xc003185a70 sp=0xc0031859e0 pc=0x91cef8 gvisor.dev/gvisor/pkg/sentry/syscalls/linux.Dup2(0xc0035f7500, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) pkg/sentry/syscalls/linux/sys_file.go:836 +0x1c9 fp=0xc003185b08 sp=0xc003185a70 pc=0x91cd69 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0035f7500, 0x21, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1055cc0, ...) pkg/sentry/kernel/task_syscall.go:103 +0x122 fp=0xc003185c68 sp=0xc003185b08 pc=0x8ca7b2 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0035f7500, 0x21, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/sentry/kernel/task_syscall.go:238 +0x66 fp=0xc003185cf0 sp=0xc003185c68 pc=0x8cb996 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc0035f7500, 0x21, 0x4, 0x3, 0x0, 0x0, 0x0, 0x0, 0x11f6e01, 0x100000000000000) pkg/sentry/kernel/task_syscall.go:198 +0x96 fp=0xc003185d50 sp=0xc003185cf0 pc=0x8cb526 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0035f7500, 0x2, 0xc0035f7500) pkg/sentry/kernel/task_syscall.go:173 +0x15c fp=0xc003185e10 sp=0xc003185d50 pc=0x8caebc gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc0035f7500, 0x11f6e80, 0x0) pkg/sentry/kernel/task_run.go:275 +0xc18 fp=0xc003185f60 sp=0xc003185e10 pc=0x8bf878 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0035f7500, 0x84c5) pkg/sentry/kernel/task_run.go:93 +0x18b fp=0xc003185fd0 sp=0xc003185f60 pc=0x8be54b runtime.goexit() src/runtime/asm_amd64.s:1373 +0x1 fp=0xc003185fd8 sp=0xc003185fd0 pc=0x467d61 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:318 +0xfe