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

IPv6 interface {} is nil, not string #46

Open
securebitag opened this issue Jan 28, 2023 · 5 comments
Open

IPv6 interface {} is nil, not string #46

securebitag opened this issue Jan 28, 2023 · 5 comments

Comments

@securebitag
Copy link

Jan 28 16:52:05 rs1 birdwatcher[485554]: panic: interface conversion: interface {} is nil, not string
Jan 28 16:52:05 rs1 birdwatcher[485554]: goroutine 33 [running]:
Jan 28 16:52:05 rs1 birdwatcher[485554]: github.com/alice-lg/birdwatcher/bird.parseRouteLines(0xc000126400, 0x12, 0x20, 0x75, 0xc000060180)
Jan 28 16:52:05 rs1 birdwatcher[485554]: #11/root/go/pkg/mod/github.com/alice-lg/[email protected]/bird/parser.go:335 +0x1089
Jan 28 16:52:05 rs1 birdwatcher[485554]: github.com/alice-lg/birdwatcher/bird.workerForRouteBlockParsing(0xc000060120, 0xc000060180, 0xc0002a60c0)
Jan 28 16:52:05 rs1 birdwatcher[485554]: #11/root/go/pkg/mod/github.com/alice-lg/[email protected]/bird/parser.go:313 +0x73
Jan 28 16:52:05 rs1 birdwatcher[485554]: created by github.com/alice-lg/birdwatcher/bird.startRouteWorkers.func1
Jan 28 16:52:05 rs1 birdwatcher[485554]: #11/root/go/pkg/mod/github.com/alice-lg/[email protected]/bird/parser.go:271 +0x65
Jan 28 16:52:05 rs1 systemd[1]: birdwatcher6.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 28 16:52:05 rs1 systemd[1]: birdwatcher6.service: Failed with result 'exit-code'.

@annikahannig
Copy link
Member

I think I need some more details on the birdc output
Can you please attach the output of birdc show route all?

(Or show route table 'master6' all depending on your setup).

@annikahannig
Copy link
Member

Looks like parseMainRouteDetail[Bird2] does not fill in the network attribute, so I would need to see the output and check why the regex fails.

@securebitag
Copy link
Author

Thanks for your fast feedback.

There are a lot of routes, to much to paste here.
I posted them on pastebin:
https://pastebin.com/QxbHLr8Q

@annikahannig
Copy link
Member

Thanks. I could not see anything obviously wrong and tried some of the regexes in use.
I'll need to make a test case out of this and investigate deeper.

@securebitag
Copy link
Author

ok, thank you.
if we can help in this case, please let us know.

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

No branches or pull requests

2 participants