Bugzilla – Bug 1862
NS_LOG="Time=*|prefix_time" causes stack overflow
Last modified: 2014-02-21 19:34:51 UTC
As Alex reported in bug 1853: Actually. There is still segfault with NS_LOG=*, but it is probably completely different story (though I thought we have already fixed that...) (first column is stack size.... it's huge) #51813 0x0000000103dd9906 in ns3::Time::Mark (time=0x7fff5fbfeb10) at ../src/core/model/time.cc:284 #51814 0x0000000100193c8c in ns3::Time::Time (this=0x7fff5fbfeb10, v=0) at nstime.h:176 #51815 0x0000000100193c3d in ns3::Time::Time (this=0x7fff5fbfeb10, v=0) at nstime.h:178 #51816 0x0000000101eed86c in ns3::TimeStep (ts=0) at nstime.h:987 #51817 0x0000000103e0a6c0 in ns3::DefaultSimulatorImpl::Now (this=0x10512acf0) at ../src/core/model/default-simulator-impl.cc:302 #51818 0x0000000103e03373 in ns3::Simulator::Now () at ../src/core/model/simulator.cc:185 #51819 0x0000000103e041e0 in ns3::TimePrinter (os=@0x7fff7b080438) at ../src/core/model/simulator.cc:61 #51820 0x0000000103f40b21 in ns3::CriticalSection::CriticalSection (this=0x7fff5fbfee98, mutex=@0x103f78780) at ../src/core/model/unix-system-mutex.cc:131 #51821 0x0000000103f40a7d in ns3::CriticalSection::CriticalSection (this=0x7fff5fbfee98, mutex=@0x103f78780) at ../src/core/model/unix-system-mutex.cc:133 #51822 0x0000000103dd9906 in ns3::Time::Mark (time=0x7fff5fbff0c0) at ../src/core/model/time.cc:284 #51823 0x0000000100193c8c in ns3::Time::Time (this=0x7fff5fbff0c0, v=0) at nstime.h:176 #51824 0x0000000100193c3d in ns3::Time::Time (this=0x7fff5fbff0c0, v=0) at nstime.h:178 #51825 0x0000000101eed86c in ns3::TimeStep (ts=0) at nstime.h:987 #51826 0x0000000103e0a6c0 in ns3::DefaultSimulatorImpl::Now (this=0x10512acf0) at ../src/core/model/default-simulator-impl.cc:302 #51827 0x0000000103e03373 in ns3::Simulator::Now () at ../src/core/model/simulator.cc:185 #51828 0x0000000103e041e0 in ns3::TimePrinter (os=@0x7fff7b080438) at ../src/core/model/simulator.cc:61 #51829 0x0000000103f40b21 in ns3::CriticalSection::CriticalSection (this=0x7fff5fbff448, mutex=@0x103f78780) at ../src/core/model/unix-system-mutex.cc:131 #51830 0x0000000103f40a7d in ns3::CriticalSection::CriticalSection (this=0x7fff5fbff448, mutex=@0x103f78780) at ../src/core/model/unix-system-mutex.cc:133 #51831 0x0000000103dd9906 in ns3::Time::Mark (time=0x7fff5fbff670) at ../src/core/model/time.cc:284 #51832 0x0000000100193c8c in ns3::Time::Time (this=0x7fff5fbff670, v=0) at nstime.h:176 #51833 0x0000000100193c3d in ns3::Time::Time (this=0x7fff5fbff670, v=0) at nstime.h:178 #51834 0x0000000101eed86c in ns3::TimeStep (ts=0) at nstime.h:987 #51835 0x0000000103e0a6c0 in ns3::DefaultSimulatorImpl::Now (this=0x10512acf0) at ../src/core/model/default-simulator-impl.cc:302 #51836 0x0000000103e03373 in ns3::Simulator::Now () at ../src/core/model/simulator.cc:185 #51837 0x0000000103e041e0 in ns3::TimePrinter (os=@0x7fff7b080438) at ../src/core/model/simulator.cc:61 #51838 0x0000000103e094da in ns3::DefaultSimulatorImpl::Stop (this=0x10512acf0, time=@0x7fff5fbff848) at ../src/core/model/default-simulator-impl.cc:212 #51839 0x0000000103e03318 in ns3::Simulator::Stop (time=@0x7fff5fbff848) at ../src/core/model/simulator.cc:176 #51840 0x00000001000026f0 in main (argc=1, argv=0x7fff5fbff880) at ../scratch/tmp.cc:23 (gdb) example that failed was a trivial one (and I'm using the latest ns-3-dev): #include "ns3/core-module.h" using namespace ns3; int main (int argc, char *argv[]) { Simulator::Stop(Seconds(10)); Simulator::Run (); Simulator::Destroy (); }
Patched r10625 16bbfc4cb29d http://code.nsnam.org/ns-3-dev/rev/16bbfc4cb29d (Patch for Bug 1411 also included by mistake)