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

Beyla crashes when some Kubernetes properties are missing #739

Open
marctc opened this issue Apr 15, 2024 · 5 comments
Open

Beyla crashes when some Kubernetes properties are missing #739

marctc opened this issue Apr 15, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@marctc
Copy link
Contributor

marctc commented Apr 15, 2024

There's en edge case where Kubernetes decoration is enabled but the value of InformersSyncTimeout is not set (time out 0). Beyla logs this error, but the execution continues leading to this panic:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x59c435b]

github.com/grafana/beyla/pkg/internal/transform/kube.(*Database).OwnerPodInfo(0x0, 0xf0000dff)
        /go/pkg/mod/github.com/grafana/beyla@v1.4.1-0.20240328093156-fca861576b2c/pkg/internal/transform/kube/db.go:66 +0x1b
github.com/grafana/beyla/pkg/transform.(*metadataDecorator).do(0xc002fd99e0?, 0xc006685d40)
        /go/pkg/mod/github.com/grafana/beyla@v1.4.1-0.20240328093156-fca861576b2c/pkg/transform/k8s.go:100 +0x28
github.com/grafana/beyla/pkg/transform.(*metadataDecorator).nodeLoop(0xc002fd9670, 0xc00317ee40, 0xc0032b8660)
        /go/pkg/mod/github.com/grafana/beyla@v1.4.1-0.20240328093156-fca861576b2c/pkg/transform/k8s.go:92 +0x14b
github.com/mariomac/pipes/pkg/node.(*Middle[...]).start.func1()
        /go/pkg/mod/github.com/mariomac/pipes@v0.9.0/pkg/node/node.go:185 +0x3b
created by github.com/mariomac/pipes/pkg/node.(*Middle[...]).start in goroutine 373
        /go/pkg/mod/github.com/mariomac/pipes@v0.9.0/pkg/node/node.go:184 +0x259
@marctc marctc added the bug Something isn't working label Apr 15, 2024
@mschmidt291
Copy link

I encounter the same issue when enabling the Kubernetes Metadata decoration (through Grafana Alloy) on a local Colima Kubernetes Cluster.

@marctc
Copy link
Contributor Author

marctc commented Apr 17, 2024

@mschmidt291 this will be fixed in the next Alloy version!

@sanketgawade
Copy link

is there a workaround for this ?

@sambestsolutions
Copy link

sambestsolutions commented May 31, 2024

Any update or workaround for this it is effecting all the go services running on kubernetes.

@marctc
Copy link
Contributor Author

marctc commented May 31, 2024

Any update or workaround for this it is effecting all the go services running on kubernetes.

Can you describe the scenario/config where this is happening? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants