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

Re: [ns] [bug] Segmentation violation



you may try the tutorial scripts in your ns directory:
  cd ~ns/tcl/test
  ns test-suite-WLtutorial.tcl wireless1
  ns test-suite-WLtutorial.tcl wireless2
  ns test-suite-WLtutorial.tcl wireless3
those are the tutorial scripts for your version of ns.
the scripts on web are for current version of ns.

- difa

On Tue, 20 Nov 2001, [iso-8859-1] Ra�l Gil wrote:

> I think that I use the version 1.0a8 (into .../ns-allinone-2.1b6/ there
> is a folder called nam-1.0a8/).
> If I need other version, could you say me the version and the steps for
> install?
>
> Thanks!
>
> Ra�l Gil.
>
> En/Na Di-Fa Chang ha escrit:
> >
> > what is the version of nam you are using?
> > you may need to use older version of nam for compatibility problem.
> >
> > - difa
> >
> > On Tue, 20 Nov 2001, [iso-8859-1] Ra�l Gil wrote:
> >
> > > Thanks for your help, but i need version ns 2.1b6 because i will work
> > > with mobiwan.
> > >
> > > En/Na Di-Fa Chang ha escrit:
> > > >
> > > > I run the two examples (wireless2.tcl and wireless3.tcl) with
> > > > ns-2-snapshot-20011119 and nam-1-snapshot-20011119 on RedHat 7.0
> > > > (kernel 2.4.2-2) but don't encounter the segmentation fault.
> > > > So, you may want to upgrade your ns and nam to the latest release.
> > > >
> > > > - difa
> > > >
> > > > On Mon, 19 Nov 2001, Ra�l Gil wrote:
> > > >
> > > > > [Bug Report]
> > > > >
> > > > > -----------------------------
> > > > > Category:  Other
> > > > > Package:   ns 2.1b6
> > > > > OS:        linux suse 7.0
> > > > > Environment Variables:
> > > > > LD_LIBRARY_PATH=
> > > > > TCL_LIBRARY=
> > > > > TK_LIBRARY=
> > > > >
> > > > >
> > > > > -----------------------------
> > > > > Description:
> > > > >
> > > > > Description of Problem:
> > > > >
> > > > > When I open wireless2-out.nam and wireless3-out.nam (results of simulating wireless2.tcl and wireless3.tcl from Marc Greis's tutorial) with nam, it provokes segmentation violation.
> > > > >
> > > > > How Easily Reproducible:
> > > > > (e.g. every time, intermittent, once only, etc.)
> > > > >
> > > > > every time
> > > > >
> > > > > Steps to Reproduce:
> > > > > (describe the minimal set of steps necessary to trigger the bug)
> > > > > 1. download wireless2.tcl or wireless3.tcl from Marc Greis's tutorial
> > > > > 2. 'ns wireless2.tcl' or 'ns wireless3.tcl'
> > > > > 3. 'nam wireless2-out.nam' or 'ns wireless3-out.nam'
> > > > >
> > > > >
> > > > > Actual Results:
> > > > > (describe what the application did after performing the above steps)
> > > > >
> > > > > It shows message: segmentation violation
> > > > >
> > > > > Expected Results:
> > > > > (describe what the application should have done, were the bug not present)
> > > > >
> > > > > The nam should have opened for showing the simulation result.
> > > > >
> > > > > Additional Information:
> > > > > (e.g. URLs to your script, detailed output files, packet trace, etc. if they are big files.)
> > > > >
> > > > > I think '$ns_ initial_node_pos $node_($i) 20' is the line that provokes this situation. If I delete this line and change '$ns_ namtrace-all-wireless $namtrace $opt(x) $opt(y)' for '$ns_ namtrace-all $namtrace', the problem disappear but the show the fixes nodes only.
> > > > >
> > >
>