<p>I recently installed mlpack and tried running some test programs from source such as allknn_test.cpp by running mlpack_test -t AllkNNTest and this the output I got:<br>
Running 21 test cases...<br>
mlpack_test: /home/ozair/programming/mlpack/src/mlpack/../mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp:882: bool mlpack::tree::RectangleTree::ShrinkBoundForPoint(const vec&amp;) [with MetricType = mlpack::metric::LMetric&lt;2, true&gt;; StatisticType = mlpack::neighbor::NeighborSearchStatmlpack::neighbor::NearestNeighborSort; MatType = arma::Mat; SplitType = mlpack::tree::RStarTreeSplit; DescentType = mlpack::tree::RStarTreeDescentHeuristic; arma::vec = arma::Col]: Assertion `false' failed.<br>
unknown location(0): fatal error in "KNNModelTest": signal: SIGABRT (application abort requested)<br>
/home/ozair/programming/mlpack/src/mlpack/tests/allknn_test.cpp(1027): last checkpoint<br>
unknown location(0): fatal error in "KNNModelMonochromaticTest": std::runtime_error: Timer::Start(): timer 'tree_building' has already been started<br>
/home/ozair/programming/mlpack/src/mlpack/tests/allknn_test.cpp(1027): last checkpoint<br>
unknown location(0): fatal error in "NeighborPtrDeleteTest": std::runtime_error: Timer::Start(): timer 'tree_building' has already been started<br>
/home/ozair/programming/mlpack/src/mlpack/tests/allknn_test.cpp(1115): last checkpoint</p>

<p>*** 3 failures detected in test suite "mlpackTest"</p>

<p>It seems that the test is failing on three test cases:<br>
KNNModelTest<br>
KNNModelMonochromaticTest<br>
NeighborPtrDeleteTest</p>

<p>It seems like there is assertion failure at line 882 when allocating a RectangleTree object. Also, in source file allknn_test.cpp, in BOOST_AUTO_TEST_CASE(KNNModelMonochromaticTest), we are declaring an array of type KNNModel, at line 1052, while assigning a new kNNModel object at the highest index of the array, the code at the line references to models[0] instead of models[9], Hence, at the inner loop where the program is accessing the models array at i = 9, I think this will cause a memory exception because the object at this location was not assigned. But, I've yet to rebuild the program and test it out for myself yet.</p>

<p>Regards.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/573">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDON7-p351yKOlkDcOAeiwbrULtTks5ptaMHgaJpZM4HwUP4.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/573"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>