WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
I corrected the mistake.My guess was correct.I included following line in the getMyPosition() method.
Node* nd = Node::get_node_by_address(mr_addr());
mn_ = (MobileNode*)nd;
Here "mr_addr()" is an inline function in my agent class that returns the address of agent.
Now the segmentation fault is over and its creating a trace file with details of Hello packet.