[ovs-dev] Open vSwitch crashes when running NOX with some components

Derek Cormier derek.cormier at lab.ntt.co.jp
Thu Nov 11 04:41:02 UTC 2010


Yes, it is happening with OVS. Here is the backtrace from gdb after it 
crashes:


#0  cls_table_next_rule (table=0x6c96d0, rule=0x6c95e0) at 
lib/classifier.c:96
#1  0x000000000043ce8e in handle_table_stats_request (ofconn=0x6c7ae0,
     oh=<value optimized out>) at ofproto/ofproto.c:3054
#2  handle_stats_request (ofconn=0x6c7ae0, oh=<value optimized out>)
     at ofproto/ofproto.c:3518
#3  0x000000000043d8a3 in handle_openflow (p=<value optimized out>)
     at ofproto/ofproto.c:4066
#4  ofconn_run (p=<value optimized out>) at ofproto/ofproto.c:1701
#5  ofproto_run1 (p=<value optimized out>) at ofproto/ofproto.c:1094
#6  0x0000000000426280 in bridge_run_one () at vswitchd/bridge.c:1497
#7  bridge_run () at vswitchd/bridge.c:1212
#8  0x00000000004276e5 in main (argc=<value optimized out>,
     argv=<value optimized out>) at vswitchd/ovs-vswitchd.c:92

The crash occurs as soon as I send a ping from one of the VM's connected 
to the bridge. I send the ping to the bridge's IP address.


--Derek

On 11/11/2010 12:37 PM, Justin Pettit wrote:
> The crash is happening on the OVS side, right?  You'd want to run gdb on OVS, since it has the problem.  (A controller should not be able to crash a switch.)  My guess is that there's some issue with the flow normalization code.  I don't think the flow you're pushing down will do what you want, but that's no excuse for the switch to crash.  (I think the flow you want would have an ethertype of 0x0800 and IP protocol type of UDP or TCP, assuming you meant to set the source IP address and L4 destination port that's below.)
>
> --Justin
>
>
> On Nov 10, 2010, at 6:59 PM, Derek Cormier wrote:
>
>    
>> Sure thing! I used gdb in class before, but that was a while ago... How can I compile nox to include the debugging information for gdb? Can I pass something to make?
>>
>> Thanks,
>> Derek
>>
>> On 11/11/2010 11:44 AM, Justin Pettit wrote:
>>      
>>> Yikes.  This definitely belongs here.  Are you comfortable enough with gdb to send us a backtrace?
>>>
>>> Thanks!
>>>
>>> --Justin
>>>
>>>
>>> On Nov 10, 2010, at 6:37 PM, Derek Cormier wrote:
>>>
>>>
>>>        
>>>> Hello,
>>>>
>>>> I wasn't really sure if this belongs on the OVS or NOX message board, but here is the problem. I am trying to use the NOX GUI, so I run NOX with:
>>>>
>>>> nox_core -i ptcp:6633 pyswitch monitoring discovery lavi messenger jsonmessenger
>>>>
>>>> However, when I run nox_core with components other than pyswitch, Open vSwitch crashes with a segmentation fault immediately after it connects. As for why I am using those exact components, I don't really know. I remember reading somewhere that I should use these for the GUI.
>>>>
>>>> The same thing happens with NOX 0.9.0 and 0.9.1. I am using Open vSwitch 1.1.0pre2.
>>>>
>>>> Here is some OVS output:
>>>>
>>>> Nov 11 11:22:28|00004|ofproto|INFO|using datapath ID 000000232080da00
>>>> Nov 11 11:22:28|00005|bridge|INFO|created bridge br0 on system at dp1
>>>> Nov 11 11:22:28|00006|bridge|INFO|created port eth1 on bridge br0
>>>> Nov 11 11:22:28|00007|bridge|INFO|created port eth2 on bridge br0
>>>> Nov 11 11:22:28|00008|bridge|INFO|created port br0 on bridge br0
>>>> Nov 11 11:22:28|00009|ofproto|INFO|datapath ID changed to 00000800270fd560
>>>> Nov 11 11:22:28|00010|rconn|INFO|dp1<->tcp:127.0.0.1:6633: connecting...
>>>> Nov 11 11:22:28|00011|rconn|INFO|dp1<->tcp:127.0.0.1:6633: connected
>>>> Nov 11 11:22:28|00012|ofproto|INFO|dp1<->tcp:127.0.0.1:6633: normalization changed ofp_match, details:
>>>> Nov 11 11:22:28|00013|ofproto|INFO| pre: wildcards=0xffffffff  in_port=    0  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src= 0x1040018  nw_dst= 0x4010000  tp_src=    0  tp_dst= 8992
>>>> Nov 11 11:22:28|00014|ofproto|INFO|post: wildcards= 0x23fffff  in_port=    0  dl_src=00:00:00:00:00:00  dl_dst=00:00:00:00:00:00  dl_vlan=    0  dl_vlan_pcp=  0  dl_type=     0  nw_tos=   0  nw_proto=   0  nw_src=         0  nw_dst=         0  tp_src=    0  tp_dst=    0
>>>> Segmentation fault
>>>>
>>>> Thanks for your help,
>>>> Derek
>>>>
>>>>
>>>> _______________________________________________
>>>> dev mailing list
>>>> dev at openvswitch.org
>>>> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
>>>>
>>>>          
>>>
>>>
>>>
>>>
>>>        
>>
>> _______________________________________________
>> dev mailing list
>> dev at openvswitch.org
>> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org
>>      
>
>
>
>
>    





More information about the dev mailing list