-
Notifications
You must be signed in to change notification settings - Fork 64
Description
I’m having an issue with adding a controller before I’ve added any ports.
When doing this, I get some packets from the controller that eventually cause the next assertion (in the LOCI module):
Of_object.c:95
ASSERT(obj->track_info.magic == OF_OBJECT_TRACKING_MAGIC &&
"of_object double free?");
-
Adding a controller with no ports – works well. -
Adding a ports, then adding a controller – works well. -
Adding the controller, then immediately adding ports – results in a packet with an empty buffer & assertion. -
Adding the controller, sleeping for a few more seconds, then adding ports – works well.
Backtrace:
Here is the log output:
Dec 11 05:14:52.299 ERROR: port: OF port not in use
Dec 11 05:14:52.299 ERROR: of_port_packet_emit() failed
Dec 11 05:14:52.299 ERROR: fwd: pkt_action_do() failed
ASSERT obj->track_info.magic == OF_OBJECT_TRACKING_MAGIC && "of_object double free?". /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/loci//src//of_object.c:95
Here is the backtrace:
Program terminated with signal 11, Segmentation fault.
#0 0x1022fd88 in of_object_delete (obj=0x10514c00)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/loci//src//of_object.c:94
94 /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/loci//src//of_object.c: No such file or directory.
in /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/loci//src//of_object.c
(gdb) bt
#0 0x1022fd88 in of_object_delete (obj=0x10514c00)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/loci//src//of_object.c:94
#1 0x10061e90 in of_packet_out_delete (obj=0x10514c00)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/loci//inc/loci/loci.h:6286
#2 0x10061e50 in ind_core_packet_out_handler (_obj=0x10514c00, cxn_id=0)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/OFStateManager//module/src//handlers.c:170
#3 0x10067e44 in indigo_core_receive_controller_message (cxn=0,
obj=0x10514c00)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/OFStateManager//module/src//ofstatemanager.c:200
#4 0x10056860 in of_msg_process (cxn=0x102d1848, obj=0x10514c00)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/OFConnectionManager//module/src//cxn_instance.c:706
#5 0x10057540 in process_message (cxn=0x102d1848)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/OFConnectionManager//module/src//cxn_instance.c:963
#6 0x10056bd0 in ind_cxn_process_read_buffer (cxn=0x102d1848)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/OFConnectionManager//module/src//cxn_instance.c:982
#7 0x10052114 in indigo_cxn_socket_ready_callback (socket_id=9,
---Type to continue, or q to quit---
cookie=0x102d1848, read_ready=1, write_ready=0, error_seen=0)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/OFConnectionManager//module/src//ofconnectionmanager.c:267
#8 0x10051a90 in ind_soc_select_and_run (run_for_ms=100)
at /.autodirect/mtrsysgwork/shaig/sdk7/indigo/Modules/Indigo/SocketManager//module/src//socketmanager.c:589
#9 0x10047898 in main (argc=3, argv=0xbfc89da4) at main.c:650