segfault with arma