Bugzilla – Bug 54
Buffer data corruption errors
Last modified: 2007-07-19 07:49:33 EDT
I have made a "buffer stress testing" program which demonstrates that there exists at least one bug inside Buffer occasionally causing data corruption when headers are added and removed. This bug is affecting my OLSR codel, but I am not sure I am able to fix it in useful time :-(
Created attachment 31 [details] Adds a utils/buffer-stress-testing program
A sample of what error is given: Testing with a packet of size 83339 Chunk size 4411 Chunk size 77656 Chunk size 838 Chunk size 144 Chunk size 231 Chunk size 51 Chunk size 7 Chunk size 1 Comparing resulting buffer with original... assert failed. file=../utils/buffer-stress-testing.cc, line=69, cond="memcmp (outputBuffer.PeekData (), inputBuffer.PeekData (), actualSize) == 0" Segmentation fault (core dumped) This means memory comparison fails, which means data corruption happened somewhere.
Fixed in ns-3-dev