Skip to content

panic in logp #338

@florianl

Description

@florianl

When updating elastic-agent-libs to the latest version v0.21.6, we ran into panics in out tests:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xefd1f0]

goroutine 20 [running]:
github.com/elastic/elastic-agent-libs/logp.(*Logger).Named(0x0, {0x17f02df, 0x3})
	/go/pkg/mod/github.com/elastic/[email protected]/logp/logger.go:176 +0x30
github.com/elastic/elastic-agent-libs/transport/tlscommon.(*TLSConfig).ToConfig(0xc000312f70)
	/go/pkg/mod/github.com/elastic/[email protected]/transport/tlscommon/tls_config.go:109 +0x1e5

We do configure the TLS part the following way:

tlscommon.LoadTLSServerConfig(cfg.TLS, logp.NewNopLogger())

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions