a) It hasn't the function names for the NS proc (as it has for tcl procs)
Is ns2 stuff compiled for debugging? (-g gcc option)?

b) use DDD and valgrind 
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_debugging.html#_Toc122255042


Pedro Estrela


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Raghu-kisore Neelisetti
> Sent: quarta-feira, 6 de Setembro de 2006 18:49
> To: ns-users@ISI.EDU
> Subject: [ns] Issues debugginf ns-2.29
> 
> 
> Hello Every one,
>    I made some modification to the ns-2.29 and was running my new
> version. But after running for some time it crashes leaving the
> following information. I was wondering if any one has suggestion about
> to make use of the following information to debug ns-2.29.
> 
> *** glibc detected *** ../ns: corrupted double-linked list: 0x00c1d8b8
> ***
> ======= Backtrace: =========
> /lib/libc.so.6[0xb59b71]
> /lib/libc.so.6[0xb5ad8d]
> /lib/libc.so.6(malloc+0x74)[0xb5c492]
> /usr//lib/libstdc++.so.6(_Znwj+0x26)[0x220f56]
> /usr//lib/libstdc++.so.6(_Znaj+0x1d)[0x22106d]
> ../ns[0x8064762]
> ../ns[0x8064822]
> ../ns[0x8118778]
> ../ns[0x811788e]
> ../ns[0x8141936]
> ../ns[0x813f54d]
> ../ns[0x811e937]
> ../ns[0x811e9d7]
> ../ns[0x814853f]
> ../ns[0x8053927]
> ../ns[0x8053952]
> ../ns[0x8053b6e]
> ../ns[0x8274032]
> ../ns[0x8277cbe]
> ../ns(TclInvokeStringCommand+0x45)[0x827c155]
> ../ns[0x827d7d1]
> ../ns[0x82a23da]
> ../ns[0x82a8390]
> ../ns[0x82a24c4]
> ../ns[0x82a8390]
> ../ns(TclObjInterpProc+0x222)[0x82cd4a2]
> ../ns(TclProcInterpProc+0x51)[0x82cd835]
> ../ns[0x8277de2]
> ../ns(TclInvokeStringCommand+0x45)[0x827c155]
> ../ns[0x827d7d1]
> ../ns[0x82a23da]
> ../ns[0x82a8390]
> ../ns(TclObjInterpProc+0x222)[0x82cd4a2]
> ../ns(TclProcInterpProc+0x51)[0x82cd835]
> ../ns[0x8277cbe]
> ../ns(TclInvokeStringCommand+0x45)[0x827c155]
> ../ns[0x827d7d1]
> ../ns[0x827ee5d]
> ../ns[0x82be363]
> ../ns[0x82c1315]
> ../ns(__gxx_personality_v0+0x1d3)[0x804d097]
> /lib/libc.so.6(__libc_start_main+0xdf)[0xb0bd5f]
> ../ns(sinh+0x71)[0x804cfe5]
> ======= Memory map: ========
> 0016b000-0024b000 r-xp 00000000 fd:00 2716753
> /usr/lib/libstdc++.so.6.0.5
> 0024b000-00250000 rw-p 000df000 fd:00 2716753
> /usr/lib/libstdc++.so.6.0.5
> 00250000-00256000 rw-p 00250000 00:00 0
> 004c1000-004c2000 r-xp 004c1000 00:00 0          [vdso]
> 00ab2000-00ac4000 r-xp 00000000 fd:00 2455315    /lib/libnsl-2.3.5.so
> 00ac4000-00ac5000 r--p 00011000 fd:00 2455315    /lib/libnsl-2.3.5.so
> 00ac5000-00ac6000 rw-p 00012000 fd:00 2455315    /lib/libnsl-2.3.5.so
> 00ac6000-00ac8000 rw-p 00ac6000 00:00 0
> 00ad5000-00aef000 r-xp 00000000 fd:00 2455217    /lib/ld-2.3.5.so
> 00aef000-00af0000 r--p 00019000 fd:00 2455217    /lib/ld-2.3.5.so
> 00af0000-00af1000 rw-p 0001a000 fd:00 2455217    /lib/ld-2.3.5.so
> 00af7000-00c1a000 r-xp 00000000 fd:00 2455226    /lib/libc-2.3.5.so
> 00c1a000-00c1c000 r--p 00123000 fd:00 2455226    /lib/libc-2.3.5.so
> 00c1c000-00c1e000 rw-p 00125000 fd:00 2455226    /lib/libc-2.3.5.so
> 00c1e000-00c20000 rw-p 00c1e000 00:00 0
> 00c22000-00c45000 r-xp 00000000 fd:00 2455230    /lib/libm-2.3.5.so
> 00c45000-00c46000 r--p 00022000 fd:00 2455230    /lib/libm-2.3.5.so
> 00c46000-00c47000 rw-p 00023000 fd:00 2455230    /lib/libm-2.3.5.so
> 00c49000-00c4b000 r-xp 00000000 fd:00 2455232    /lib/libdl-2.3.5.so
> 00c4b000-00c4c000 r--p 00001000 fd:00 2455232    /lib/libdl-2.3.5.so
> 00c4c000-00c4d000 rw-p 00002000 fd:00 2455232    /lib/libdl-2.3.5.so
> 00d9c000-00dc0000 r-xp 00000000 fd:00 2704035
> /usr/lib/libpcap.so.0.8.3
> 00dc0000-00dc1000 rw-p 00024000 fd:00 2704035
> /usr/lib/libpcap.so.0.8.3
> 00dd3000-00ddc000 r-xp 00000000 fd:00 2455236
> /lib/libgcc_s-4.0.1-20050727.so.1
> 00ddc000-00ddd000 rw-p 00009000 fd:00 2455236
> /lib/libgcc_s-4.0.1-20050727.so.1
> 08048000-083b1000 r-xp 00000000 fd:00 4917311
> /root/TENS/ns-allinone-2.29/ns-2.29/ns
> 083b1000-0844c000 rw-p 00368000 fd:00 4917311
> /root/TENS/ns-allinone-2.29/ns-2.29/ns
> 0844c000-08454000 rw-p 0844c000 00:00 0
> 09280000-0a954000 rw-p 09280000 00:00 0          [heap]
> b7c00000-b7c21000 rw-p b7c00000 00:00 0
> b7c21000-b7d00000 ---p b7c21000 00:00 0
> b7db5000-b7fb5000 r--p 0000Aborted
> 
> Thanks a lot.
> Raghu.
> 


Reply via email to