<div dir="ltr">Hi Junxiao, <div>with valgrind i got following message.</div><div><br></div><div>=7621== 336 bytes in 1 blocks are possibly lost in loss record 131 of 146<br>==7621==    at 0x4C31B25: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)<br>==7621==    by 0x40134F6: allocate_dtv (dl-tls.c:286)<br>==7621==    by 0x40134F6: _dl_allocate_tls (dl-tls.c:530)<br>==7621==    by 0x676E227: allocate_stack (allocatestack.c:627)<br>==7621==    by 0x676E227: pthread_create@@GLIBC_2.2.5 (pthread_create.c:644)<br>==7621==    by 0x752CB09: boost::thread::start_thread_noexcept() (in /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.65.1)<br>==7621==    by 0x524E3BF: start_thread (thread.hpp:178)<br>==7621==    by 0x524E3BF: thread<boost::_bi::bind_t<void, boost::_mfi::mf0<void, boost::log::v2_mt_posix::sinks::asynchronous_sink<ndn::util::TextOstreamBackend> >, boost::_bi::list1<boost::_bi::value<boost::log::v2_mt_posix::sinks::asynchronous_sink<ndn::util::TextOstreamBackend>*> > > > (thread.hpp:265)<br>==7621==    by 0x524E3BF: start_feeding_thread (async_frontend.hpp:472)<br>==7621==    by 0x524E3BF: asynchronous_sink (async_frontend.hpp:283)<br>==7621==    by 0x524E3BF: boost::detail::sp_if_not_array<boost::log::v2_mt_posix::sinks::asynchronous_sink<ndn::util::TextOstreamBackend, boost::log::v2_mt_posix::sinks::unbounded_fifo_queue> >::type boost::make_shared<boost::log::v2_mt_posix::sinks::asynchronous_sink<ndn::util::TextOstreamBackend, boost::log::v2_mt_posix::sinks::unbounded_fifo_queue>, boost::shared_ptr<ndn::util::TextOstreamBackend>&>(boost::shared_ptr<ndn::util::TextOstreamBackend>&) (make_shared_object.hpp:254)<br>==7621==    by 0x5247EEF: ndn::util::Logging::makeDefaultStreamDestination(std::shared_ptr<std::ostream>, bool) (logging.cpp:277)<br>==7621==    by 0x5249106: ndn::util::Logging::Logging() (logging.cpp:100)<br>==7621==    by 0x52493D2: ndn::util::Logging::get() (logging.cpp:87)<br>==7621==    by 0x5246F6C: ndn::util::Logger::registerModuleName(char const*) (logger.cpp:117)<br>==7621==    by 0x5027490: operator() (face-impl.hpp:41)<br>==7621==    by 0x5027490: __static_initialization_and_destruction_0(int, int) (face-impl.hpp:41)<br>==7621==    by 0x502E373: _GLOBAL__sub_I_face.cpp (face.cpp:404)<br>==7621==    by 0x4010782: call_init (dl-init.c:72)<br>==7621==    by 0x4010782: _dl_init (dl-init.c:119)<br></div><div><br></div><div>LEAK SUMMARY:<br>==7621==    definitely lost: 0 bytes in 0 blocks<br>==7621==    indirectly lost: 0 bytes in 0 blocks<br>==7621==      possibly lost: 336 bytes in 1 blocks<br>==7621==    still reachable: 20,099 bytes in 148 blocks<br>==7621==         suppressed: 0 bytes in 0 blocks<br></div><div><br></div><div>It points to face.cpp and face-imp.hpp. Can you suggest how to proceed further?</div><div><br></div><div>Regards</div><div>Swetha.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020 at 6:39 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Hi Swetha</div><div dir="auto"><br></div><div dir="auto">The program is running out of memory. You need a box with more RAM.</div><div dir="auto"><br></div><div dir="auto">The other possibility is, you are passing an incorrect parameter. For example, trying to allocate "-1" objects would cause the system to allocate 2^32-1 objects, which causes allocation error.</div><div dir="auto">You may use <b>gdb</b> or <b>valgrind</b> to verify this condition.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020, 09:05 Swetha B via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr"><div dir="ltr">Hi Junxiao,<div>I have configured ndn-cxx with</div><div> ./waf configure --with-tests --with-examples --debug --without-pch</div><div>I have problem building my tests as shown below</div><div><br></div><div>swetha@swetha-Ubuntu:~/ndn-cxx$ ./build/unit-tests<br>terminate called after throwing an instance of 'std::bad_alloc'<br>  what():  std::bad_alloc<br>Aborted (core dumped)<br></div><div><br></div><div>should i run any additional commands for this?</div><div><br></div><div>Regards</div><div>Swetha</div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div></div></div>
</blockquote></div></div></div>
</blockquote></div>