osrg / gobgp

BGP implemented in the Go Programming Language
https://osrg.github.io/gobgp/
Apache License 2.0
3.59k stars 684 forks source link

add route with 2k community, gobgpd failed #2629

Open xiaoxiangjian opened 1 year ago

xiaoxiangjian commented 1 year ago

[root@centos ~]# ./gobgpd -f gobgod.conf {"level":"info","msg":"gobgpd started","time":"2023-02-28T11:38:42+08:00"} {"Topic":"Config","level":"info","msg":"Finished reading the config file","time":"2023-02-28T11:38:42+08:00"} {"Key":"101.0.50.12","Topic":"config","level":"info","msg":"Add Peer","time":"2023-02-28T11:38:42+08:00"} {"Key":"101.0.50.12","Topic":"Peer","level":"info","msg":"Add a peer configuration","time":"2023-02-28T11:38:42+08:00"} {"Key":"101.0.50.12","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2023-02-28T11:38:51+08:00"} panic: runtime error: makeslice: cap out of range

goroutine 33 [running]: github.com/osrg/gobgp/v3/internal/pkg/table.(packerV4).pack.func1(0xfffffffffffffceb, {0xc00000e168, 0x1, 0x1}) /home/runner/work/gobgp/gobgp/internal/pkg/table/message.go:402 +0x46 github.com/osrg/gobgp/v3/internal/pkg/table.(packerV4).pack.func3(0xc0002b8550?, {0xc00000e168, 0x1, 0x1}, 0xc000081bc8) /home/runner/work/gobgp/gobgp/internal/pkg/table/message.go:427 +0x93 github.com/osrg/gobgp/v3/internal/pkg/table.(packerV4).pack(0xc0002b8780, {0xc00000e148, 0x1, 0x8?}) /home/runner/work/gobgp/gobgp/internal/pkg/table/message.go:467 +0x466 github.com/osrg/gobgp/v3/internal/pkg/table.CreateUpdateMsgFromPaths({0xc00000e100, 0x1, 0x0?}, {0xc00000e148, 0x1, 0x1}) /home/runner/work/gobgp/gobgp/internal/pkg/table/message.go:516 +0x42c github.com/osrg/gobgp/v3/pkg/server.(fsmHandler).sendMessageloop(0xc0001fb650, {0xe38ad8, 0xc00026d100}, 0x0?) /home/runner/work/gobgp/gobgp/pkg/server/fsm.go:1729 +0x2f6 created by github.com/osrg/gobgp/v3/pkg/server.(*fsmHandler).established /home/runner/work/gobgp/gobgp/pkg/server/fsm.go:1778 +0x1cd

fujita commented 1 year ago

Can you share a pcap file?