Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a controller before adding any ports causes an assertion in LOCI #9

Open
dtalayco opened this issue Jul 1, 2013 · 0 comments
Labels

Comments

@dtalayco
Copy link
Contributor

dtalayco commented Jul 1, 2013

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?");

  1.   Adding a controller with no ports – works well.
    
  2.   Adding a ports, then adding a controller – works well.
    
  3.   Adding the controller, then immediately adding ports – results in a packet with an empty buffer & assertion.
    
  4.   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

jnealtowns added a commit that referenced this issue Jan 11, 2014
  > Merge into master from pull request #10: Automated submodule updates. (floodlight/bigcode#10)
  > Latest.
  > Merge into master from pull request #9: Allow module logs to be set from the command line.  (floodlight/bigcode#9)
  > Merge branch 'master' of github.com:floodlight/bigcode
  > Initial.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant