[Ns-bugs] [Bug 38] New: Buffer bug when combining two packets
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Jun 18 05:51:48 PDT 2007
Summary: Buffer bug when combining two packets
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
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