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

Forwarder sometimes crashes with segmentation fault after restart #953

Closed
szvincze opened this issue Oct 3, 2023 · 6 comments
Closed

Forwarder sometimes crashes with segmentation fault after restart #953

szvincze opened this issue Oct 3, 2023 · 6 comments
Assignees

Comments

@szvincze
Copy link

szvincze commented Oct 3, 2023

I tested several forwarder restarts sequentially and sometimes it thrown panic on a segmentation fault:

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

goroutine 276 [running]:
github.com/networkservicemesh/sdk-vpp/pkg/networkservice/pinhole.tunnelIPSwIfIndex({0x147caf0, 0xc000986b10}, {0x7f7d585f7c18?, 0xc0000bf120}, {0xc00028bb00, 0x10, 0x10})
	/root/go/pkg/mod/github.com/networkservicemesh/sdk-vpp@v0.0.0-20231002104338-c5aa8c256465/pkg/networkservice/pinhole/common.go:210 +0x3d2
github.com/networkservicemesh/sdk-vpp/pkg/networkservice/pinhole.create({0x147caf0, 0xc000986b10}, {0x7f7d585f7c18, 0xc0000bf120}, {0xc00028bb00, 0x10, 0x10}, 0x12b5, {0xc00002a8a0, 0x15})

See the logs attached: forwarder-restart-segfault.log

@denis-tingaikin
Copy link
Member

denis-tingaikin commented Oct 3, 2023

@szvincze Nice catch! 

The panic should be fixed, and now we are supposed to check what happens next with the forwawer.

Could you please re-test with the latest forwarder?

@denis-tingaikin
Copy link
Member

@szvincze
Copy link
Author

szvincze commented Oct 3, 2023

I need some time to reconfigure my environment to use the latest image but will test it.

@szvincze
Copy link
Author

szvincze commented Oct 4, 2023

I have been testing this image for a while. The panic haven't happened so far but haven't even seen the corresponding error message in the logs.

@denis-tingaikin
Copy link
Member

That's good news. Could we close the ticket?

@szvincze
Copy link
Author

szvincze commented Oct 4, 2023

I close it now. If something happen during the coming tests I can open another one.

@szvincze szvincze closed this as completed Oct 4, 2023
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

3 participants