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

aaronmcdaid notifications at github.com
Wed Aug 19 18:50:43 EDT 2015


Regarding the 64-bit issue, I think we need somebody to bring it all together, at least to describe a fullproof way to recompile everything (3 things: arma, mlpack, your application) in a safe way.

For me, my test program (the linear regression program and the nearest neighbour program copied directly from the mlpack tutorials) crashed (segfault) until I changed my compilation from -std=c++11 to -std=c++03. That suggests that my arma and mlpack binaries were compatible with each other, and were 32-bit, but were incompatible with the test application if the test application was compiled with -std=c++11.

Here's what worked for me to get 64:

 1. go back to the start with arma, fresh build directory
 1. cmake for arma
 3. edit the config.hpp (somewhere in build/tmp) to #define ARMA_64BIT_WORD
 4. make
 5. make install 
 7. go back to the start with mlpack, fresh build directory
 1. cmake # won't complain about 64. If it does, restart and be sure to do step 3 correctly
 1. make
 1. make install
 1. now my test applications work (regardless of c++03 or c++11) because ARMA_64BIT_WORD has been "baked into" everything, having been defined very early in the process.



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


More information about the mlpack-git mailing list