<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Xiaoke,</div><div><br></div>Am I assuming correctly that you're referring to some code that is relies on "previously created" PIT entry?<div>If it is true, than you're absolutely right.  A pitEntry may not me created for various reasons (PIT resources exhausted or there is no FIB entry that can be associated with this PIT entry) and one needs always check if pitEntry is 0 (actually, better would be if you compared with the value returned by m_pit->End(), but currently it is the same thing).</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Apr 6, 2013, at 4:42 AM, Xiaoke Jiang <<a href="mailto:shock.jiang@gmail.com">shock.jiang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
                <div style="font-family: Helvetica; font-size: 13px; ">Bug Fixed. It caused by pitEntry == 0. I should present a if statement first.<br></div>
                <div><div><br></div><div style="font-family: Futura; font-size: 13px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke (Shock) Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China, 100084</font></span></div></font></div></div></div><p style="color: #A0A0A8;">On Saturday, April 6, 2013 at 7:27 PM, Xiaoke Jiang wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span>
                <div>
                    <pre style="margin-top: 0px; margin-bottom: 0px; padding: 0px; border: 0px; font-size: 12px; font-family: Consolas, 'Liberation Mono', Courier, monospace; color: rgb(51, 51, 51); line-height: 16px; "><div style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;"><span style="margin: 0px; padding: 0px; border: 0px; ">Hi, I met a problem, when I call GetInterest in <a href="http://ndn-pit-entry.cc/">ndn-pit-entry.cc</a></span></div><div style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;"><span style="margin: 0px; padding: 0px; border: 0px; ">Ptr</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: bold;"><</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: bold;">const</span> <span style="margin: 0px; padding: 0px; border: 0px; ">Interest</span><span style="margin: 0px; padding: 0px; border: 0px; font-weight: bold;">></span></div><div style="margin: 0px; padding: 0px 0px 0px 10px; border: 0px;">  <span style="margin: 0px; padding: 0px; border: 0px; ">GetInterest</span> <span style="margin: 0px; padding: 0px; border: 0px;">()</span> <span style="margin: 0px; padding: 0px; border: 0px; font-weight: bold;">const</span><span style="margin: 0px; padding: 0px; border: 0px;">;</span></div></pre>
                </div>
                <div><div><br></div><div>The program will shutdown (terminated with signal SIGSEGV.), I tried serval times. Does anyone can give some hints?</div><div>I think GetInterest() is quit a normal Getter, why does it happy?</div><div><br></div><div style="font-family: Futura; font-size: 13px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="'comic sans ms', sans-serif">thanks</font><br><br><font face="garamond, serif"><font size="4">My Regards,</font><br></font></div><hr align="left" size="1" style="color: rgb(34, 34, 34); font-size: small; font-family: arial; width: 210px; min-height: 1px; "><div style="color: rgb(34, 34, 34); font-size: small; background-color: rgb(255, 255, 255); font-family: arial; "><font face="garamond, serif"><div><span style="font-size: 10.5pt; ">Xiaoke (Shock) Jiang (蒋小可)</span></div><div><span style="font-size: 10.5pt; "><br></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Ph.D Candidate,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Dept. of Computer Science and Technology,</font></span></div><div><span style="font-size: 10.5pt; "><font color="#666666">Tsinghua University, P. R. China, 100084</font></span></div></font></div></div></div>
            </span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>
            _______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></div></body></html>