<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Developers,</p>
<p><br>
</p>
<p>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. </p>
<p><br>
</p>
<p>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?</p>
<p><br>
</p>
<p>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></p>
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>I have also attached valgrind's full log.<br>
<a href="https://gerrit.named-data.net/#/c/3822" class="OWAAutoLink"></a>
<div><br>
</div>
<div>Thank you for your time,</div>
<div><br>
</div>
<div>Damian Coomes</div>
</div>
</div>
</body>
</html>