I am seeing a segfault with ovs-vswitchd when a VM attached to a OVS bridge is shutdown.
I am running openvswitch-2.0.0 on linux kernel:3.10.30

Is this a known issue with any fix in the git repository?

Core was generated by `ovs-vswitchd --pidfile --detach'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000458cf4 in netdev_get_etheraddr (netdev=0xe19af0,
    mac=0xe198d6 "") at lib/netdev.c:627
627        return netdev->netdev_class->get_etheraddr(netdev, mac);
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-10.el6_4.6.x86_64 libcom_err-1.41.12-14.el6_4.2.x86_64 libcom_err-1.41.12-18.el6.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 openssl-1.0.1e-16.el6_5.4.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0  0x0000000000458cf4 in netdev_get_etheraddr (netdev=0xe19af0,
    mac=0xe198d6 "") at lib/netdev.c:627
#1  0x00000000004213df in send_bpdu_cb (pkt=0xe1c360, port_num=1,
    ofproto_=0xdfdd30) at ofproto/ofproto-dpif.c:2021
#2  0x0000000000494b09 in stp_send_bpdu (p=0xe1f498, bpdu=0x7fffecef88d0,
    bpdu_size=35) at lib/stp.c:1548
#3  0x000000000049547a in stp_transmit_config (p=0xe1f498) at lib/stp.c:1046
#4  0x0000000000495526 in stp_config_bpdu_generation (stp=0xe1f3b0)
    at lib/stp.c:1106
#5  0x000000000049589c in stp_hello_timer_expiry (stp=0xe1f3b0,
    ms=<value optimized out>) at lib/stp.c:1352
#6  stp_tick (stp=0xe1f3b0, ms=<value optimized out>) at lib/stp.c:366
#7  0x00000000004257f0 in stp_run (ofproto_=0xdfdd40)
    at ofproto/ofproto-dpif.c:2203
#8  run (ofproto_=0xdfdd40) at ofproto/ofproto-dpif.c:1529
#9  0x0000000000416a1b in ofproto_run (p=0xdfdd40) at ofproto/ofproto.c:1355
#10 0x000000000040cfc4 in bridge_run () at vswitchd/bridge.c:2381
#11 0x000000000040e57a in main (argc=<value optimized out>,
    argv=<value optimized out>) at vswitchd/ovs-vswitchd.c:118

looks like netdev ptr passed to netdev_get_etheraddr is invalid.

(gdb) p *netdev
$1 = {name = 0xe016c0 "", netdev_class = 0x0, ref_cnt = 14692480,
  node = 0xe15930, saved_flags_list = {prev = 0x130, next = 0x20}}

Disabling STP seems to avoid this segfault
  ovs-vsctl set bridge ovs-br0 stp_enable=false

Thanks
Sridhar
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to