<div dir="auto">Marzieh,<div dir="auto"><br></div><div dir="auto">I noticed the SIGSEGV says that this=0x0.  So the object upon which afterReceiveInterest is called is nullptr perhaps?</div><div dir="auto"><br></div><div dir="auto">John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 17, 2017 3:48 PM, "Marzieh Babaeianjelodar" <<a href="mailto:babaeim@clarkson.edu">babaeim@clarkson.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>When I debug with gdb it does not break into the function inside the strategy file (afterReceiveInterest), and so I am unable to find the error inside that function. </div><div><br></div><div>There is the following attached file for when i run the debugger.</div><div><br></div><div></div></div><br><div style="word-wrap:break-word"><div></div><div><br></div><div>Best Regards,</div><div>Marzieh</div><div><br><div><blockquote type="cite"><div>On Jul 13, 2017, at 9:16 PM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" target="_blank">babaeim@clarkson.edu</a>> wrote:</div><br class="m_-8583728042177854191Apple-interchange-newline"><div><div style="word-wrap:break-word"><div>Thanks, I was looking for gdb but I didn't know how to run it. </div><div>Now I found the code.</div><div><br></div><div>~Marzieh</div><br><div><blockquote type="cite"><div>On Jul 13, 2017, at 8:57 PM, Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>> wrote:</div><br class="m_-8583728042177854191Apple-interchange-newline"><div><div style="word-wrap:break-word">Hi,<div><br></div><div>the way to do that is through a simulation scenario using this strategy. You run the scenario under gdb and set the appropriate breakpoints in the strategy code.</div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div><div><blockquote type="cite"><div>On Jul 12, 2017, at 10:30 AM, Marzieh Babaeianjelodar <<a href="mailto:babaeim@clarkson.edu" target="_blank">babaeim@clarkson.edu</a>> wrote:</div><br class="m_-8583728042177854191Apple-interchange-newline"><div><div>Dear All,<br><br>I coded my own strategy and it has a segmentation fault and I was wondering if I could use a debugger (gdb) to debug my strategy?<br><br>Best Regards,<br>Marzieh <br></div></div></blockquote></div><br></div></div></div></blockquote></div><br></div></div></blockquote></div><br></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>