[ndnSIM] malloc.c: No such file or directory

Mahmoudi, Charif (IntlAssoc) charif.mahmoudi at nist.gov
Fri Aug 26 13:12:40 PDT 2016


Hi,

It seems that I am having a bug on NFD while using ndnSIM as illustrated in the stack below. Anyone have an idea that can help ?

Thanks per advance
Charif

antd at htn1:~/ndn-stack/ndnSIM/ns-3$ ./waf --run="ndn-bigdata" --command-template="gdb --args %s ndn-bigdata"
Waf: Entering directory `/home/antd/ndn-stack/ndnSIM/ns-3/build'
Waf: Leaving directory `/home/antd/ndn-stack/ndnSIM/ns-3/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (1.403s)
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/antd/ndn-stack/ndnSIM/ns-3/build/scratch/ndn-bigdata...done.
(gdb) run
Starting program: /home/antd/ndn-stack/ndnSIM/ns-3/build/scratch/ndn-bigdata ndn-bigdata
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007fffedc44d3c in __GI___libc_free (mem=0x729d78) at malloc.c:2945
2945    malloc.c: No such file or directory.
(gdb) info stack
#0  0x00007fffedc44d3c in __GI___libc_free (mem=0x729d78) at malloc.c:2945
#1  0x00007ffff13f330e in deallocate (this=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.8/ext/new_allocator.h:110
#2  _M_put_node (this=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.8/bits/stl_tree.h:374
#3  _M_destroy_node (this=<optimized out>, __p=<optimized out>) at /usr/include/c++/4.8/bits/stl_tree.h:422
#4  _M_erase_aux (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_tree.h:1746
#5  erase (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_tree.h:820
#6  erase (__position=..., this=0x729d70) at /usr/include/c++/4.8/bits/stl_map.h:697
#7  ns3::MapScheduler::Remove (this=0x729d50, ev=...) at ../src/core/model/map-scheduler.cc:109
#8  0x00007ffff13f6ab7 in ns3::DefaultSimulatorImpl::Remove (this=0x72ab10, id=...) at ../src/core/model/default-simulator-impl.cc:352
#9  0x00007ffff6265e96 in nfd::scheduler::cancel (eventId=std::shared_ptr (count 1, weak 0) 0xc1115b8) at ../src/ndnSIM/NFD/core/scheduler.cpp:61
#10 0x00007ffff62b2fc1 in nfd::rib::RibManager::scheduleActiveFaceFetch (this=this at entry=0x18b2018, timeToWait=...)
    at ../src/ndnSIM/NFD/rib/rib-manager.cpp:641
#11 0x00007ffff62b4d7b in nfd::rib::RibManager::removeInvalidFaces (this=this at entry=0x18b2018, buffer=std::shared_ptr (count 5, weak 0) 0xc21aa18)
    at ../src/ndnSIM/NFD/rib/rib-manager.cpp:720
#12 0x00007ffff62b528f in nfd::rib::RibManager::fetchSegments (this=0x18b2018, data=..., buffer=std::shared_ptr (count 5, weak 0) 0xc21aa18)
    at ../src/ndnSIM/NFD/rib/rib-manager.cpp:679
#13 0x00007ffff62b9837 in operator() (a2=..., a1=..., p=<optimized out>, this=<optimized out>) at /usr/include/boost/bind/mem_fn_template.hpp:280
#14 operator()<boost::_mfi::mf2<void, nfd::rib::RibManager, const ndn::Data&, std::shared_ptr<ndn::OBufferStream> >, boost::_bi::list2<const ndn::Interest&, ndn::Data&> > (a=<synthetic pointer>, f=..., this=<optimized out>) at /usr/include/boost/bind/bind.hpp:392
#15 operator()<ndn::Interest, ndn::Data> (a2=..., a1=..., this=<optimized out>) at /usr/include/boost/bind/bind_template.hpp:76
#16 std::_Function_handler<void (ndn::Interest const&, ndn::Data&), boost::_bi::bind_t<void, boost::_mfi::mf2<void, nfd::rib::RibManager, ndn::Data const&, std::shared_ptr<ndn::OBufferStream> >, boost::_bi::list3<boost::_bi::value<nfd::rib::RibManager*>, boost::arg<2>, boost::_bi::value<std::shared_ptr<ndn::OBufferStream> > > > >::_M_invoke(std::_Any_data const&, ndn::Interest const&, ndn::Data&) (__functor=..., __args#0=..., __args#1=...)
    at /usr/include/c++/4.8/functional:2071
#17 0x00007ffff60fc962 in operator() (__args#1=..., __args#0=..., this=0xc1a41d8) at /usr/include/c++/4.8/functional:2471
#18 invokeDataCallback (data=..., this=0xc1a41c8) at ../src/ndnSIM/ndn-cxx/src/detail/pending-interest.hpp:81
#19 ndn::Face::Impl::satisfyPendingInterests (this=0x189faa0, data=...) at ../src/ndnSIM/ndn-cxx/src/detail/face-impl.hpp:140
#20 0x00007ffff13f6c5d in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=this at entry=0x72ab10) at ../src/core/model/default-simulator-impl.cc:149
#21 0x00007ffff13f6cb5 in ns3::DefaultSimulatorImpl::Run (this=0x72ab10) at ../src/core/model/default-simulator-impl.cc:202
#22 0x000000000040a0a7 in ns3::main (argc=<optimized out>, argv=<optimized out>) at ../scratch/ndn-bigdata.cc:210
#23 0x00007fffedbe3f45 in __libc_start_main (main=0x40ade0 <main(int, char**)>, argc=2, argv=0x7fffffffe478, init=<optimized out>,
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe468) at libc-start.c:287
#24 0x000000000040ae0e in _start ()
(gdb)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160826/03d7d8ab/attachment.html>


More information about the ndnSIM mailing list