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

[ns] segfault with ns 2.1b8



hello,

I have some problems with error model on wireless channel
When i launch the script: ns segfault.
In this script I use error model with wireless channel as it shown in
the example "test-suite-wireless-lan-newnode-err.tcl".
Moreover, if I del the current line on my script:
	ErrorModel set rate_ 0.005
it doesn't segfault! where is the bug?

ns/tcp> gdb ns
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-suse-linux-gnu"...
(gdb) run tcp_w.tcl
Starting program: /badoit/USERS/lcavallin/new_ns_release/bin/ns
tcp_w.tcl
Loading wireless channels parameters. . .
done
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
Loading traffic info. . .
done
*** NOTE: no connection pattern specified.
Loading scenario file...
Load complete...
Starting Simulation...
-------------------------------------------------------
Caracteristiques des liaisons radio
bandwidth= 2000 Kbits/s
LL delay= 0.024999999999999998 ms
Antenna/OmniAntenna: X= 0, Y= 0, Z= 1.5, Gt= 1, Gr= 1
Phys/WirelessPhys: freq= 914.0 MHz
*** error rate= 0.0050
-------------------------------------------------------

Program received signal SIGSEGV, Segmentation fault.
0x80c2d18 in Mac802_11::recv (this=0x8583d50, p=0x8585648, h=0x0) at
mac-802_11.cc:1014
1014            if(hdr->direction() == hdr_cmn::DOWN) {
(gdb) 



I use ns-2.1b8 under linux SuSe 6.3
I add my script with this mail.

Regards,
Laurent

ex-tcp-wireless-errmodel.tgz