Dear Rahul Sharma, Segmentation Fault is a very common problem faced by NS2 users. It has to do with memory such as trying to access an address that cannot physically be addressed, thus an exception has been called. It can happen either in C++ side or at TCL side. The below looks like happening from C++ side to me.
Thought the problem is very common, unfortunately the cause of the Segmentation Fault are very wide. It takes more than providing couple of preceding error lines to solve it. The right way to handle a Segmentation Fault is by debugging the code. To start with, if your simulation scenario involves 50 nodes, see if you could replicate the problem in the smallest possible number of nodes to simplify your debugging process. For C++ debugging you can use GDB or even putting simple printf lines around "node 0 received `UPD` from non-neighbor 5" lines to see if the change of variables, memory allocation and function calls are done per your need. It will take some time to understand how GDB codes work for first time user and a certain amount of troubleshooting effort., once you get used to it, it will be easy. After finding where the abnormality occur, work your way up the code to know what caused the abnormality and rectify the problem. Its very rare another person could able to help you to solve Segmentation Fault without looking at all the codes. Good Luck. rgds Saravanan Kandasamy On Fri, Jul 6, 2012 at 9:58 AM, Rahul Sharma <wireless.ra...@gmail.com>wrote: > > Hi All, > > I tried simulating TORA in NS-2.34 for 20 nodes. > > For some time of execution i receive the output as below and than suddenly > it shows Segmentation fault: > > node 165506090 received `UPD` from non-neighbor 17 > node 165506090 received `UPD` from non-neighbor 17 > node 165506090 received `UPD` from non-neighbor 17 > node 0 received `UPD` from non-neighbor 1 > node 0 received `UPD` from non-neighbor 1 > node 0 received `UPD` from non-neighbor 16 > node 0 received `UPD` from non-neighbor 16 > node 0 received `UPD` from non-neighbor 16 > node 0 received `UPD` from non-neighbor 16 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > node 0 received `UPD` from non-neighbor 5 > *Segmentation fault* > > > Can anyone suggest some way to solve this? > > I need it urgently, kindly help!!!! > > > On Thu, Jul 5, 2012 at 2:49 PM, Durgesh Kshirsagar < > durgeshpkshirsa...@gmail.com> wrote: > > > Hi Rahul, you can solve the segmentation fault by remaking the ns2. If it > > doesn't solve try to reinstall the ns2 and check. All the best! > > >