[ndnSIM] Help: A SIGSEGV error in ndnSIM fib entry

xuxux2006 at 126.com xuxux2006 at 126.com
Sun Dec 8 19:26:02 PST 2013


Hi Alex, Ilya and every ndnSIM users,
I found a problem in ndn-fib-entry.h. When I called the founction GetRoutingCost() of  ndn-fib-entry.h in DoPropagateInterest of flooding.cc , I caught a SIGSEGV error. I did this just as previous calling GetStatus() in  flooding.cc.  The bt result of gdb about this error is listed below:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#0  0xb4be06d4 in std::string::begin() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#1  0xb677dcb2 in boost::range_detail::range_begin<std::string> (c=...) at /usr/include/boost/range/begin.hpp:49
#2  0xb677d737 in boost::range_adl_barrier::begin<std::string> (r=...) at /usr/include/boost/range/begin.hpp:108
#3  0xb677cf61 in boost::iterator_range_detail::iterator_range_impl<__gnu_cxx::__normal_iterator<char*, std::string> >::adl_begin<std::string> (r=...) at /usr/include/boost/range/iterator_range_core.hpp:56
#4  0xb677c91e in boost::iterator_range<__gnu_cxx::__normal_iterator<char*, std::string> >::iterator_range<std::string> (
    this=0xbfffe010, r=...) at /usr/include/boost/range/iterator_range_core.hpp:204
#5  0xb677be9f in boost::make_iterator_range<std::string> (r=...) at /usr/include/boost/range/iterator_range_core.hpp:556
#6  0xb677b2c4 in boost::range_detail::make_range<std::string> (r=...) at /usr/include/boost/range/as_literal.hpp:93
#7  0xb677a4ee in boost::as_literal<std::string> (r=...) at /usr/include/boost/range/as_literal.hpp:102
#8  0xb6779663 in boost::algorithm::iter_split<std::vector<std::string, std::allocator<std::string> >, std::string, boost::algorithm::detail::token_finderF<boost::algorithm::detail::is_any_ofF<char> > > (Result=..., Input=..., Finder=...)
    at /usr/include/boost/algorithm/string/iter_find.hpp:153
#9  0xb677882f in boost::algorithm::split<std::vector<std::string, std::allocator<std::string> >, std::string, boost::algorithm::detail::is_any_ofF<char> > (Result=..., Input=..., Pred=..., eCompress=boost::algorithm::token_compress_off)
    at /usr/include/boost/algorithm/string/split.hpp:149
#10 0xb67768f8 in ns3::ndn::ConsumerCbr::SendPacket (this=0x8390390) at ../src/ndnSIM/apps/ndn-consumer-cbr.cc:229
#11 0xb67779a9 in ns3::EventMemberImpl0::Notify (this=0x84fb408) at ./ns3/make-event.h:96
#12 0xb5035e4b in ns3::EventImpl::Invoke (this=0x84fb408) at ../src/core/model/event-impl.cc:45
#13 0xb5039f88 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x809a380) at ../src/core/model/default-simulator-impl.cc:138
#14 0xb503a1a8 in ns3::DefaultSimulatorImpl::Run (this=0x809a380) at ../src/core/model/default-simulator-impl.cc:193
#15 0xb5036c51 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:160
#16 0x08059c3f in main (argc=2, argv=0xbffff184) at ../src/ndnSIM/examples/ndn-tree-cs-tracers.cc:473
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I am confused, why the GetStatus() can be called here but the GetRoutingCost() can not? 
Please help. I have tried several times, but still have this problem. Look forward your help. 
Thanks & Regards



Kevin Xu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20131209/bd22c387/attachment.html>


More information about the ndnSIM mailing list