Hi, I need to model an ATM network. First I've compiled/installed NS-2.35 (allinone release) on Mac OS X 10.6.8 (patch attached). This installation passed all the validation tests.
Then I got ATM patch <http://www.cs.unh.edu/cnrg/people/sowmyam/ns-atm/> from University of New Hampshire (it's for ns-2.1b7, I retrofitted it to ns-2.35, ATM patch for ns-2.35 is available upon request as I'm not sure an uninvited 158KB post here would be appreciated). It all compiles fine, and again passes all ns-2.35 validation tests. However when I try to run the example script atm-atmf-rel.tcl, the simulator segfault's (crashes :). The output of the run is shown below. I'd appreciate any help and any pointer to how I can find & fix this problem. Thanks! (gdb) run atm-atmf-rel.tcl Starting program: /Users/ur20980/Src/ns-allinone-2.35/bin/ns atm-atmf-rel.tcl Reading symbols for shared libraries .+++++++....... done warning: no class variable pvc_db::linknum_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable pvc_db::linknum_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o579 warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o591 warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o603 warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o615 warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o627 warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o639 warning: no class variable AtmScheduler::bytes-per-round see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmScheduler::debug_ scheduler = _o651 warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable AtmConditioner::debug_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable TBF::debug_ see tcl-object.tcl in tclcl for info about this warning. ATMPVC::vpi/vci = 0/101,scr = 0 ATMPVC::vpi/vci = 0/102,scr = 0 AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... ATMPVC::vpi/vci = 0/201,scr = 0 ATMPVC::vpi/vci = 0/202,scr = 0 AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... ATMPVC::vpi/vci = 0/301,scr = 0 ATMPVC::vpi/vci = 0/302,scr = 0 AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... ATMPVC::vpi/vci = 0/401,scr = 0 ATMPVC::vpi/vci = 0/402,scr = 0 AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... ATMPVC::vpi/vci = 0/501,scr = 0 ATMPVC::vpi/vci = 0/502,scr = 0 AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... ATMPVC::vpi/vci = 0/601,scr = 0 ATMPVC::vpi/vci = 0/602,scr = 0 AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="src_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... warning: no class variable Agent/SARDriver::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/SARDriver::delay_ warning: no class variable Agent/SARDriver::bw_ AAL5::set_parameters() aal_type="dst_aal" AAL5::set_parameters() aal_type.size()=7 aal_type.capacity=7 AAL5::set_parameters() assigned, exiting... set-qlength qlength = 200,qnum = 0 set-qweight set qwt. qweight = 5,qnum = 0 set-qlength qlength = 200,qnum = 0 set-qweight set qwt. qweight = 5,qnum = 0 set-qlength qlength = 500,qnum = 1 set-qweight set qwt. qweight = 3,qnum = 1 set-qlength qlength = 500,qnum = 2 set-qweight set qwt. qweight = 2,qnum = 2 set-qlength qlength = 500,qnum = 3 set-qweight set qwt. qweight = 1,qnum = 3 set-qlength qlength = 500,qnum = 4 set-qweight set qwt. qweight = 1,qnum = 4 set-qlength qlength = 200,qnum = 0 set-qlength qlength = 200,qnum = 0 set-qlength qlength = 500,qnum = 0 set-qlength qlength = 500,qnum = 0 set-qlength qlength = 500,qnum = 0 set-qlength qlength = 500,qnum = 0 vals are 0, e(0) and e(6) vals are 1, e(0) and e(6) vals are 2, e(0) and e(6) vals are 3, e(0) and e(6) vals are 4, e(0) and e(6) before incr j, vals are 4, e(0) and e(6) vals are 4, e(1) and e(7) trace b/w 28 and 2 trace b/w 13 and 29 vals are 5, e(1) and e(7) before incr j, vals are 5, e(1) and e(7) vals are 5, e(2) and e(8) trace b/w 30 and 4 trace b/w 14 and 31 vals are 6, e(2) and e(8) before incr j, vals are 6, e(2) and e(8) vals are 6, e(3) and e(9) trace b/w 32 and 6 trace b/w 15 and 33 vals are 7, e(3) and e(9) before incr j, vals are 7, e(3) and e(9) vals are 7, e(4) and e(10) trace b/w 34 and 8 trace b/w 16 and 35 vals are 8, e(4) and e(10) trace b/w 36 and 10 trace b/w 17 and 37 vals are 9, e(5) and e(11) vals are 10, e(5) and e(11) vals are 11, e(5) and e(11) Policy Table(4): Flow (20 to 21): Token Bucket policer, initial code point 0, CIR 4000000.0 bps, CBS 1500.0 bytes. Flow (22 to 23): Token Bucket policer, initial code point 0, CIR 4000000.0 bps, CBS 1500.0 bytes. Flow (24 to 25): Token Bucket policer, initial code point 0, CIR 4000000.0 bps, CBS 1500.0 bytes. Flow (26 to 27): Token Bucket policer, initial code point 0, CIR 4000000.0 bps, CBS 1500.0 bytes. Policer Table: Token Bucket policer code point 0 is policed to code point 1. Token Bucket policer code point 0 is policed to code point 1. Token Bucket policer code point 0 is policed to code point 1. Token Bucket policer code point 0 is policed to code point 1. Policy Table(1): Flow (28 to 29): TSW3CM policer, initial code point 10, CIR 5000000.0 bps, PIR 6000000.0 bytes. Policer Table: TSW3CM policer code point 10 is policed to yellow code point 11 and red code point 12. Policy Table(1): Flow (30 to 31): TSW3CM policer, initial code point 20, CIR 3500000.0 bps, PIR 4500000.0 bytes. Policer Table: TSW3CM policer code point 20 is policed to yellow code point 21 and red code point 22. Policy Table(1): Flow (32 to 33): TSW3CM policer, initial code point 30, CIR 2000000.0 bps, PIR 3000000.0 bytes. Policer Table: TSW3CM policer code point 30 is policed to yellow code point 31 and red code point 32. Policy Table(1): Flow (34 to 35): TSW3CM policer, initial code point 40, CIR 500000.0 bps, PIR 1500000.0 bytes. Policer Table: TSW3CM policer code point 40 is policed to yellow code point 41 and red code point 42. Policy Table(4): Flow (36 to 37): TSW3CM policer, initial code point 50, CIR 3000000.0 bps, PIR 4000000.0 bytes. Flow (38 to 39): TSW3CM policer, initial code point 50, CIR 3000000.0 bps, PIR 4000000.0 bytes. Flow (40 to 41): TSW3CM policer, initial code point 50, CIR 3000000.0 bps, PIR 4000000.0 bytes. Flow (42 to 43): TSW3CM policer, initial code point 50, CIR 3000000.0 bps, PIR 4000000.0 bytes. Policer Table: TSW3CM policer code point 50 is policed to yellow code point 51 and red code point 52. TSW3CM policer code point 50 is policed to yellow code point 51 and red code point 52. TSW3CM policer code point 50 is policed to yellow code point 51 and red code point 52. TSW3CM policer code point 50 is policed to yellow code point 51 and red code point 52. AtmScheduler:: cl = 0, q = 0,size = 200 AtmScheduler:: cl = 4, q = 0,size = 200 AtmScheduler:: cl = 4, q = 1,size = 500 AtmScheduler:: cl = 4, q = 2,size = 500 AtmScheduler:: cl = 4, q = 3,size = 500 AtmScheduler:: cl = 4, q = 4,size = 500 AtmScheduler:: cl = 0, q = 0,size = 200 AtmScheduler:: cl = 4, q = 0,size = 500 AtmScheduler:: cl = 4, q = 0,size = 500 AtmScheduler:: cl = 4, q = 0,size = 500 AtmScheduler:: cl = 4, q = 0,size = 500 AtmScheduler:: cl = 4, q = 0,size = 200 Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x0000000100297937 in redQueue::enque () (gdb) backtrace #0 0x0000000100297937 in redQueue::enque () #1 0x0000000100294d74 in dsREDQueue::enque () #2 0x0000000100298e69 in edgeQueue::enque () #3 0x00000001000f32bf in Queue::recv () #4 0x00000001001b469b in Connector::send () #5 0x000000010001ea85 in Connector::recv () #6 0x000000010002625c in Classifier::recv () #7 0x00000001001b469b in Connector::send () #8 0x0000000100020991 in Trace::recv () #9 0x00000001001b469b in Connector::send () #10 0x000000010001f5b8 in TTLChecker::recv () #11 0x0000000100018643 in NsObject::handle () #12 0x0000000100018600 in non-virtual thunk to NsObject::handle(Event*) () #13 0x0000000100015da6 in Scheduler::dispatch () #14 0x000000010001608d in Scheduler::run () #15 0x00000001000163ac in Scheduler::command () #16 0x00000001003d95e0 in TclClass::dispatch_cmd () #17 0x00000001003e0318 in OTclDispatch (cd=0x7fff5fbfd530, in=0x7fff5fbfd530, argc=1606407472, argv=0x101045060) at otcl.c:455 #18 0x00000001003f01dc in TclInvokeStringCommand () #19 0x00000001003f1a2c in TclEvalObjvInternal () #20 0x000000010042f29c in TclExecuteByteCode () #21 0x000000010043694c in TclCompEvalObj () #22 0x000000010042f56d in TclExecuteByteCode () #23 0x0000000100468352 in TclObjInterpProcCore () #24 0x00000001003f16c7 in TclInvokeObjectCommand () #25 0x00000001003e0508 in OTclDispatch (cd=0x7fff5fbfe410, in=0x7fff5fbfe410, argc=1606411280, argv=0x101044e60) at otcl.c:498 #26 0x00000001003f01dc in TclInvokeStringCommand () #27 0x00000001003f1a2c in TclEvalObjvInternal () #28 0x000000010042f29c in TclExecuteByteCode () #29 0x0000000100468352 in TclObjInterpProcCore () #30 0x00000001003f16c7 in TclInvokeObjectCommand () #31 0x00000001003e0318 in OTclDispatch (cd=0x7fff5fbfed40, in=0x7fff5fbfed40, argc=1606413632, argv=0x101044c40) at otcl.c:455 #32 0x00000001003f01dc in TclInvokeStringCommand () #33 0x00000001003f1a2c in TclEvalObjvInternal () #34 0x00000001003f25df in TclEvalEx () #35 0x00000001003f296d in Tcl_EvalEx () #36 0x000000010044ed26 in Tcl_FSEvalFileEx () #37 0x0000000100453cfa in Tcl_Main () #38 0x00000001003d8ea7 in nslibmain () #39 0x00000001003d8f40 in main () (gdb) quit -- Regards, Uri Blumenthal Voice: (781) 981-1638 Cyber Systems and Technology Fax: (781) 981-0186 MIT Lincoln Laboratory Cell: (339) 223-5363 244 Wood Street Email: <[email protected]> Lexington, MA 02420-9185 Web: http://www.ll.mit.edu/CST/ MIT LL Root CA: <https://www.ll.mit.edu/labcertificateauthority.html> DSN: 478-5980 ask Lincoln ext.1638 SIPR: [email protected]
