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

Avoid segfault on shutdown #41

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Avoid segfault on shutdown #41

merged 1 commit into from
Oct 22, 2024

Conversation

louisroyer
Copy link
Member

No description provided.

```
srv6-ctrl  | [GIN] 2024/10/22 - 16:28:26 | 204 |       3.972µs | fd00::2:8000:0:3 | DELETE   "/routers/a0d59214-7805-4577-b59f-d5bb6bbbb8b2"
srv6-ctrl  | [GIN] 2024/10/22 - 16:28:27 | 204 |       4.756µs | fd00::2:8000:0:4 | DELETE   "/routers/f25ea57d-1d08-4063-a744-0fddd00bc358"
srv6-ctrl  | [GIN] 2024/10/22 - 16:28:27 | 204 |       3.153µs | fd00::2:8000:0:5 | DELETE   "/routers/26c55959-34ef-498c-b060-c932e053fadf"
srv6-ctrl  | [GIN] 2024/10/22 - 16:28:27 | 204 |        3.24µs | fd00::2:8000:0:2 | DELETE   "/routers/33174bca-0892-46f2-8052-418df245a5d2"
srv6-ctrl  | panic: runtime error: invalid memory address or nil pointer dereference
srv6-ctrl  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x99713e]
srv6-ctrl  |
srv6-ctrl  | goroutine 1 [running]:
srv6-ctrl  | github.com/nextmn/go-pfcp-networking/pfcp.(*onceClosePfcpConn).Close(...)
srv6-ctrl  |    /go/pkg/mod/github.com/nextmn/[email protected]/pfcp/entity.go:49
srv6-ctrl  | github.com/nextmn/go-pfcp-networking/pfcp.(*PFCPEntity).closePfcpConn(0xc0002d0e60)
srv6-ctrl  |    /go/pkg/mod/github.com/nextmn/[email protected]/pfcp/entity.go:75 +0xde
srv6-ctrl  | github.com/nextmn/go-pfcp-networking/pfcp.(*PFCPEntity).Close(0xc0002d0e60)
srv6-ctrl  |    /go/pkg/mod/github.com/nextmn/[email protected]/pfcp/entity.go:272 +0x29
srv6-ctrl  | github.com/nextmn/srv6-ctrl/internal/app.Setup.Run({0xc0002d85b0?, 0xc0002d0e60?}, {0xc19038, 0xc0001a7980})
srv6-ctrl  |    /go/pkg/mod/github.com/nextmn/[email protected]/internal/app/setup.go:36 +0x92
srv6-ctrl  | main.main.func2(0xc0001a7a00)
srv6-ctrl  |    /go/pkg/mod/github.com/nextmn/[email protected]/main.go:64 +0x1df
srv6-ctrl  | github.com/urfave/cli/v2.(*Command).Run(0xc0002da2c0, 0xc0001a7a00, {0xc0001a6000, 0x4, 0x4})
srv6-ctrl  |    /go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:276 +0x97d
srv6-ctrl  | github.com/urfave/cli/v2.(*App).RunContext(0xc0002d6000, {0xc19038, 0xc0001a7980}, {0xc0001a6000, 0x4, 0x4})
srv6-ctrl  |    /go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333 +0x5a5
srv6-ctrl  | main.main()
srv6-ctrl  |    /go/pkg/mod/github.com/nextmn/[email protected]/main.go:89 +0x405
srv6-ctrl exited with code 2
```
@louisroyer louisroyer self-assigned this Oct 22, 2024
@louisroyer louisroyer merged commit 2bc53f0 into master Oct 22, 2024
2 checks passed
@louisroyer louisroyer deleted the avoid-segfault branch October 22, 2024 19:04
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.

1 participant