Hi,

Segmentation fault is usually due to memory access violation. A common
example is as follows.

int x[10];
x[20] = 0;

where you create an array x with 10 slots, but try to access 20th slot of x.

Another cause is the misconfiguration. You might send packets to a object which 
does not exist.

For more details, please read

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

Hope this will help.

Best Wishes

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat




On Sep 29, 2011, at 8:40 PM, manishsingh chaudhary wrote:

> 
> hi to all
> 
> there was error during compilation
> like
> *segmentation fault*
> 
> what to do please help me out.
> thanks
> 
> with regard
> manish
> 


Reply via email to