Hi Zeinab,

Segmentation faults are usually due errors in the Code you've implemented in
the C++ domain. They are mainly caused by wrong pointers, when you try to
access some memory location which has been freed. That's just one scenario.
There you have to debug the C++ code it on your own, step by step.

Sometimes they are also due to wrongly implemented connections (taking into
perspective the agents attached to the nodes) in your tcl code. For example,
if you attach an forwarding agent to a sink and expect it, without any
modifications, to send packets downstream, you'll most probably get a
segmentation fault.

Check out this link:
http://www.ns2ultimate.com/post/567918455/segmentation-fault-a-common-error-in-ns2

Kind regards,

Nicholas Mbonimpa


On Wed, Aug 10, 2011 at 11:42 AM, Zeinab Rezaiefar <[email protected]>wrote:

>
> hi friend
> when i run tcl file i get this error Segmentation fault
> any one know why this error happen? i change aodv protocol and after run
> tcl that its routing is aodv i get this error.
> any help will be appreciate.
> best regard
>

Reply via email to