[ndnSIM] Debugging Strategy

John Baugh jpbaugh at umich.edu
Tue Jul 18 00:38:25 PDT 2017


Marzieh,

I noticed the SIGSEGV says that this=0x0.  So the object upon which
afterReceiveInterest is called is nullptr perhaps?

John

On Jul 17, 2017 3:48 PM, "Marzieh Babaeianjelodar" <babaeim at clarkson.edu>
wrote:

> Hi,
>
> 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.
>
> There is the following attached file for when i run the debugger.
>
>
>
> Best Regards,
> Marzieh
>
> On Jul 13, 2017, at 9:16 PM, Marzieh Babaeianjelodar <babaeim at clarkson.edu>
> wrote:
>
> Thanks, I was looking for gdb but I didn't know how to run it.
> Now I found the code.
>
> ~Marzieh
>
> On Jul 13, 2017, at 8:57 PM, Spyridon (Spyros) Mastorakis <
> mastorakis at cs.ucla.edu> wrote:
>
> Hi,
>
> 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.
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On Jul 12, 2017, at 10:30 AM, Marzieh Babaeianjelodar <
> babaeim at clarkson.edu> wrote:
>
> Dear All,
>
> 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?
>
> Best Regards,
> Marzieh
>
>
>
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170718/112dc595/attachment.html>


More information about the ndnSIM mailing list