Skip to content

cagent run <() panics #373

Description

@dgageot

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions