Bug 821 - AODV asserts with function logging enabled
AODV asserts with function logging enabled
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: routing
ns-3-dev
All All
: P4 normal
Assigned To: Pavel Boyko
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-18 16:01 EST by Josh Pelkey
Modified: 2010-02-21 15:38 EST (History)
2 users (show)

See Also:


Attachments
proposed fix (3.15 KB, application/octet-stream)
2010-02-21 07:39 EST, Pavel Boyko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Pelkey 2010-02-18 16:01:30 EST
I'm not sure of the cause yet, but I think I've found where it starts to fail. Line 226 of src/common/packet.cc has NS_LOG_FUNCTION (this << header.GetInstanceTypeId ().GetName () << size); This goes into src/core/type-id.cc and causes an assert, NS_ASSERT (uid <= m_information.size () && uid != 0);
Comment 1 Josh Pelkey 2010-02-18 16:17:58 EST
Probably just need to add GetTypeId methods to each of the different message headers in aodv-packet.cc/h.  See olsr-header.h/cc as an example.
Comment 2 Pavel Boyko 2010-02-21 07:39:13 EST
Created attachment 768 [details]
proposed fix
Comment 3 Pavel Boyko 2010-02-21 07:40:06 EST
Josh, please whether the attached patch fixes this problem.
Comment 4 Josh Pelkey 2010-02-21 15:38:36 EST
That did it, thanks. changeset f3afc3eb9a58