panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x9e14a5] goroutine 377498 [running]: panic({0x11f0ea0, 0x2119f30}) GOROOT/src/runtime/panic.go:1147 +0x3a8 fp=0xc013581540 sp=0xc013581480 pc=0x4351c8 runtime.panicmem(...) GOROOT/src/runtime/panic.go:221 runtime.sigpanic() GOROOT/src/runtime/signal_unix.go:735 +0x327 fp=0xc013581590 sp=0xc013581540 pc=0x44bd67 gvisor.dev/gvisor/pkg/sentry/kernel.(*ThreadGroup).MigrateCgroup(0x0, {0xc001795170, {0x155fbe0, 0xc00449f500}}) pkg/sentry/kernel/task_cgroup.go:140 +0x85 fp=0xc013581668 sp=0xc013581590 pc=0x9e14a5 gvisor.dev/gvisor/pkg/sentry/fsimpl/cgroupfs.(*cgroupProcsData).Write(0xc000352ba0, {0x1576490, 0xc0041db500}, 0xc001bc8f40, {{0x15698c8, 0xc00a1d3000}, {0x0, 0x1, 0x20000080, 0xb}, ...}, ...) pkg/sentry/fsimpl/cgroupfs/base.go:305 +0x131 fp=0xc0135816d0 sp=0xc013581668 pc=0xc9db91 gvisor.dev/gvisor/pkg/sentry/vfs.(*DynamicBytesFileDescriptionImpl).pwriteLocked(0xc001bc8ee0, {0x1576490, 0xc0041db500}, {{0x15698c8, 0xc00a1d3000}, {0x0, 0x1, 0x20000080, 0xb}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description_impl_util.go:381 +0x2a3 fp=0xc0135817f0 sp=0xc0135816d0 pc=0x7298c3 gvisor.dev/gvisor/pkg/sentry/vfs.(*DynamicBytesFileDescriptionImpl).Write(0xc001bc8ee0, {0x1576490, 0xc0041db500}, {{0x15698c8, 0xc00a1d3000}, {0x0, 0x1, 0x20000080, 0xb}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description_impl_util.go:402 +0xb2 fp=0xc013581880 sp=0xc0135817f0 pc=0x729bf2 gvisor.dev/gvisor/pkg/sentry/fsimpl/kernfs.(*DynamicBytesFD).Write(0x0, {0x1576490, 0xc0041db500}, {{0x15698c8, 0xc00a1d3000}, {0x0, 0x1, 0x20000080, 0xb}, {0x0, ...}}, ...) pkg/sentry/fsimpl/kernfs/dynamic_bytes_file.go:125 +0x65 fp=0xc0135818e8 sp=0xc013581880 pc=0x8350c5 gvisor.dev/gvisor/pkg/sentry/vfs.(*FileDescription).Write(0xc001bc8f40, {0x1576490, 0xc0041db500}, {{0x15698c8, 0xc00a1d3000}, {0x0, 0x1, 0x20000080, 0xb}, {0x0, ...}}, ...) pkg/sentry/vfs/file_description.go:665 +0xa5 fp=0xc013581968 sp=0xc0135818e8 pc=0x726465 gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.write(0x43fcb1, 0xc001bc8f40, {{0x15698c8, 0xc00a1d3000}, {0x0, 0x1, 0x20000080, 0xb}, {0x0, 0x1}}, ...) pkg/sentry/syscalls/linux/vfs2/read_write.go:348 +0x8e fp=0xc013581ab8 sp=0xc013581968 pc=0xef958e gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.Write(0xc0041db500, {{0x6}, {0x20000080}, {0xb}, {0x0}, {0x0}, {0x0}}) pkg/sentry/syscalls/linux/vfs2/read_write.go:317 +0x265 fp=0xc013581bf8 sp=0xc013581ab8 pc=0xef8d65 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0041db500, 0x1, {{0x6}, {0x20000080}, {0xb}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:103 +0x2d7 fp=0xc013581ca8 sp=0xc013581bf8 pc=0xa020f7 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0041db500, 0xf591a0, {{0x6}, {0x20000080}, {0xb}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:238 +0x57 fp=0xc013581d18 sp=0xc013581ca8 pc=0xa02eb7 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc00aae3ee0, 0x158a4b8, {{0x6}, {0x20000080}, {0xb}, {0x0}, {0x0}, {0x0}}) pkg/sentry/kernel/task_syscall.go:198 +0x85 fp=0xc013581d78 sp=0xc013581d18 pc=0xa02a85 gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc0041db500) pkg/sentry/kernel/task_syscall.go:173 +0x38e fp=0xc013581e40 sp=0xc013581d78 pc=0xa0274e gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc004a1b680, 0xc0041db500) pkg/sentry/kernel/task_run.go:254 +0x111b fp=0xc013581f60 sp=0xc013581e40 pc=0x9f583b gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0041db500, 0x4458) pkg/sentry/kernel/task_run.go:95 +0x1ec fp=0xc013581fc0 sp=0xc013581f60 pc=0x9f40ac gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start·dwrap·236() pkg/sentry/kernel/task_start.go:339 +0x2a fp=0xc013581fe0 sp=0xc013581fc0 pc=0xa00a6a runtime.goexit() src/runtime/asm_amd64.s:1581 +0x1 fp=0xc013581fe8 sp=0xc013581fe0 pc=0x469321 created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start pkg/sentry/kernel/task_start.go:339 +0x106