<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;" class="">Hi Damian<div class=""><br class=""></div><div class="">I see nothing unusual in the output. If they are false positives caused by valgrind bugs, you can safely ignore them.</div><div class="">If you are uncertain whether there’s a problem in the code, try AddressSanitizer (ASan) instead of valgrind and see whether ASan complains about anything.</div><div class=""><br class=""></div><div class="">Yours, Junxiao</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 24, 2017, at 9:18 AM, Damian Matthew Coomes (dmcoomes) <<a href="mailto:dmcoomes@memphis.edu" class="">dmcoomes@memphis.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Developers,</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Currently, I am working on a patch that will replace nlsr's log4cxx with ndn-cxx's logging facility. I am running into an issue regarding the unit-tests in nlsr. A majority of the time, I can run the tests and there will be no errors. Every now and then, I will receive a segmentation fault from one of the tests. When I run valgrind on the file, I first receive messages that state "conditional jump or move depends on uninitialised value(s)". These messages appear for the master branch as well, and in searching for these kind of valgrind errors, I found that others have received these messages as false positives. Therefore, my interests are in the following messages. I get a long list of messages that state "block was alloc'd at", "invalid read of size x", or "address is x bytes inside a block of size y free'd". The issues generally mention Boost on numerous lines under the messages. Many seem to indicate issues with the logging aspect of Boost. For instance, some of the messages point to std::ostream::flush(), which likely indicates the writing of log messages to the destination file. It is also important to note that the nlsr executable file is not experiencing segmentation faults. It is just the unit-tests. </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">The unit-tests were not altered much. I changed the default log-level to match my change in nlsr.conf. I also call an INIT_LOGGERS() function that sets the logging destination file and the log-level. A few other tests have a setLevel function to change the log-level from DEBUG to TRACE and vice versa. Has anyone who has worked on ndn-cxx's logging or Boost run into issues of this sort before?</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Here is the Redmine issue: <a href="https://redmine.named-data.net/issues/3949#change-18572" class="OWAAutoLink" id="LPlnk49340" previewremoved="true">https://redmine.named-data.net/issues/3949#change-18572</a></div>Here is the patch on gerrit: <a href="https://gerrit.named-data.net/#/c/3822" class="OWAAutoLink" id="LPlnk186285">https://gerrit.named-data.net/#/c/3822</a><div class="">I have also attached valgrind's full log.<br class=""><a href="https://gerrit.named-data.net/#/c/3822" class="OWAAutoLink"></a><div class=""><br class=""></div><div class="">Thank you for your time,</div><div class=""><br class=""></div><div class="">Damian Coomes</div></div></div><span id="cid:8A101C58-C2AE-4419-9C19-7FAA09A5BCA6"><valgrind_output.txt></span><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Nfd-dev mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Nfd-dev@lists.cs.ucla.edu</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a></div></blockquote></div><br class=""></div></body></html>