[mlpack-git] [mlpack] segmentation fault with LogisticRegression API (#428)

Ryan Curtin notifications at github.com
Sun Jun 14 19:06:17 EDT 2015


I bet that you compiled mlpack with Armadillo configured with ARMA_64BIT_WORD disabled, but in your code that you compiled, ARMA_64BIT_WORD is enabled. (or vice versa). The compiler should emit a big warning if you do that.

The actual issue is that libmlpack.so is compiled with `uword` set to an integer type of one length (`uword` is used by Armadillo objects) whereas you program is compiled with `uword` set to another size. Note that `LogisticRegression` is a template class and is thus compiled only in to your executable whereas `LogisticRegressionFunction` is not and therefore is compiled into libmlpack.so. Or is that libmlpack.dylib on OS X?

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/428#issuecomment-111883078
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150614/ab06adfa/attachment.html>


More information about the mlpack-git mailing list