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

fix daemon crash on collector ping start/stop #462

Merged
merged 6 commits into from
Nov 14, 2023

Conversation

cgalibern
Copy link
Contributor

No description provided.

…(fix)

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

goroutine 56 [running]:
github.com/opensvc/om3/core/collector.(*Pinger).Stop(...)
	/home/runner/work/om3/om3/core/collector/rpc.go:86
github.com/opensvc/om3/daemon/collector.(*T).onConfigUpdated(0xc0040b01e0)
	/home/runner/work/om3/om3/daemon/collector/main.go:180 +0x110
github.com/opensvc/om3/daemon/collector.(*T).onClusterConfigUpdated(...)
	/home/runner/work/om3/om3/daemon/collector/main.go:167
The t.ctx was changed to nil during ping stop

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

goroutine 2986 [running]:
github.com/opensvc/om3/core/collector.(*Pinger).Start.func1()
    /root/dev/om3/core/collector/rpc.go:77 +0x114
created by github.com/opensvc/om3/core/collector.(*Pinger).Start in goroutine 1533
    /root/dev/om3/core/collector/rpc.go:64 +0xab
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xae5a05]

goroutine 102 [running]:
github.com/opensvc/om3/core/collector.(*Pinger).Start.func1()
	/home/runner/work/om3/om3/core/collector/rpc.go:64 +0xa5
created by github.com/opensvc/om3/core/collector.(*Pinger).Start
	/home/runner/work/om3/om3/core/collector/rpc.go:62 +0xb4
@cgalibern cgalibern merged commit 47047eb into opensvc:main Nov 14, 2023
1 check failed
@cgalibern cgalibern deleted the fix_feed_pinger branch January 2, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant