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

nil pointer panic with hmc v0.0.5 #799

Closed
soerenschneider opened this issue Dec 16, 2024 · 1 comment
Closed

nil pointer panic with hmc v0.0.5 #799

soerenschneider opened this issue Dec 16, 2024 · 1 comment
Assignees

Comments

@soerenschneider
Copy link

After installing hmc version v0.0.5 via GitOps, I'm facing nil pointer panics that make the controller end up in crash loop backoff.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x19617b0]
goroutine 251 [running]:
[github.com/Mirantis/hmc/internal/telemetry.(*Tracker).trackManagedClusterHeartbeat(0x400028f9a0](http://github.com/Mirantis/hmc/internal/telemetry.(*Tracker).trackManagedClusterHeartbeat(0x400028f9a0), {0x248bb78, 0x40006322d0})
/workspace/internal/telemetry/tracker.go:94 +0x350
[github.com/Mirantis/hmc/internal/telemetry.(*Tracker).Tick(0x400028f9a0](http://github.com/Mirantis/hmc/internal/telemetry.(*Tracker).Tick(0x400028f9a0), {0x248bb78, 0x40006322d0})
/workspace/internal/telemetry/tracker.go:54 +0xf8
[github.com/Mirantis/hmc/internal/telemetry.(*Tracker).Start(0x400028f9a0](http://github.com/Mirantis/hmc/internal/telemetry.(*Tracker).Start(0x400028f9a0), {0x248bb78, 0x40006322d0})
/workspace/internal/telemetry/tracker.go:42 +0x44
sigs.k8s.io/controller-runtime/pkg/manager.(*runnableGroup).reconcile.func1(0x400028f9c0)
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/manager/runnable_group.go:226 +0xd0
created by sigs.k8s.io/controller-runtime/pkg/manager.(*runnableGroup).reconcile in goroutine 244
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/manager/runnable_group.go:210 +0x204

I guess the problem was introduced with commit 4822e0fa. The repo that was used to install hmc is found here.

@soerenschneider
Copy link
Author

Apparently it has already been fixed with #798, thanks!

@github-project-automation github-project-automation bot moved this from Todo to Done in Project 2A Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants