yanet-platform / yanet

A high performance framework for forwarding traffic based on DPDK
Other
164 stars 17 forks source link

stl_vector #196

Open Denyme opened 1 month ago

Denyme commented 1 month ago

hi. when i try add static route line yanet-cli rib static insert default x.x.x.x/28 x.x.x.x get error: /usr/include/c++/9/bits/stl_vector.h:1060: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Alloc = std::allocator; std::vector<_Tp, _Alloc>::const_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed. Aborted (core dumped)

Denyme commented 1 month ago

config typical from demo, but use balancer, not firewall

Denyme commented 1 month ago

build like docs (https://github.com/yanet-platform/yanet/blob/main/docs/build.md). I use mlx5 network card. dataplane.conf: { "ports": [ { "interfaceName": "kni0", "pci": "0000:07:00.0", "coreIds": [ 3 ], "symmetric_mode": true, "rssFlags": [] } ], "workerGC": [ 1 ], "controlPlaneCoreId": 0 } controlplane: { "modules": { "lp0": { "type": "logicalPort", "physicalPort": "kni0", "nextModule": "acl0" }, "acl0": { "type": "acl", "nextModules": [ "balancer0". "route0" ] }, "balancer0": { "type: "balancer", "source_ipv4": "x.x.x.x", "services": "service.conf", "nextModule": "route0" } "route0": { "type": "route", "interfaces": { "lo": { "ipAddresses": [ "x.x.x.x" ] }, "ki0": { "neighborIPv4Address": "y.y.y.y", "neighborMacAddress: "xx:xx:xx:xx:xx:xx", "nextModule": "lp0" } } } } }

GeorgyKirichenko commented 1 month ago

Hi and thanks for the report! We are starting to work on the issue reproduction and will return with update soon.

Could you provide us with your system specification (CPU network card and memory should be enough). It would be great to see output of the following commands:

WBR Georgy

Denyme commented 1 month ago

cpu.txt x16 meminfo.txt pci.txt