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

[ns] ns crashes on included example files, on FreeBSD system



Hi All,

  I've installed ns-2.1b7 (several times) both using the all
in one install and the individual components.  It seems to pass
the verification tests (except the FreeBSD noted ones) but I tried
running the tg.tcl example out of the tcl/ex directory and I get:

>[124] freebsd% ns tg.tcl
>warning: no class variable Tracefile::debug_
>
>
>        see tcl-object.tcl in tclcl for info about this warning.
>
>warning: no class variable Tracefile::debug_
>
>        see tcl-object.tcl in tclcl for info about this warning.
>
>Segmentation fault (core dumped)



When I ask where it crashes it appears to be deep inside:

-------------------------------------------------------------------------------
[125] freebsd% gdb /usr/local/bin/ns ns.core
GNU gdb 4.18
Copyright 1998 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-unknown-freebsd"...(no debugging
symbols found)...
Core was generated by `ns'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libotcl.so...done.
Reading symbols from /usr/local/lib/libtk8.3.so...done.
Reading symbols from /usr/local/lib/libtcl8.3.so...done.
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Reading symbols from /usr/lib/libstdc++.so.3...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/X11R6/lib/libXThrStub.so.6...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x804a690 in RNGImplementation::next ()
(gdb) where
#0  0x804a690 in RNGImplementation::next ()
#1  0x804a705 in RNGImplementation::next_double ()
#2  0x8057908 in POO_Traffic::next_interval ()
#3  0x8056ea7 in TrafficGenerator::start ()
#4  0x80568a3 in Application::command ()
#5  0x80576a2 in POO_Traffic::command ()
#6  0x8117df1 in TclClass::dispatch_cmd ()
#7  0x2821d8ae in OTclDispatch (cd=0x83020c0, in=0x823d000, argc=3,
argv=0xbfbfd268)
    at otcl.c:421
#8  0x282f1948 in TclInvokeStringCommand () from
/usr/local/lib/libtcl8.3.so
#9  0x2830c773 in TclExecuteByteCode () from /usr/local/lib/libtcl8.3.so
#10 0x282f2397 in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.3.so
#11 0x2830c980 in TclExecuteByteCode () from /usr/local/lib/libtcl8.3.so
#12 0x282f2397 in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.3.so
#13 0x28330215 in TclObjInterpProc () from /usr/local/lib/libtcl8.3.so
#14 0x2832fdc5 in TclProcInterpProc () from /usr/local/lib/libtcl8.3.so
#15 0x2821da56 in OTclDispatch (cd=0x83020c0, in=0x823d000, argc=2,
argv=0xbfbfda98)
    at otcl.c:464
#16 0x282f1948 in TclInvokeStringCommand () from
/usr/local/lib/libtcl8.3.so
#17 0x2832944c in TclExpandTokenArray () from
/usr/local/lib/libtcl8.3.so
#18 0x28329b51 in Tcl_EvalEx () from /usr/local/lib/libtcl8.3.so
#19 0x28329db5 in Tcl_Eval () from /usr/local/lib/libtcl8.3.so
#20 0x282f3aa2 in Tcl_GlobalEval () from /usr/local/lib/libtcl8.3.so
#21 0x81176ae in Tcl::eval ()
#22 0x804d38e in AtHandler::handle ()
#23 0x804d351 in Scheduler::dispatch ()
#24 0x804d370 in Scheduler::dispatch ()
#25 0x804d2c2 in Scheduler::run ()
#26 0x804d492 in Scheduler::command ()
#27 0x8117df1 in TclClass::dispatch_cmd ()
#28 0x2821d8ae in OTclDispatch (cd=0x8448e40, in=0x823d000, argc=3,
argv=0xbfbfe128)
    at otcl.c:421
#29 0x282f1948 in TclInvokeStringCommand () from
/usr/local/lib/libtcl8.3.so
#30 0x2830c773 in TclExecuteByteCode () from /usr/local/lib/libtcl8.3.so
#31 0x282f2397 in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.3.so
#32 0x2830c980 in TclExecuteByteCode () from /usr/local/lib/libtcl8.3.so
#33 0x282f2397 in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.3.so
#34 0x28330215 in TclObjInterpProc () from /usr/local/lib/libtcl8.3.so
#35 0x2832fdc5 in TclProcInterpProc () from /usr/local/lib/libtcl8.3.so
#36 0x2821da56 in OTclDispatch (cd=0x8448e40, in=0x823d000, argc=2,
argv=0xbfbfe958)
    at otcl.c:464
#37 0x282f1948 in TclInvokeStringCommand () from
/usr/local/lib/libtcl8.3.so
#38 0x2830c773 in TclExecuteByteCode () from /usr/local/lib/libtcl8.3.so
#39 0x282f2397 in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.3.so
#40 0x28330215 in TclObjInterpProc () from /usr/local/lib/libtcl8.3.so
#41 0x2832fdc5 in TclProcInterpProc () from /usr/local/lib/libtcl8.3.so
#42 0x2821d8ae in OTclDispatch (cd=0x8448bc0, in=0x823d000, argc=2,
argv=0xbfbff008)
    at otcl.c:421
#43 0x282f1948 in TclInvokeStringCommand () from
/usr/local/lib/libtcl8.3.so
#44 0x2832944c in TclExpandTokenArray () from
/usr/local/lib/libtcl8.3.so
#45 0x28329b51 in Tcl_EvalEx () from /usr/local/lib/libtcl8.3.so
#46 0x28320e5d in Tcl_EvalFile () from /usr/local/lib/libtcl8.3.so
#47 0x28323a1c in Tcl_Main () from /usr/local/lib/libtcl8.3.so
#48 0x804a47d in main ()
#49 0x804a3d5 in _start ()
(gdb) quit   
-------------------------------------------------------------------------------

If i'm being stupid and missing something trivial please let me know.

For the record:

OS:     FreeBSD 4.2-RELEASE
Tcl:    8.3.2
Tk:     8.3.2
otcl:   1.0a6
TclCL:  1.0b10
ns:     2.1b7 (and the latest snapshot)
nam:    1.0a9 (and the latest snapshot)


PLEASE, point me in the right direction to get this working.

Any help would be much appreciated.

Thanks

Rob