Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panic when inspecting output when using dynamic providers #21581

Closed
exekias opened this issue Oct 6, 2020 · 2 comments · Fixed by #21628
Closed

Panic when inspecting output when using dynamic providers #21581

exekias opened this issue Oct 6, 2020 · 2 comments · Fixed by #21628
Assignees

Comments

@exekias
Copy link
Contributor

exekias commented Oct 6, 2020

I got this error when trying to use ${docker.container.id} in an input config with default settings (master):

turing.local :: beats/x-pack/elastic-agent ‹master*› » ./elastic-agent inspect output -o default
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x475d4dd]
goroutine 70 [running]:
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.promoteProcessors(0xc00020ce70, 0xc0001ebb00)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/emitter.go:218 +0x9d
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.renderInputs(0x4be61a0, 0xc0002074c0, 0xc000207120, 0x3, 0x4, 0xc0001ebe01, 0xc0001ebef0, 0xc0000edbd8, 0x400e0c6)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/emitter.go:200 +0x263
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.(*emitterController).update(0xc0001af3b0, 0x20, 0x20)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/emitter.go:105 +0x57c
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.(*emitterController).Set(0xc0001af3b0, 0xc000207120, 0x3, 0x4)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/emitter.go:88 +0xbd
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.emitter.func1(0xc000207120, 0x3, 0x4)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/emitter.go:154 +0x48
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application.(*waitForCompose).Run.func1(0xc000207120, 0x3, 0x4)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/agent/application/inspect_output_cmd.go:241 +0x4c
github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/composable.(*controller).Run.func1(0x4bdd620, 0xc000044c40, 0xc00038b2e0, 0xc0001a6a00, 0xc00038b280, 0xc000347100)
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/composable/controller.go:168 +0x637
created by github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/composable.(*controller).Run
	/Users/exekias/go/src/github.com/elastic/beats/x-pack/elastic-agent/pkg/composable/controller.go:123 +0x77c
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@exekias
Copy link
Contributor Author

exekias commented Oct 6, 2020

cc @blakerouse

blakerouse added a commit to blakerouse/beats that referenced this issue Oct 7, 2020
blakerouse added a commit that referenced this issue Oct 12, 2020
…ld panic (#21628)

* Fix #21581.

* Add changelog entry.

* Add test for processors as a map.
blakerouse added a commit to blakerouse/beats that referenced this issue Oct 12, 2020
…ld panic (elastic#21628)

* Fix elastic#21581.

* Add changelog entry.

* Add test for processors as a map.

(cherry picked from commit f3d18f9)
blakerouse added a commit to blakerouse/beats that referenced this issue Oct 12, 2020
…ld panic (elastic#21628)

* Fix elastic#21581.

* Add changelog entry.

* Add test for processors as a map.

(cherry picked from commit f3d18f9)
blakerouse added a commit that referenced this issue Oct 13, 2020
…ld panic (#21628) (#21716)

* Fix #21581.

* Add changelog entry.

* Add test for processors as a map.

(cherry picked from commit f3d18f9)
blakerouse added a commit that referenced this issue Oct 13, 2020
…ld panic (#21628) (#21715)

* Fix #21581.

* Add changelog entry.

* Add test for processors as a map.

(cherry picked from commit f3d18f9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants