Hello,

I am assuming you are using a *nix system
It is some times simpler if you can locate the root cause of the
segmentation fault.
To do this, make the following changes to the Makefile in the
*/ns*-allinone/ns*/ folder.

1. locate the compiler command it will either be "cc" or "gcc". change
it to "cc -g" or "gcc -g". This will make the compiler generated flags
for gdb
2. Then type
       >make clean
       >make
   this will re compile ns
3. then run ns using gdb using the command below
      >gdb ns
      >[inside gdb]r your-tcl-file.tcl
4. Then, when you get a seg fault, it will show you the line number
and file name which caused the Seg Fault. This will give you lot of
info to debug your code.

Hope that helped.
Devadutta Ghat
Dept of ECE, SUNY at Stony Brook.


On 8/4/06, Shahan16 <[EMAIL PROTECTED]> wrote:
>
> hello,
>
> I've generated a scenerio and traffic model and
> started simulating the DSR protocol. but I'm getting the
> following things in the shell.It shows a "segmentation fault"
> and aborts.
>
> can anyone please help me how to solve the problem?
>
> I used the same scenerio file and traffic model in AODV
> protocol and worked nicely.
>
> plz reply me, I'm in dire need.
>
> thnaks in advance.
>
> here is the messages shown:
> ---------------------------
>
> $ ns DSR.tcl
> num_nodes is set 50
> warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
> INITIALIZE THE LIST xListHead
> Loading connection pattern...
> Loading scenario file...
> Starting Simulation...
> SORTING LISTS ...DONE!
> channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
> highestAntennaZ_ = 1.5,  distCST_ = 550.0
> Segmentation fault (core dumped)
>
>
>
> -SHAHAN
>
>
>
> __________________________________________
> Message sent through the Mailserver of IUT
>
>


-- 
Tamasoma Jyotirgamaya
http://www.devadutta.uni.cc

Reply via email to