Such errors comes when you have done something wrong while working with memory 
allocation.... re check your code may be you are pointing to the place which is 
already deleted.

Or

If you are using Packet.free() then comment all of them and try again.

hope this will help.




________________________________
 From: shalom <maximekab...@gmail.com>
To: ns-users@ISI.EDU 
Sent: Wednesday, 28 November 2012 9:31 PM
Subject: [ns] Getting error when increasing the number of nodes im y tcl script
 

Good afternoon all,

I am doing a performance evaluation of the ETX and IBETX  routing metrics
for different routing protocols (AODV and DSDV). everything is working fine
when i do simulations up to 50 nodes but when i try to go above 50 nodes in
my tcl scripts i am getting the following error:
anyone who knows what's going wrong?

Thanks in adavance

*** glibc detected *** ns: free(): invalid next size (fast): 0x0ade0c30 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb74c9ee2]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZdlPv+0x1f)[0xb76c551f]
ns(_ZN10PacketDataD0Ev+0x1c)[0x81ddd38]
ns(_ZN6Packet4freeEPS_+0x47)[0x81c607d]
ns(_ZN9Mac802_117discardEP6PacketPKc+0x43)[0x8275f41]
ns(_ZN9Mac802_1110recv_timerEv+0x124)[0x82790e4]
ns(_ZN9Mac802_1111recvHandlerEv+0x11)[0x8276d8d]
ns(_ZN7RxTimer6handleEP5Event+0x38)[0x829eca6]
ns(_ZN9Scheduler8dispatchEP5Eventd+0x94)[0x81c314c]
ns(_ZN9Scheduler3runEv+0x2c)[0x81c3080]
ns(_ZN9Scheduler7commandEiPKPKc+0x6b)[0x81c322d]
ns(_ZN8TclClass12dispatch_cmdEPvP10Tcl_InterpiPPKc+0x32)[0x83b874a]
ns[0x83bc321]
ns(TclInvokeStringCommand+0x7e)[0x83c035e]
ns(TclEvalObjvInternal+0x39d)[0x83c29bd]
ns[0x83ecee2]
ns(TclCompEvalObj+0xed)[0x83f0c9d]
ns[0x83ed371]
ns(TclCompEvalObj+0xed)[0x83f0c9d]
ns(TclObjInterpProc+0x267)[0x841b137]
ns(TclProcInterpProc+0x88)[0x841b568]
ns[0x83bc459]
ns(TclInvokeStringCommand+0x7e)[0x83c035e]
ns(TclEvalObjvInternal+0x39d)[0x83c29bd]
ns[0x83ecee2]
ns(TclCompEvalObj+0xed)[0x83f0c9d]
ns(TclObjInterpProc+0x267)[0x841b137]
ns(TclProcInterpProc+0x88)[0x841b568]
ns[0x83bc321]
ns(TclInvokeStringCommand+0x7e)[0x83c035e]
ns(TclEvalObjvInternal+0x39d)[0x83c29bd]
ns(Tcl_EvalEx+0x390)[0x83c4840]
ns(Tcl_FSEvalFile+0x22e)[0x840982e]
ns(Tcl_Main+0x36d)[0x840d2ed]
ns(nslibmain+0x20)[0x83b79bc]
ns(main+0x1b)[0x83b7b17]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb746d4d3]
ns[0x81bd7a1]
======= Memory map: ========
08048000-0857c000 r-xp 00000000 08:06 8136423  
/home/maxime/ns-allinone-2.34/ns-2.34/ns
0857c000-0857d000 r--p 00533000 08:06 8136423  
/home/maxime/ns-allinone-2.34/ns-2.34/ns
0857d000-08618000 rw-p 00534000 08:06 8136423  
/home/maxime/ns-allinone-2.34/ns-2.34/ns
08618000-08620000 rw-p 00000000 00:00 0 
0a3d7000-0b254000 rw-p 00000000 00:00 0          [heap]
b724f000-b7251000 rw-p 00000000 00:00 0 
b7251000-b7451000 r--p 00000000 08:06 11541507  
/usr/lib/locale/locale-archive
b7451000-b7454000 rw-p 00000000 00:00 0 
b7454000-b75f7000 r-xp 00000000 08:06 10227583  
/lib/i386-linux-gnu/libc-2.15.so
b75f7000-b75f8000 ---p 001a3000 08:06 10227583  
/lib/i386-linux-gnu/libc-2.15.so
b75f8000-b75fa000 r--p 001a3000 08:06 10227583  
/lib/i386-linux-gnu/libc-2.15.so
b75fa000-b75fb000 rw-p 001a5000 08:06 10227583  
/lib/i386-linux-gnu/libc-2.15.so
b75fb000-b75fe000 rw-p 00000000 00:00 0 
b75fe000-b761a000 r-xp 00000000 08:06 10224564  
/lib/i386-linux-gnu/libgcc_s.so.1
b761a000-b761b000 r--p 0001b000 08:06 10224564  
/lib/i386-linux-gnu/libgcc_s.so.1
b761b000-b761c000 rw-p 0001c000 08:06 10224564  
/lib/i386-linux-gnu/libgcc_s.so.1
b761c000-b76f4000 r-xp 00000000 08:06 11539413  
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b76f4000-b76f5000 ---p 000d8000 08:06 11539413  
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b76f5000-b76f9000 r--p 000d8000 08:06 11539413  
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b76f9000-b76fa000 rw-p 000dc000 08:06 11539413  
/usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
b76fa000-b7702000 rw-p 00000000 00:00 0 
b7702000-b772c000 r-xp 00000000 08:06 10227594  
/lib/i386-linux-gnu/libm-2.15.so
b772c000-b772d000 r--p 00029000 08:06 10227594  
/lib/i386-linux-gnu/libm-2.15.so
b772d000-b772e000 rw-p 0002a000 08:06 10227594  
/lib/i386-linux-gnu/libm-2.15.so
b772e000-b7731000 r-xp 00000000 08:06 10227598  
/lib/i386-linux-gnu/libdl-2.15.so
b7731000-b7732000 r--p 00002000 08:06 10227598  
/lib/i386-linux-gnu/libdl-2.15.so
b7732000-b7733000 rw-p 00003000 08:06 10227598  
/lib/i386-linux-gnu/libdl-2.15.so
b773b000-b7742000 r--s 00000000 08:06 11536289  
/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache
b7742000-b7743000 r--p 005e1000 08:06 11541507  
/usr/lib/locale/locale-archive
b7743000-b7745000 rw-p 00000000 00:00 0 
b7745000-b7746000 r-xp 00000000 00:00 0          [vdso]
b7746000-b7766000 r-xp 00000000 08:06 10227595  
/lib/i386-linux-gnu/ld-2.15.so
b7766000-b7767000 r--p 0001f000 08:06 10227595  
/lib/i386-linux-gnu/ld-2.15.so
b7767000-b7768000 rw-p 00020000 08:06 10227595  
/lib/i386-linux-gnu/ld-2.15.so
bfe27000-bfe48000 rw-p 00000000 00:00 0          [stack]
Aborted (core dumped)



--
View this message in context: 
http://network-simulator-ns-2.7690.n7.nabble.com/Getting-error-when-increasing-the-number-of-nodes-im-y-tcl-script-tp25826.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to