To see where it is failing, try
./waf --command-template="gdb %s" --run <program-name>
In this case, it reported to me:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff756d9f4 in ns3::RandomWaypointMobilityModel::BeginWalk (this=
0x6bf420) at ../src/mobility/random-waypoint-mobility-model.cc:62
62 Vector destination = m_position->GetNext ();
The code looked basically OK to me but then I noticed this comment in
the Doxygen for this class:
* The implementation of this model is not 2d-specific. i.e. if you provide
* a 3d random waypoint position model to this mobility model, the model
* will still work. There is no 3d position allocator for now but it should
* be trivial to add one.
And I noticed that you may be trying to use a 3-D position allocator?
Anyway, it seems that the problem may be that m_position is not
initialized properly.
Tom
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
Could anyone please help or give any suggestions as I am completely
baffled by this segmentation fault?
On Sun, Aug 8, 2010 at 1:13 PM, Gokul Bhat <gkoo...@gmail.com> wrote:
> Hello
>
> As I mentioned in my previous e mail as how I am trying to implement a
> simple MANET wifi routing scenario with 10 nodes. I am using OLSR routing
> for this purpose and the mobility model I am using is the
> randomwaypointmobility model. I encounter a segmentation fault and gdb says
> that it occurs here:
> Vector destination = m_position->GetNext ();
>
> On printing "m_position->GetNext(), gdb says that : Couldn't find method
> ns3::Ptr<ns3::PositionAllocator>::GetNext
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.