<p dir="ltr">Hi Sabet</p>
<p dir="ltr">This usually occurs when you are trying to send a packet when processing a packet. You need a io.post in real application or ns3::Simulator::ScheduleNow in simulated application *somewhere*.</p>
<p dir="ltr">Yours, Junxiao</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 13, 2016 10:37 PM, "Muhammad Hosain Abdollahi Sabet" <<a href="mailto:mhasabet@gmail.com">mhasabet@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I have a custom application <i>"CustomApp". </i>I have put SendInterest() in public so I can call it from scenario, for testing purposes. With this snap:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">  ndn::AppHelper app1("CustomApp");<br>  ApplicationContainer appCont = app1.Install(ConsNode);<br><br>  Ptr<CustomApp> app1ptr = DynamicCast<CustomApp>(<wbr>appCont.Get(0));<br>  app1ptr->SendInterest();<br></blockquote><div><br></div><div>I'm getting:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Command ['.../ns-3/build/scratch/<wbr>simple-custom-app'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").<br></blockquote><div><br></div><div>which buy following gdb(insight) I end up :<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">BOOST_ASSERT_MSG(!m_<wbr>isExecuting, "cannot emit signal from a handler");</blockquote><div><br> It is from:<br><a href="https://github.com/named-data-ndnSIM/ndn-cxx/blob/master/src/util/signal-signal.hpp:224" target="_blank">https://github.com/named-data-<wbr>ndnSIM/ndn-cxx/blob/master/<wbr>src/util/signal-signal.hpp:224</a><br></div><div>Branch: ndn-cxx.0.3.4-ndnSIM<br><br></div><div>I have tested app1ptr with some sample doing-nothing-but-LOG member function and it worked.<br><br></div><div>I appreciate it if you could help me on what is wrong.<br><br></div><div>Thanks,<br></div><div>Sabet<br></div></div> <br></div></div><div><div data-smartmail="gmail_signature"><div dir="ltr"><br></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div></div>