[Ns-bugs] [Bug 38] New: Buffer bug when combining two packets

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Jun 18 05:51:48 PDT 2007


http://www.nsnam.org/bugzilla/show_bug.cgi?id=38

           Summary: Buffer bug when combining two packets
           Product: ns-3
           Version: pre-release
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: simulation core
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: gjcarneiro at gmail.com


And assertion is being triggered by combining two packets with packet.AddAtEnd
(pkt1):

assert failed. file=../src/common/buffer.h, line=526, cond="(m_current + n <=
m_dataEnd) && ((m_current + n <= m_zeroStart) || (m_current >= m_zeroEnd))"

This is _very hard_ to reproduce.  I tried to create a MTP (minimal test
program), but failed.  In fact, I even had to remove a unit tests from ns-3-dev
to be able to reproduce my bug, which suggests that the state of buffer
"recycling" machinery is determinant to reproduce the bug.

Unfortunately I was unable to fix the bug, merely worked around it, so i'll
just post the patch here in hope that someone more familiar with the inner
workings of Buffer will be able to figure it out.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list