[mlpack-git] [mlpack] Segmentation fault with armadillo v5 and up (#431)

John Lees notifications at github.com
Tue Apr 14 11:11:08 EDT 2015


As detailed here:
http://arma.sourceforge.net/docs.html#uword

Armadillo uses 64 bit word length by default when using a c++11 capable compiler. When used with mlpack this leads to errors such as

    error: arma::memory::acquire(): out of memory

    terminate called after throwing an instance of 'std::bad_alloc'
      what():  std::bad_alloc

I've tried uncommenting the relevant line in include/armadillo_bits/config.hpp, and using -DARMA_64BIT_WORD when running cmake with mlpack. However when I link this version of mlpack my application immediately segfaults:

    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff791f905 in long double boost::math::lanczos::lanczos17m64::lanczos_sum_expG_scaled<long double>(long double const&) ()
    from /nfs/users/nfs_j/jl11/installations/pangwas/mlpack/build_64/lib/libmlpack.so.1
    (gdb) bt
    #0  0x00007ffff791f905 in long double boost::math::lanczos::lanczos17m64::lanczos_sum_expG_scaled<long double>(long double const&) ()
    from /nfs/users/nfs_j/jl11/installations/pangwas/mlpack/build_64/lib/libmlpack.so.1
    #1  0x00007ffff791133f in _GLOBAL__sub_I_discrete_distribution.cpp () from /nfs/users/nfs_j/jl11/installations/pangwas/mlpack/build_64/lib/libmlpack.so.1
    #2  0x00007ffff7de9306 in ?? () from /lib64/ld-linux-x86-64.so.2

Could you provide advice on how to compile and link mlpack correctly when using the newer versions of Armadillo?

Thanks!

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


More information about the mlpack-git mailing list