[ndnSIM] Error getting node index (GetContext)
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Thu Oct 5 09:33:55 PDT 2017
Hi,
I would guess that you do not initialize some variable somewhere in your code, therefore, what you see is undefined behavior.
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Oct 5, 2017, at 9:25 AM, Mateus Sousa <mateus.aluufc at gmail.com> wrote:
>
> Hi all,
>
> I'm facing a problem to retrieve the current node index in forwarding class. Sometimes it works, sometimes it doesn't and returns the following error message:
>
> assert failed. cond="n < m_nodes.size ()", msg="Node index 4294967295 is out of range (only have 4 nodes).", file=../src/network/model/node-list.cc, line=209
> terminate called without an active exception
> .
>
> I'm calling this function in 'MulticastStrategy::afterReceiveInterest' (ns3::Simulator::GetContext()). Can someone explain this?
>
> Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171005/e660a946/attachment.html>
More information about the ndnSIM
mailing list