<div dir="ltr">Hello Alex,<div><br></div><div>I am working on a macOS VM. My unit test for NFD compiles correctly. However, I get a runtime error when running the test suit. So I wanted to check where the error occurs. I tried the following:</div><div><br></div><div><b><font face="monospace, monospace">> sudo gdb build/unit-tests-daemon</font></b></div><div><b><font face="monospace, monospace">> (gdb) r -t Face/TestMulticastUdpTransport</font></b></div><div><br></div><div>This just runs through the test suit same as performing regular <font face="monospace, monospace"><b>./build/unit-tests-daemon -t Face/TestMulticastUdpTransport</b></font>. The error only shows an <b>unknown location:0:</b> and a "<b>Last Checkpoint</b>" of the test file which does not help at finding the exact line where the error occurs.</div><div><br></div><div>The error message:</div><div><br></div><div><div><font face="monospace, monospace" color="#0000ff">unknown location:0: fatal error: in "Face/TestMulticastUdpTransport/ReceiveMultipleRemoteEndpoints<nfd__face__tests__IpTransportFixture<nfd__face__tests__MulticastUdpTransportFixture,_(nfd__face__tests__AddressFamily)2,_(nfd__face__tests__AddressScope)2,_(nfd__face__tests__MulticastInterface)1>>": boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >: set_option: Can't assign requested address</font></div><div><font face="monospace, monospace" color="#0000ff">../tests/daemon/face/multicast-udp-transport.t.cpp:74: last checkpoint: "ReceiveMultipleRemoteEndpoints" entry.</font></div></div><div><br></div><div>Regards-</div><div>Ashiq</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 11, 2017 at 9:55 AM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.fiu.edu" target="_blank">aa@cs.fiu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ashiq,<br>
<br>
Can you add a bit more details on what you are doing and what expecting?<br>
<br>
--<br>
Alex<br>
<div><div class="h5"><br>
> On Nov 10, 2017, at 8:31 PM, Md Ashiqur Rahman <<a href="mailto:marahman@email.arizona.edu">marahman@email.arizona.edu</a>> wrote:<br>
><br>
> Hello, I am trying to debug with gdb and lldb. I have made sure I have debug flag set in configuration. However, i am not getting the exact line number of code where the error is occuring. Would really appreciate if someone can help how I debug in nfd with gdb/lldb.<br>
><br>
> Regards-<br>
> Ashiq<br>
</div></div>> ______________________________<wbr>_________________<br>
> Nfd-dev mailing list<br>
> <a href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a><br>
<br>
</blockquote></div><br></div>