Thank you for your time. On Thu, Mar 6, 2014 at 12:12 AM, knudfl <[email protected]> wrote:
> > > @:Dr:0z:D > > Segmentation fault > > Result here : $ ./ns , will show % OK. > But the $ './ns all.tcl' result ...... > [knudfl@localhost ns-2.35]$ ./ns myproto/all.tcl > _o39 recv GOOD '' > Xwarning: no class variable Scheduler/Calendar::packetSize_ > see tcl-object.tcl in tclcl for info about this warning. > ABCDEFGHSegmentation fault > > ........ Might give you an idea of your code error ? > Yes, I understand this error but I'm not able to find solution how to fix this. There is also gdb output log included. "A" protocol has a very simple check of delivery which is simulated (now) by random function so either packet is received correctly or not (depending only on random number). When you have GOOD reception there is no B answer (therefor code goes on). If there is BAD reception, n1 is trying to create B type packet and calling B agent sendp() function. B's sendp() function has this XABCDEFGH thing on output which is debug code (each letter after one command). In B's sendp() function is this send(pktret,0); command where it stops (according to letter H and no letter I) and Seg fault. > ? Which OS are you using ? Name and version, please. > I have Arch 64bit and Manjaro 64bit 0.8.8 (Arch based distro). Thank you in advance.
