cagent run <()
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xb8 pc=0x101500344]
goroutine 1 [running]:
github.com/docker/cagent/pkg/agent.(*Agent).MaxIterations(...)
github.com/docker/cagent/pkg/agent/agent.go:81
github.com/docker/cagent/cmd/root.doRunCommand({0x101e19d28, 0x102c7a040}, {0x14000813a40, 0x1, 0x1}, 0x0)
github.com/docker/cagent/cmd/root/run.go:247 +0x944
github.com/docker/cagent/cmd/root.runCommand(0x140001e9808, {0x14000813a40, 0x1, 0x1})
github.com/docker/cagent/cmd/root/run.go:86 +0x64
github.com/spf13/cobra.(*Command).execute(0x140001e9808, {0x14000813a10, 0x1, 0x1})
github.com/spf13/cobra@v1.10.1/command.go:1015 +0x7d4
github.com/spf13/cobra.(*Command).ExecuteC(0x140001e9208)
github.com/spf13/cobra@v1.10.1/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.10.1/command.go:1071
github.com/docker/cagent/cmd/root.Execute()
github.com/docker/cagent/cmd/root/root.go:151 +0x130
github.com/docker/cagent/cmd/root.Run(...)
github.com/docker/cagent/cmd/root/root.go:129
main.main()
./main.go:6 +0x20
cagent run <()
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0xb8 pc=0x101500344]
goroutine 1 [running]:
github.com/docker/cagent/pkg/agent.(*Agent).MaxIterations(...)
github.com/docker/cagent/pkg/agent/agent.go:81
github.com/docker/cagent/cmd/root.doRunCommand({0x101e19d28, 0x102c7a040}, {0x14000813a40, 0x1, 0x1}, 0x0)
github.com/docker/cagent/cmd/root/run.go:247 +0x944
github.com/docker/cagent/cmd/root.runCommand(0x140001e9808, {0x14000813a40, 0x1, 0x1})
github.com/docker/cagent/cmd/root/run.go:86 +0x64
github.com/spf13/cobra.(*Command).execute(0x140001e9808, {0x14000813a10, 0x1, 0x1})
github.com/spf13/cobra@v1.10.1/command.go:1015 +0x7d4
github.com/spf13/cobra.(*Command).ExecuteC(0x140001e9208)
github.com/spf13/cobra@v1.10.1/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.10.1/command.go:1071
github.com/docker/cagent/cmd/root.Execute()
github.com/docker/cagent/cmd/root/root.go:151 +0x130
github.com/docker/cagent/cmd/root.Run(...)
github.com/docker/cagent/cmd/root/root.go:129
main.main()
./main.go:6 +0x20