Hi, I was implementing HWMP protocol on ns2.34 and after the implementation I tried to run some tests, but in all of them I get a " *** stack smashing detected ***: ns terminated " So I want to know, what can I did wrong?
Log: ======= Backtrace: ========= > /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb75510e5] > /lib/i386-linux-gnu/libc.so.6(+0x10409a)[0xb755109a] > ns(_ZN8CMUTrace10nam_formatEP6Packeti+0xc1b)[0x82a576b] > ns(_ZN8CMUTrace6formatEP6PacketPKc+0x6b)[0x82a57e1] > ns(_ZN8CMUTrace4recvEP6PacketP7Handler+0x71)[0x82a5b33] > ns(_ZN8NsObject6handleEP5Event+0x27)[0x81c7aad] > ns(_ZN9Scheduler8dispatchEP5Eventd+0x94)[0x81c4c9c] > ns(_ZN9Scheduler3runEv+0x2c)[0x81c4bd0] > ns(_ZN9Scheduler7commandEiPKPKc+0x6b)[0x81c4d7d] > ns(_ZN8TclClass12dispatch_cmdEPvP10Tcl_InterpiPPKc+0x32)[0x83bec52] > ns[0x83c2831] > ns(TclInvokeStringCommand+0x7e)[0x83c686e] > ns(TclEvalObjvInternal+0x39d)[0x83c8ecd] > ns[0x83f33f2] > ns(TclCompEvalObj+0xed)[0x83f71ad] > ns[0x83f3881] > ns(TclCompEvalObj+0xed)[0x83f71ad] > ns(TclObjInterpProc+0x267)[0x8421647] > ns(TclProcInterpProc+0x88)[0x8421a78] > ns[0x83c2969] > ns(TclInvokeStringCommand+0x7e)[0x83c686e] > ns(TclEvalObjvInternal+0x39d)[0x83c8ecd] > ns[0x83f33f2] > ns(TclCompEvalObj+0xed)[0x83f71ad] > ns(TclObjInterpProc+0x267)[0x8421647] > ns(TclProcInterpProc+0x88)[0x8421a78] > ns[0x83c2831] > ns(TclInvokeStringCommand+0x7e)[0x83c686e] > ns(TclEvalObjvInternal+0x39d)[0x83c8ecd] > ns(Tcl_EvalEx+0x390)[0x83cad50] > ns(Tcl_FSEvalFile+0x22e)[0x840fd3e] > ns(Tcl_Main+0x36d)[0x84137fd] > ns(nslibmain+0x20)[0x83bdec4] > ns(main+0x1b)[0x83be01f] > /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb74664d3] > ns[0x81bf2f1] > ======= Memory map: ======== > 08048000-08586000 r-xp 00000000 08:01 5129263 /home/flavio/ns/ns-2.34/ns > 08586000-08587000 r--p 0053d000 08:01 5129263 /home/flavio/ns/ns-2.34/ns > 08587000-08623000 rw-p 0053e000 08:01 5129263 /home/flavio/ns/ns-2.34/ns > 08623000-0862c000 rw-p 00000000 00:00 0 > 08dd0000-09313000 rw-p 00000000 00:00 0 [heap] > b7248000-b724a000 rw-p 00000000 00:00 0 > b724a000-b744a000 r--p 00000000 08:01 12589672 > /usr/lib/locale/locale-archive > b744a000-b744d000 rw-p 00000000 00:00 0 > b744d000-b75f0000 r-xp 00000000 08:01 10748141 /lib/i386-linux-gnu/ > libc-2.15.so > b75f0000-b75f2000 r--p 001a3000 08:01 10748141 /lib/i386-linux-gnu/ > libc-2.15.so > b75f2000-b75f3000 rw-p 001a5000 08:01 10748141 /lib/i386-linux-gnu/ > libc-2.15.so > b75f3000-b75f6000 rw-p 00000000 00:00 0 > b75f6000-b7612000 r-xp 00000000 08:01 10748852 > /lib/i386-linux-gnu/libgcc_s.so.1 > b7612000-b7613000 r--p 0001b000 08:01 10748852 > /lib/i386-linux-gnu/libgcc_s.so.1 > b7613000-b7614000 rw-p 0001c000 08:01 10748852 > /lib/i386-linux-gnu/libgcc_s.so.1 > b7614000-b76ec000 r-xp 00000000 08:01 12587989 > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 > b76ec000-b76ed000 ---p 000d8000 08:01 12587989 > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 > b76ed000-b76f1000 r--p 000d8000 08:01 12587989 > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 > b76f1000-b76f2000 rw-p 000dc000 08:01 12587989 > /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16 > b76f2000-b76fa000 rw-p 00000000 00:00 0 > b76fa000-b7724000 r-xp 00000000 08:01 10748152 /lib/i386-linux-gnu/ > libm-2.15.so > b7724000-b7725000 r--p 00029000 08:01 10748152 /lib/i386-linux-gnu/ > libm-2.15.so > b7725000-b7726000 rw-p 0002a000 08:01 10748152 /lib/i386-linux-gnu/ > libm-2.15.so > b7726000-b7729000 r-xp 00000000 08:01 10748156 /lib/i386-linux-gnu/ > libdl-2.15.so > b7729000-b772a000 r--p 00002000 08:01 10748156 /lib/i386-linux-gnu/ > libdl-2.15.so > b772a000-b772b000 rw-p 00003000 08:01 10748156 /lib/i386-linux-gnu/ > libdl-2.15.so > b7740000-b7747000 r--s 00000000 08:01 12590832 > /usr/lib/i386-linux-gnu/gconv/gconv-modules.cache > b7747000-b7748000 r--p 005e0000 08:01 12589672 > /usr/lib/locale/locale-archive > b7748000-b774a000 rw-p 00000000 00:00 0 > b774a000-b774b000 r-xp 00000000 00:00 0 [vdso] > b774b000-b776b000 r-xp 00000000 08:01 10748153 /lib/i386-linux-gnu/ > ld-2.15.so > b776b000-b776c000 r--p 0001f000 08:01 10748153 /lib/i386-linux-gnu/ > ld-2.15.so > b776c000-b776d000 rw-p 00020000 08:01 10748153 /lib/i386-linux-gnu/ > ld-2.15.so > bfa81000-bfaa2000 rw-p 00000000 00:00 0 [stack] > Aborted (core dumped) -- Flávio Arieta Netto. -- Flávio Arieta Netto.