Registered Member
|
Hi!
I wrote some code using Eigen which works perfectly on Linux. When I try to run it on MAC I get the following error below. I wonder if anyone has a clue what is wrong with my setup: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010 [Switching to process 95926] 0x00000001000088c0 in omp_get_num_threads () at any.hpp:386 386 template<typename T> any::any_registration<T> any::holder<T>::__registration; (gdb) where #0 0x00000001000088c0 in omp_get_num_threads () at any.hpp:386 #1 0x000000010026ef24 in Eigen::internal::parallelize_gemm<true, Eigen::internal::gemm_functor<double, long, Eigen::internal::general_matrix_matrix_product<long, double, 0, false, double, 0, false, 0>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::internal::gemm_blocking_space<0, double, double, -1, -1, -1, false> >, long> (func=@0x102b0e0f0, rows=20, cols=20, transpose=false) at Parallelizer.h:105 #2 0x000000010026f35d in Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5>::scaleAndAddTo<Eigen::Matrix<double, -1, -1, 0, -1, -1> > (this=0x102b0e660, dst=@0x102b0e540, alpha=1) at GeneralMatrixMatrix.h:435 #3 0x000000010026f3d3 in Eigen::ProductBase<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >::scaleAndAddTo<Eigen::Matrix<double, -1, -1, 0, -1, -1> > (this=0x102b0e660, dst=@0x102b0e540, alpha=1) at ProductBase.h:124 #4 0x000000010026f407 in Eigen::ProductBase<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >::evalTo<Eigen::Matrix<double, -1, -1, 0, -1, -1> > (this=0x102b0e660, dst=@0x102b0e540) at ProductBase.h:115 #5 0x000000010026f667 in Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >::lazyAssign<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> > (this=0x102b0e540, other=@0x102b0e660) at ProductBase.h:283 #6 0x000000010026f6aa in Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >::lazyAssign<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5> > (this=0x102b0e540, other=@0x102b0e660) at PlainObjectBase.h:371 #7 0x000000010026f6d1 in Eigen::internal::assign_selector<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5>, false, false>::run (dst=@0x102b0e540, other=@0x102b0e660) at Assign.h:534 #8 0x000000010026f705 in Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >::_set_noalias<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5> > (this=0x102b0e540, other=@0x102b0e660) at PlainObjectBase.h:579 #9 0x000000010026f776 in Eigen::Matrix<double, -1, -1, 0, -1, -1>::Matrix<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5> > (this=0x102b0e540, other=@0x102b0e660) at Matrix.h:298 #10 0x00000001002703fe in Eigen::CwiseBinaryOp<Eigen::internal::scalar_sum_op<double>, Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5> const, Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, Eigen::Matrix<double, -1, -1, 0, -1, -1> const> const>::CwiseBinaryOp (this=0x102b0e540, lhs=@0x102b0e660, rhs=@0x102b0e8a0, func=@0x102b0e2ff) at CwiseBinaryOp.h:139 #11 0x0000000100270503 in Eigen::MatrixBase<Eigen::GeneralProduct<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, 5> >::operator+<Eigen::CwiseUnaryOp<Eigen::internal::scalar_multiple_op<double>, Eigen::Matrix<double, -1, -1, 0, -1, -1> const> > (this=0x102b0e660, other=@0x102b0e8a0) at CommonCwiseBinaryOps.h:42 #12 0x0000000100015dd7 in compute_least_squares (Q=@0x102b0e9d0, vals=@0x102b0ea30, weight=@0x102b0ea20, result=@0x102b0e9f0, isuser=true, toprint=false, numedges=2) at als.hpp:180 Thanks! Danny Bickson p.s. I am using eigen3.0.2 with MAC OS 10.6 gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) |
Moderator
|
MAC's compilers contain many bugs, please try with a more recent version of gcc from macport.
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]