OpenFastPath / ofp

OpenFastPath project
BSD 3-Clause "New" or "Revised" License
349 stars 126 forks source link

Seg fault after changing IP address running fpm in ofp_arp_save_ipv4_pkt (ofp_arp.c:585) #205

Closed RadulescuValentin closed 6 years ago

RadulescuValentin commented 6 years ago

Start fpm application and then login using telnet.

ifconfig fp0 192.168.10.100/24 Run ping ping 192.168.10.100 PING 192.168.10.100 (192.168.10.100) 56(84) bytes of data. 64 bytes from 192.168.10.100: icmp_seq=1 ttl=64 time=0.026 ms 64 bytes from 192.168.10.100: icmp_seq=3 ttl=64 time=0.061 ms 64 bytes from 192.168.10.100: icmp_seq=5 ttl=64 time=0.042 ms 64 bytes from 192.168.10.100: icmp_seq=7 ttl=64 time=0.043 ms Change IP address: ifconfig fp0 192.168.10.200/24 ping 192.168.10.200 PING 192.168.10.200 (192.168.10.200) 56(84) bytes of data. From 192.168.10.1 icmp_seq=9 Destination Host Unreachable From 192.168.10.1 icmp_seq=10 Destination Host Unreachable

Below backtrace: [Switching to Thread 0x7fff9edfd700 (LWP 14366)] ofp_arp_save_ipv4_pkt (pkt=pkt@entry=0x7fffc8ae9540, nh_param=0x7fffd69d6aac, ipv4_addr=1678420160, dev=) at ofp_arp.c:585 585 if (newarp->is_valid) (gdb) bt

0 ofp_arp_save_ipv4_pkt (pkt=pkt@entry=0x7fffc8ae9540, nh_param=0x7fffd69d6aac, ipv4_addr=1678420160, dev=) at ofp_arp.c:585

1 0x0000000000407044 in ofp_ip_output_add_eth (pkt=pkt@entry=0x7fffc8ae9540, odata=odata@entry=0x7fff9eda7cd0) at ofp_pkt_processing.c:999

2 0x0000000000407f43 in ofp_ip_output_continue (odata=0x7fff9eda7cd0, pkt=0x7fffc8ae9540) at ofp_pkt_processing.c:1211

3 ofp_ip_output_common_inline (is_local_out=0, nh_param=0x7fffd69d6aac, pkt=0x7fffc8ae9540) at ofp_pkt_processing.c:1163

4 ofp_ipv4_processing (pkt=) at ofp_pkt_processing.c:437

5 0x0000000000409d2e in ofp_packet_input (pkt=0x7fffc8ae9540, in_queue=, pkt_func=pkt_func@entry=0x409ae0 ) at ofp_pkt_processing.c:1459

6 0x0000000000409fc4 in default_event_dispatcher (arg=0x409ae0 ) at ofp_pkt_processing.c:111

7 0x00007ffff7bd3307 in _odph_thread_run_start_routine (arg=0x7fffffffd700) at threads.c:56

8 0x00007ffff6fd46ba in start_thread (arg=0x7fff9edfd700) at pthread_create.c:333

9 0x00007ffff6d0a41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

(gdb)