[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] NS segfault on RH7.0



This happened to me before, but it turned out that I compiled my
otcl/tclcl using tcl8.0 but ns with tcl8.3. Not sure if this is applicable
in your case, though.

BTW we have daily validation for ns on solairs and linux and they seemed
to be fine. 

- Haobo

On Tue, 14 Nov 2000, Sharad Agarwal wrote:

> I am having a seg fault with NS (no matter what simulation script I run)
> on a RedHat7.0 system, Linux-2.4 kernel. I have tried the latest otcl
> snapshot and the latest tclcl snapshot and the latest ns snapshot (and
> all permutations of the release versions of these packages). The problem
> persists. The problem is not present with the same packages on older
> linux machines.
> 
> Has anyone else experienced this? Is there a fix?
> 
> Thanks,
> Sharad.
> 
> 
> >/tmp/ns-2-snapshot-20001113/ns test.tcl
> Segmentation fault
> 
> >gdb /tmp/ns-2-snapshot-20001113/ns
> Copyright 2000 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) dir /home/sharada/otcl-snapshot-20001113/
> Source directories searched:
> /home/sharada/otcl-snapshot-20001113:$cdir:$cwd
> (gdb) run test.tcl
> Starting program: /tmp/ns-2-snapshot-20001113/ns test.tcl
> 
> Program received signal SIGSEGV, Segmentation fault.
> OTclOInstVarOne (obj=0x826a910, in=0x8264088, frameName=0x81fd04b "1", 
>     varName=0x82edb98 "id", localName=0x82edb98 "id", flags=0) at
> otcl.c:1439
> 1439	  	CallFrame* saved = iPtr->varFramePtr->callerVarPtr;
> Current language:  auto; currently c
> (gdb) bt
> #0  OTclOInstVarOne (obj=0x826a910, in=0x8264088, frameName=0x81fd04b
> "1", 
>     varName=0x82edb98 "id", localName=0x82edb98 "id", flags=0) at
> otcl.c:1439
> #1  0x8129b80 in OTclOInstVarMethod (cd=0x826a910, in=0x8264088, argc=5, 
>     argv=0xbfffe050) at otcl.c:1471
> #2  0x8127faa in OTclDispatch (cd=0x826a910, in=0x8264088, argc=3, 
>     argv=0xbfffe0a0) at otcl.c:421
> #3  0x400ed869 in TclInvokeStringCommand () from /usr/lib/libtcl8.3.so
> #4  0x40109f7b in TclExecuteByteCode () from /usr/lib/libtcl8.3.so
> #5  0x400ee34e in Tcl_EvalObjEx () from /usr/lib/libtcl8.3.so
> #6  0x4012fe5e in TclObjInterpProc () from /usr/lib/libtcl8.3.so
> #7  0x4012f9db in TclProcInterpProc () from /usr/lib/libtcl8.3.so
> #8  0x8127faa in OTclDispatch (cd=0x826a910, in=0x8264088, argc=2, 
>     argv=0xbfffe810) at otcl.c:421
> #9  0x400ed869 in TclInvokeStringCommand () from /usr/lib/libtcl8.3.so
> #10 0x40109f7b in TclExecuteByteCode () from /usr/lib/libtcl8.3.so
> #11 0x400ee34e in Tcl_EvalObjEx () from /usr/lib/libtcl8.3.so
> #12 0x4012fe5e in TclObjInterpProc () from /usr/lib/libtcl8.3.so
> #13 0x401282e1 in EvalObjv () from /usr/lib/libtcl8.3.so
> #14 0x401289eb in Tcl_EvalEx () from /usr/lib/libtcl8.3.so
> #15 0x40128637 in Tcl_EvalTokens () from /usr/lib/libtcl8.3.so
> #16 0x40128994 in Tcl_EvalEx () from /usr/lib/libtcl8.3.so
> #17 0x40128c65 in Tcl_Eval () from /usr/lib/libtcl8.3.so
> #18 0x400efa4b in Tcl_GlobalEval () from /usr/lib/libtcl8.3.so
> #19 0x81256a3 in Tcl::eval () at gen/ptypes.cc:299
> #20 0x812566e in Tcl::evalc () at gen/ptypes.cc:299
> #21 0x8126099 in EmbeddedTcl::load () at gen/ptypes.cc:299
> #22 0x804adea in Tcl_AppInit (interp=0x8264088) at tclAppInit.cc:172
> #23 0x401223ca in Tcl_Main () from /usr/lib/libtcl8.3.so
> #24 0x804acb5 in main (argc=2, argv=0xbffff914) at tclAppInit.cc:60
> #25 0x402cdb65 in __libc_start_main (main=0x804ac9c <main>, argc=2, 
>     ubp_av=0xbffff914, init=0x804a270 <_init>, fini=0x816d08c <_fini>, 
>     rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffff90c)
>     at ../sysdeps/generic/libc-start.c:111
>