[ovs-discuss] new crash with openvswitch-2.4 in ovsdb_datum_equals

Andy Zhou azhou at nicira.com
Tue Oct 6 23:56:42 UTC 2015


On Mon, Oct 5, 2015 at 3:38 PM, Richukov Kes <kesri1234 at rediffmail.com>
wrote:

>
> Dear Sir:
>
> We upgrading to openvswitch-2.4 and ran ovs-vsctl set-controller command
> in a script to point to a controller and soon noticed a crash in ovs-
> vswitchd with below back trace. Can anyone please check if this has a fix
> in newer release or point me to what I am doing wrong?
>
> #0 0x00007f76793422b6 in __strcmp_sse42 () from /lib64/libc.so.6
> #1 0x00000000004b7ae5 in atom_arrays_compare_3way (a=0x29d79f8,
> b=0x7fff554b4f40, type=0x894e20) at lib/ovsdb-data.c:1582
> #2 ovsdb_datum_compare_3way (a=0x29d79f8, b=0x7fff554b4f40, type=0x894e20)
> at lib/ovsdb-data.c:1610
> #3 0x00000000004b7b69 in ovsdb_datum_equals (a=,
> b=, type=)
> at lib/ovsdb-data.c:1596
> #4 0x00000000004bb36e in ovsdb_idl_txn_write__ (row_=0x29d74a0,
> column=0x894e18, datum=0x7fff554b4f40, owns_datum=true)
> at lib/ovsdb-idl.c:2087
> #5 0x00000000004f04b5 in ovsrec_interface_set_statistics (row=0x29d74a0,
> key_statistics=, value_statistics=0x7fff554b50b0,
> n_statistics=12) at lib/vswitch-idl.c:11535
> #6 0x00000000004083e8 in iface_refresh_stats (iface=0x29c2c40)
> at vswitchd/bridge.c:2419
> #7 0x0000000000411a6c in run_stats_update () at vswitchd/bridge.c:2793
> #8 bridge_run () at vswitchd/bridge.c:3073
> #9 0x00000000004121ad in main (argc=10, argv=0x7fff554b5338)
> at vswitchd/ovs-vswitchd.c:131
>
> (gdb) frame 1
> #1 0x00000000004b7ae5 in atom_arrays_compare_3way (a=0x29d79f8,
> b=0x7fff554b4f40, type=0x894e20) at lib/ovsdb-data.c:1582
> 1582 int cmp = ovsdb_atom_compare_3way(&a[i], &b[i], type);
> (gdb) p *b
> $11 = {integer = 44305824, real = 2.1889985549088601e-316, boolean = 160,
> string = 0x2a40da0 "collisions", uuid = {parts = {44305824, 0, 2035982264,
> 32630}}}
> (gdb) p *a
> $12 = {integer = 10, real = 4.9406564584124654e-323, boolean = 10, <<<<<<<<
> string = 0xa , uuid = {parts = {10, 0,
> 2035982872, 32630}}}
>

It is not obvious what went wrong.  But this is what I can decode based on
the message:

The crash is in the part of the code that vswitchd updating interface
stats, not directly related
to setting of controller.  It seems the current (i.e. old) interface stats
stored in ovsdb is corrupted (object a).

I was not able reproduce this locally. Do you have steps on how to
reproduce this reliably?  If yes, I can help debug this further.

>
>
> Get your own *FREE* website, *FREE* domain & *FREE* mobile app with
> Company email.
> *Know More >*
> <http://track.rediff.com/click?url=___http://businessemail.rediff.com?sc_cid=sign-1-10-13___&cmp=host&lnk=sign-1-10-13&nsrv1=host>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20151006/6d4ae4a9/attachment-0002.html>


More information about the discuss mailing list