Re: [vpp-dev] SIGSEGV when adding route and abf with the same gateway

2019-07-30 Thread fdr . kozlov
Hi Neale,
The patch fixed my problem.
Thanks.

Fedor
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13615): https://lists.fd.io/g/vpp-dev/message/13615
Mute This Topic: https://lists.fd.io/mt/32639594/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] SIGSEGV when adding route and abf with the same gateway

2019-07-30 Thread Neale Ranns via Lists.Fd.Io

Hi,

Here’s the fix:
  https://gerrit.fd.io/r/c/20914/

/neale

De :  au nom de "Neale Ranns via Lists.Fd.Io" 

Répondre à : "Neale Ranns (nranns)" 
Date : lundi 29 juillet 2019 à 19:25
À : "fdr.koz...@yandex.com" , "vpp-dev@lists.fd.io" 

Cc : "vpp-dev@lists.fd.io" 
Objet : Re: [vpp-dev] SIGSEGV when adding route and abf with the same gateway


Hi,

You can reorder the route and ABF programming as a work around.
I’ll have a fix shortly.

/neale

De :  au nom de "fdr.koz...@yandex.com" 

Date : lundi 29 juillet 2019 à 08:24
À : "vpp-dev@lists.fd.io" 
Objet : [vpp-dev] SIGSEGV when adding route and abf with the same gateway

Hi vpp-dev
When I add an abf policy and then add a route to the same gateway, a SIGSEGV 
will appear.
These are the steps to generate the problem:
First setup interfaces:
vppctl set int state GigabitEthernet3/0/0 up
vppctl set int state GigabitEthernet4/0/0 up
vppctl set int ip address GigabitEthernet3/0/0 200.200.200.2/24
vppctl set int ip address GigabitEthernet4/0/0 100.100.100.1/24
Now create an acl using vpp_api_test
acl_add_replace permit dst 1.1.1.1
And then add abf policy and route which cause crash
vppctl abf policy add id 9001 acl 0 via 100.100.100.2 GigabitEthernet4/0/0
vppctl abf attach ip4 policy 9001 priority 1 GigabitEthernet3/0/0
vppctl ip route add 8.8.8.0/24 via 100.100.100.2 GigabitEthernet4/0/0

I see this SIGSEGV on both master and stable/1904 branches:

received signal SIGSEGV, PC 0x7f51a1b60160, faulting address 0x7f61608d8814
#0  0x7f51a0fde0db 0x7f51a0fde0db
#1  0x7f51a0904890 0x7f51a0904890
#2  0x7f51a1b60160 fib_urpf_list_lock + 0x10
#3  0x7f51a1b5408f fib_entry_src_mk_lb + 0x1bf
#4  0x7f51a1b54391 fib_entry_src_action_install + 0x131
#5  0x7f51a1b51691 fib_entry_create + 0x71
#6  0x7f51a1b486b8 fib_table_entry_update + 0x1c8
#7  0x7f51a1b6398e fib_api_route_add_del + 0x7e
#8  0x7f51a1879e3f vl_api_ip_route_add_del_t_handler + 0x21f
#9  0x7f51a1f26d8c vl_msg_api_handler_with_vm_node + 0x8c
#10 0x7f51a1f0b815 vl_mem_api_handle_msg_main + 0x45
#11 0x7f51a1f1b38d 0x7f51a1f1b38d
#12 0x7f51a0f92ea6 0x7f51a0f92ea6
#13 0x7f51a04818bc 0x7f51a04818bc

What should I do to solve this problem?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13612): https://lists.fd.io/g/vpp-dev/message/13612
Mute This Topic: https://lists.fd.io/mt/32639594/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] SIGSEGV when adding route and abf with the same gateway

2019-07-29 Thread Neale Ranns via Lists.Fd.Io

Hi,

You can reorder the route and ABF programming as a work around.
I’ll have a fix shortly.

/neale

De :  au nom de "fdr.koz...@yandex.com" 

Date : lundi 29 juillet 2019 à 08:24
À : "vpp-dev@lists.fd.io" 
Objet : [vpp-dev] SIGSEGV when adding route and abf with the same gateway

Hi vpp-dev
When I add an abf policy and then add a route to the same gateway, a SIGSEGV 
will appear.
These are the steps to generate the problem:
First setup interfaces:
vppctl set int state GigabitEthernet3/0/0 up
vppctl set int state GigabitEthernet4/0/0 up
vppctl set int ip address GigabitEthernet3/0/0 200.200.200.2/24
vppctl set int ip address GigabitEthernet4/0/0 100.100.100.1/24
Now create an acl using vpp_api_test
acl_add_replace permit dst 1.1.1.1
And then add abf policy and route which cause crash
vppctl abf policy add id 9001 acl 0 via 100.100.100.2 GigabitEthernet4/0/0
vppctl abf attach ip4 policy 9001 priority 1 GigabitEthernet3/0/0
vppctl ip route add 8.8.8.0/24 via 100.100.100.2 GigabitEthernet4/0/0

I see this SIGSEGV on both master and stable/1904 branches:

received signal SIGSEGV, PC 0x7f51a1b60160, faulting address 0x7f61608d8814
#0  0x7f51a0fde0db 0x7f51a0fde0db
#1  0x7f51a0904890 0x7f51a0904890
#2  0x7f51a1b60160 fib_urpf_list_lock + 0x10
#3  0x7f51a1b5408f fib_entry_src_mk_lb + 0x1bf
#4  0x7f51a1b54391 fib_entry_src_action_install + 0x131
#5  0x7f51a1b51691 fib_entry_create + 0x71
#6  0x7f51a1b486b8 fib_table_entry_update + 0x1c8
#7  0x7f51a1b6398e fib_api_route_add_del + 0x7e
#8  0x7f51a1879e3f vl_api_ip_route_add_del_t_handler + 0x21f
#9  0x7f51a1f26d8c vl_msg_api_handler_with_vm_node + 0x8c
#10 0x7f51a1f0b815 vl_mem_api_handle_msg_main + 0x45
#11 0x7f51a1f1b38d 0x7f51a1f1b38d
#12 0x7f51a0f92ea6 0x7f51a0f92ea6
#13 0x7f51a04818bc 0x7f51a04818bc

What should I do to solve this problem?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13607): https://lists.fd.io/g/vpp-dev/message/13607
Mute This Topic: https://lists.fd.io/mt/32639594/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] SIGSEGV when adding route and abf with the same gateway

2019-07-29 Thread fdr . kozlov
Hi vpp-dev
When I add an abf policy and then add a route to the same gateway, a SIGSEGV 
will appear.
These are the steps to generate the problem:
First setup interfaces:
vppctl set int state GigabitEthernet3/0/0 up
vppctl set int state GigabitEthernet4/0/0 up
vppctl set int ip address GigabitEthernet3/0/0 200.200.200.2/24
vppctl set int ip address GigabitEthernet4/0/0 100.100.100.1/24
Now create an acl using vpp_api_test
acl_add_replace permit dst 1.1.1.1
And then add abf policy and route which cause crash
vppctl abf policy add id 9001 acl 0 via 100.100.100.2 GigabitEthernet4/0/0
vppctl abf attach ip4 policy 9001 priority 1 GigabitEthernet3/0/0
vppctl ip route add 8.8.8.0/24 via 100.100.100.2 GigabitEthernet4/0/0

I see this SIGSEGV on both master and stable/1904 branches:

received signal SIGSEGV, PC 0x7f51a1b60160, faulting address 0x7f61608d8814
#0  0x7f51a0fde0db 0x7f51a0fde0db
#1  0x7f51a0904890 0x7f51a0904890
#2  0x7f51a1b60160 fib_urpf_list_lock + 0x10
#3  0x7f51a1b5408f fib_entry_src_mk_lb + 0x1bf
#4  0x7f51a1b54391 fib_entry_src_action_install + 0x131
#5  0x7f51a1b51691 fib_entry_create + 0x71
#6  0x7f51a1b486b8 fib_table_entry_update + 0x1c8
#7  0x7f51a1b6398e fib_api_route_add_del + 0x7e
#8  0x7f51a1879e3f vl_api_ip_route_add_del_t_handler + 0x21f
#9  0x7f51a1f26d8c vl_msg_api_handler_with_vm_node + 0x8c
#10 0x7f51a1f0b815 vl_mem_api_handle_msg_main + 0x45
#11 0x7f51a1f1b38d 0x7f51a1f1b38d
#12 0x7f51a0f92ea6 0x7f51a0f92ea6
#13 0x7f51a04818bc 0x7f51a04818bc

What should I do to solve this problem?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13601): https://lists.fd.io/g/vpp-dev/message/13601
Mute This Topic: https://lists.fd.io/mt/32639594/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-