Looks like ovs_router_unixctl_register() isn't getting called in ovs-dpctl,
so we hit this crash. If I explicitly call this after main, it works fine.
I am not sure when this broke and am trying to figure that out.

Thanks.

Starting program: /usr/local/bin/ovs-dpctl show
warning: no loadable sections found in added symbol-file system-supplied
DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
system@ovs-system:
lookups: hit:233628938 missed:7992 lost:6794
flows: 0
masks: hit:250662084 total:1 hit/pkt:1.07
port 0: ovs-system (internal)
port 1: br0 (internal)
ovs-dpctl: lib/classifier.c:933: ovs_mutex_lock_at() passed uninitialized
ovs_mutex
port 2: vxlan_sys_4789 (vxlan
Program received signal SIGABRT, Aborted.
0x00007ffff6cf6425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007ffff6cf6425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff6cf9b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x0000000000443c6e in ovs_abort_valist (err_no=<optimized out>,
format=<optimized out>, args=<optimized out>) at lib/util.c:323
#3  0x0000000000443cf7 in ovs_abort (err_no=<optimized out>,
format=<optimized out>) at lib/util.c:315
#4  0x000000000043a06d in ovs_mutex_lock_at (where=0x4a3c23
"lib/classifier.c:933", l_=<optimized out>) at lib/ovs-thread.c:74
#5  ovs_mutex_lock_at (l_=0x6dfb40, where=0x4a3c23 "lib/classifier.c:933")
at lib/ovs-thread.c:74
#6  0x0000000000480cc3 in cls_cursor_start (cls=<optimized out>,
target=<optimized out>, safe=true) at lib/classifier.c:933
#7  0x0000000000479749 in ovs_router_flush () at lib/ovs-router.c:258
#8  0x0000000000479a00 in route_map_clear () at lib/route-table.c:290
#9  route_table_reset () at lib/route-table.c:174
#10 0x0000000000479bb9 in route_table_register () at lib/route-table.c:106
#11 0x0000000000467502 in netdev_vport_construct (netdev_=<optimized out>)
at lib/netdev-vport.c:230
#12 0x0000000000411859 in netdev_open (name=<optimized out>, type=0x4953ea
"vxlan", netdevp=0x7fffffffea88) at lib/netdev.c:375
#13 0x000000000040902c in show_dpif (dpif=0x6e0ed0, dpctl_p=0x6ddba0) at
lib/dpctl.c:527
#14 0x000000000040a493 in dpctl_show (dpctl_p=0x6ddba0, argc=<optimized
out>, argv=<optimized out>) at lib/dpctl.c:643
#15 dpctl_show (argc=<optimized out>, argv=<optimized out>,
dpctl_p=0x6ddba0) at lib/dpctl.c:604
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to