Hello Artem,

Looks like we need (at least) to add a check for nullptr.

DBGvpp# create tap
tap0
DBGvpp# set interface state tap0 up
DBGvpp# ip route add fa::1/120 via fe80::1 tap0

Thread 1 "vpp_main" received signal SIGSEGV, Segmentation fault.
0x00007ffff774ba90 in ip6_address_copy (dst=0x7fffaf487aa0, src=0x0) at
/home/zstas/vpp/src/vnet/ip/ip6_packet.h:129
129  dst->as_u64[0] = src->as_u64[0];
(gdb) bt
#0  0x00007ffff774ba90 in ip6_address_copy (dst=0x7fffaf487aa0, src=0x0) at
/home/zstas/vpp/src/vnet/ip/ip6_packet.h:129
#1  0x00007ffff774b892 in fib_sas6_get (sw_if_index=1, dst=0x7fffb91b4e50,
src=0x7fffaf487aa0) at /home/zstas/vpp/src/vnet/fib/fib_sas.c:105


On Fri, 20 Aug 2021 at 15:20, Artem Glazychev <artem.glazyc...@xored.com>
wrote:

> Hello,
>
> Found a crash: if we add the route via fe80:: *after* the interface
> upping - vpp crashes.
>
> For example:
>
> DBGvpp# create tap
>
> tap0
>
> DBGvpp# set int state tap0 up
>
> DBGvpp# ip route add fa::1/120 via fe80::1 tap0
>
> make: *** [Makefile:537: run] Aborted
>
>
>
> If we swap *set ... up* and *ip route ...* - no crashes.
>
> Could you please explain me if such a situation is possible at all?
> In any case, I believe that vpp should not crash.
>
> Thanks.
>
> 
>
>

-- 
Best regards
Stanislav Zaikin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19995): https://lists.fd.io/g/vpp-dev/message/19995
Mute This Topic: https://lists.fd.io/mt/85020362/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to