[ndnSIM] [EXT] debugging problem

Junxiao Shi shijunxiao at email.arizona.edu
Fri Apr 23 22:22:23 PDT 2021

Hi Sai

The crash is most likely not caused by SimpleRefCount, but some other
Error message suggests a double free error or memory leak.

If you haven't read ns-3 Reference Manual *in full*, you should do so to
gain a deeper understanding on how ns-3 works at low level.

Yours, Junxiao

On Sat, Apr 24, 2021 at 01:16 sai gautams <saigautam96 at gmail.com> wrote:

> *External Email*
> Hi Junxiao,
> Thanks for the quick response. Yes, I tried running the code in GDB and
> then I traced the code and the error popped up which is
> related simple.ref.count:h. I don't understand how to solve that error.
> Thanks,
> On Sat, Apr 24, 2021 at 3:11 PM Junxiao Shi <shijunxiao at email.arizona.edu>
> wrote:
>> Hi Sai
>> Run ns-3 in GDB, and then you can see the stacktrace when it crashes.
>> Related resources:
>> 🔸 The command line needed to start the simulation in GDB is printed at
>> the bottom after simulation crashes.
>> 🔸 You can look online for GDB tutorials.
>> Yours, Junxiao
>> On Thu, Apr 22, 2021 at 22:14 sai gautams via ndnSIM <
>> ndnsim at lists.cs.ucla.edu> wrote:
>>> *External Email*
>>> Dear all,
>>> I'm facing the following issue when I try to debug my code in ndnSIM. I
>>> don't understand how to deal with this fault.
>>> Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f584d1
>>> in ns3::SimpleRefCount<ns3::Object, ns3::ObjectBase,
>>> ns3::ObjectDeleter>::Ref (this=0x6465697272616320) at
>>> ./ns3/simple-ref-count.h:107 107    NS_ASSERT (m_count <
>>> std::numeric_limits<uint32_t>::max())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210424/324e3027/attachment.html>

More information about the ndnSIM mailing list