<div dir="ltr">Hi Ygor,<div><br></div><div>Thanks for the information. So, from what I understand, I need to allocate memory to my code.Because the smart pointer of ns-3 is pointing nowhere I guess. Is that it? or something else.Please correct me.  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 25, 2021 at 4:35 AM Ygor Amaral <<a href="mailto:ygor.amaral@gmail.com">ygor.amaral@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Sai,<div><br></div><div>You are experiencing a memory allocation problem. ns-3 has a smart pointer mechanism and you are overloading the reference counting system.</div><div><br></div><div>Review your code in the snippets that you created ns-3 objects.<br></div><div><br></div><div>The limit of references is given by uint32_t. It is an acceptable value, the error is not the limit.<br></div><div><br></div><div>Regards,</div><div>Ygor Amaral</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 24, 2021 at 2:03 AM sai gautams <<a href="mailto:saigautam96@gmail.com" target="_blank">saigautam96@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Yogr,</div><div>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. Can you please help me out? Thank you.<br></div><div><br></div><div>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())</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 16, 2021 at 12:39 AM Ygor Amaral <<a href="mailto:ygor.amaral@gmail.com" target="_blank">ygor.amaral@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Sai,<div><br></div><div>I think the documentation does not explain in this way how you configured it. But in summary...</div><div><br></div><div>To configure in debug mode:<br></div><div>     - ./waf configure (or ./waf configure -d debug)</div><div><br></div><div>     ---- Summary of optional NS-3 features (CONFIGURE OUTPUT):<br>     Build profile                 : debug</div><div><br></div><div>To configure in optimized mode:<br></div><div>     - ./waf configure -d optimized<br></div><div><br></div><div>     ---- Summary of optional NS-3 features: (CONFIGURE OUTPUT)<br>     Build profile                 : optimized<br></div><div><br></div><div><br></div><div>Regards,</div><div>Ygor Amaral</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 12:37 AM sai gautams <<a href="mailto:saigautam96@gmail.com" target="_blank">saigautam96@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Ygor,<div><br></div><div>Thank you for the information. I tried compiling in the debugging mode(./waf configure --debug) as given in ndnSIM documentation. But it is throwing me an error of no such option. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 13, 2021 at 5:45 AM Ygor Amaral <<a href="mailto:ygor.amaral@gmail.com" target="_blank">ygor.amaral@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Sai,<div><br></div><div>This output log did not give much information.<br></div><div><br></div><div>Did you compile ndnSIM in debug or optimized mode? In the development stage, prefer the debug mode, use the optimized mode only for the final simulation.<br></div><div><br></div><div>I do not believe that the error is the number of nodes. If you are a new user, the first tip is to read the ns3 and ndnSIM documentation.<br></div><div><br></div><div>To try to solve this problem, read about the log module of ns-3, it will help you to find the problem. <a href="https://www.nsnam.org/docs/release/3.33/tutorial/html/tweaking.html#using-the-logging-module" target="_blank">https://www.nsnam.org/docs/release/3.33/tutorial/html/tweaking.html#using-the-logging-module</a><br></div><div><br></div><div>If you use any C ++ IDE (e.g.: Eclipse, CLion ...), you can do remote debugging to use breakpoints and other interesting debug features provided by these IDEs.<br></div><div><br></div><div>So, you would run as follows:</div><div><br></div><div>./waf --command-template="gdbserver localhost:1234 %s" --run=ndn-complex<br></div><div><br></div><div>Regards,</div><div>Ygor Amaral</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 12, 2021 at 4:21 AM sai gautams via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><br></div><div>Hello everyone,</div><div></div></div><div><br></div><div>I tried to write a code with 20 nodes (P2P) but when I try to visualize its build but for some reason, I couldn't. Can someone help me with this issue? I'm new to ndnSIM.</div><div><br></div>./waf --run=ndn-complex --vis<br>Waf: Entering directory `/home/smandapati/ndnSIM/ns-3/build'<br>[2772/3269] Compiling src/ndnSIM/examples/ndn-complex.cpp<br>[3227/3269] Linking build/src/ndnSIM/examples/ns3-dev-ndn-complex-debug<br>Waf: Leaving directory `/home/smandapati/ndnSIM/ns-3/build'<br>Build commands will be stored in build/compile_commands.json<br>'build' finished successfully (7.654s)<br>Command ['/home/smandapati/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-complex-debug', '--SimulatorImplementationType=ns3::VisualSimulatorImpl'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").<br><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p>

<p>Doctor of Philosophy Student</p>

<p>Higher Degree by Research</p>

<p>Faculty of Science, Engineering and Built-in Environment</p>

<p>E-mail: <a href="mailto:saigautam96@gmail.com" target="_blank">saigautam96@gmail.com</a></p>

<p><a href="http://www.linkedin.com/in/sai-gautam-mandapati" target="_blank">http://www.linkedin.com/in/sai-gautam-mandapati</a></p></div></div></div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">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/mailman/listinfo/ndnsim</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p>

<p>Doctor of Philosophy Student</p>

<p>Higher Degree by Research</p>

<p>Faculty of Science, Engineering and Built-in Environment</p>

<p>E-mail: <a href="mailto:saigautam96@gmail.com" target="_blank">saigautam96@gmail.com</a></p>

<p><a href="http://www.linkedin.com/in/sai-gautam-mandapati" target="_blank">http://www.linkedin.com/in/sai-gautam-mandapati</a></p></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p>

<p>Doctor of Philosophy Student</p>

<p>Higher Degree by Research</p>

<p>Faculty of Science, Engineering and Built-in Environment</p>

<p>E-mail: <a href="mailto:saigautam96@gmail.com" target="_blank">saigautam96@gmail.com</a></p>

<p><a href="http://www.linkedin.com/in/sai-gautam-mandapati" target="_blank">http://www.linkedin.com/in/sai-gautam-mandapati</a></p></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p><b>Sai Gautam Mandapati</b></p>

<p>Deakin University</p>

<p>Doctor of Philosophy Student</p>

<p>Higher Degree by Research</p>

<p>Faculty of Science, Engineering and Built-in Environment</p>

<p>E-mail: <a href="mailto:saigautam96@gmail.com" target="_blank">saigautam96@gmail.com</a></p>

<p><a href="http://www.linkedin.com/in/sai-gautam-mandapati" target="_blank">http://www.linkedin.com/in/sai-gautam-mandapati</a></p></div></div>