hello all, I am working on add multi-interface multi-channel support in ns2 ,but now I meet a segmentation fault in implementing adding Multiple Interface Support in NS-2, I use command : $gdb ns $r channel.tcl $bt it gives reminding information as follows: #0 0x081112a7 in WirelessChannel::sortLists () #1 0x08112269 in WirelessChannel::sendUp () #2 0x08110e3a in Channel::recv () #3 0x0813494b in WirelessPhy::sendDown () #4 0x08132d9d in Phy::recv () #5 0x0805b4de in Connector::send () #6 0x08139781 in CMUTrace::recv () #7 0x0811980f in Mac802_11::transmit () #8 0x08116110 in Mac802_11::check_pktTx () #9 0x08116350 in Mac802_11::backoffHandler () #10 0x081357f4 in BackoffTimer::handle () .............. Now I think segmentation fault is caused by WirelessChannel::sortLists (),but I can not find practice reasons, please help me!
another question is Simulator instproc add-channel { indexch ch} { $self instvar chan set chan(indexch) $ch } when i run test.tcl ,It always gices me that variable is not array. please help me thanks a lot ! 150万人同时在玩的网游,你不试试吗?