Hi Pavel,
Below is the backtrace.
(gdb) backtrace
#0 0x000000000041d9f3 in ns3::Buffer::Iterator::WriteU8
(this=0x40e86da0, data=252 '\374') at debug/ns3/buffer.h:550
#1 0x000000000040fe3b in ns3::locmvsp::MessageHeader::Data::Serialize
(this=0x40e87168, start=...) at ../scratch/basetier.cc:464
#2 0x00000000004110b0 in ns3::locmvsp::MessageHeader::Serialize
(this=0x40e87070, start=...) at ../scratch/basetier.cc:157
#3 0x00007f5b5e240c28 in ns3::Packet::AddHeader (this=0x1846330,
header=...) at ../src/common/packet.cc:234
#4 0x0000000000411e7d in ns3::locmvsp::GenerateData (socket=...,
data_size=512, data_interval=0.10000000000000001, id=0)
at ../scratch/basetier.cc:709
#5 0x000000000040c48c in Notify (this=0x698540) at debug/ns3/make-
event.h:342
#6 0x00007f5b5e1c8537 in ns3::EventImpl::Invoke (this=0x698540) at ../
src/simulator/event-impl.cc:37
#7 0x00007f5b5e1e4334 in ns3::DefaultSimulatorImpl::ProcessOneEvent
(this=0x68ad10) at ../src/simulator/default-simulator-impl.cc:121
#8 0x00007f5b5e1e435d in ns3::DefaultSimulatorImpl::RunOneEvent
(this=0x68ad10) at ../src/simulator/default-simulator-impl.cc:162
#9 0x00007f5b5e1d0fa6 in ns3::Simulator::RunOneEvent () at ../src/
simulator/simulator.cc:180
#10 0x00007f5b5e2b272f in ns3::PyViz::SimulatorRunUntil
(this=0x133cb70, time=...) at ../src/contrib/pyviz.cc:252
#11 0x00007f5b5ba66d72 in _wrap_PyNs3PyViz_SimulatorRunUntil
(self=0x7f5b5ef3e3d0, args=0x130bd10, kwargs=0x0)
at debug/bindings/python/ns3_module_contrib.cc:2821
#12 0x00007f5b5d254940 in PyEval_EvalFrameEx () from /usr/lib/
libpython2.5.so.1.0
#13 0x00007f5b5d255a86 in PyEval_EvalCodeEx () from /usr/lib/
libpython2.5.so.1.0
#14 0x00007f5b5d253ad7 in PyEval_EvalFrameEx () from /usr/lib/
libpython2.5.so.1.0
#15 0x00007f5b5d254893 in PyEval_EvalFrameEx () from /usr/lib/
libpython2.5.so.1.0
#16 0x00007f5b5d255a86 in PyEval_EvalCodeEx () from /usr/lib/
libpython2.5.so.1.0
#17 0x00007f5b5d1f570a in ?? () from /usr/lib/libpython2.5.so.1.0
#18 0x00007f5b5d1d3f23 in PyObject_Call () from /usr/lib/
libpython2.5.so.1.0
#19 0x00007f5b5d1db65f in ?? () from /usr/lib/libpython2.5.so.1.0
#20 0x00007f5b5d1d3f23 in PyObject_Call () from /usr/lib/
libpython2.5.so.1.0
#21 0x00007f5b5d24ea1e in PyEval_CallObjectWithKeywords () from /usr/
lib/libpython2.5.so.1.0
#22 0x00007f5b5d283eed in ?? () from /usr/lib/libpython2.5.so.1.0
#23 0x00007f5b5d9193f7 in start_thread () from /lib/libpthread.so.0
#24 0x00007f5b5c56eb4d in clone () from /lib/libc.so.6
#25 0x0000000000000000 in ?? ()
I still can not figure out what's going wrong.
BTW. I tried commented out buffer.h line 550:
NS_ASSERT(Check(m_current)), and the program seems be able to run
well. But I know that there must be something wrong to cause this
assert to fail.
Thanks a lot
Zhang Bo
> > For more options, visit this group athttp://
groups.google.com/group/ns-3-users?hl=en.
> For more options, visit this group athttp://
groups.google.com/group/ns-3-users?hl=en.