<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Ashiq,</p>
<p>I think that's the expected output, given that there was no
segfault. I believe gdb will only print a stacktrace if it
encounters a severe error like that. I'd recommend setting a
breakpoint on the line where you call set_option and then check
the current state of the relevant variables passed to the
function.<br>
</p>
<p>Eric<br>
</p>
<br>
<div class="moz-cite-prefix">On 11/11/2017 12:05 PM, Md Ashiqur
Rahman wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAbJvrFmvx_LXRVDHJ1zL2rZx=0+BJbqLhHJNoQ_SXoV85bf2g@mail.gmail.com">
<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" moz-do-not-send="true">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"
moz-do-not-send="true">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"
moz-do-not-send="true">Nfd-dev@lists.cs.ucla.edu</a><br>
> <a
href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Nfd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nfd-dev@lists.cs.ucla.edu">Nfd-dev@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>