yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03446
Re: wm3-eigen glue
I tried to disable vectorization by both ways, indicated on the webpage. But
it didn't help. I still have crash.
But I think it is not the same, like you had, right?
No symbol "info" in current context.
Thread 4 (Thread 0x7f1beb87b910 (LWP 30258)):
#0 0x00007f1c0251d3c1 in sem_wait () from /lib/libpthread.so.0
#1 0x00000000004cd598 in PyThread_acquire_lock ()
#2 0x000000000049cc04 in PyEval_RestoreThread ()
#3 0x00000000004ef73e in ?? ()
#4 0x00000000004a290d in PyEval_EvalFrameEx ()
#5 0x00000000004a40e0 in PyEval_EvalCodeEx ()
#6 0x000000000052be30 in ?? ()
#7 0x000000000041d6e7 in PyObject_Call ()
#8 0x00000000004254ff in ?? ()
#9 0x000000000041d6e7 in PyObject_Call ()
#10 0x000000000049c623 in PyEval_CallObjectWithKeywords ()
#11 0x00000000004d0bed in ?? ()
#12 0x00007f1c02516a04 in start_thread () from /lib/libpthread.so.0
#13 0x00007f1c019de80d in clone () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7f1beb07a910 (LWP 30259)):
#0 0x00007f1c0251d3c1 in sem_wait () from /lib/libpthread.so.0
#1 0x00000000004cd598 in PyThread_acquire_lock ()
#2 0x000000000049c85a in PyEval_AcquireThread ()
#3 0x00000000004d0bdc in ?? ()
#4 0x00007f1c02516a04 in start_thread () from /lib/libpthread.so.0
#5 0x00007f1c019de80d in clone () from /lib/libc.so.6
#6 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7f1be9bff910 (LWP 30260)):
#0 0x00007f1c019d7412 in select () from /lib/libc.so.6
#1 0x00007f1bfea0db14 in QEventLoop::processEvents(unsigned int) () from
/usr/lib/libqt-mt.so.3
#2 0x00007f1bfea735c1 in QEventLoop::enterLoop() () from
/usr/lib/libqt-mt.so.3
#3 0x00007f1bfea73472 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#4 0x00007f1c006c8f93 in thread_proxy () from
/usr/lib/libboost_thread-mt.so.1.38.0
#5 0x00007f1c02516a04 in start_thread () from /lib/libpthread.so.0
#6 0x00007f1c019de80d in clone () from /lib/libc.so.6
#7 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f1c029236f0 (LWP 30257)):
#0 0x00007f1c019a2b4d in waitpid () from /lib/libc.so.6
#1 0x00007f1c019401f9 in ?? () from /lib/libc.so.6
#2 0x00007f1c01940530 in system () from /lib/libc.so.6
#3 0x00007f1c00f8bc89 in crashHandler (sig=11) at core/main/pyboot.cpp:45
#4 <signal handler called>
#5 0x00007f1bec85586b in _mm_store_pd (x=0x7fff72cdb030) at
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/emmintrin.h:148
#6 ei_pstore<double, double __vector__> (x=0x7fff72cdb030) at
/usr/include/eigen2/Eigen/src/Core/arch/SSE/PacketMath.h:110
#7 ei_pstoret<double, double __vector__, 0> (x=0x7fff72cdb030) at
/usr/include/eigen2/Eigen/src/Core/GenericPacketMath.h:128
#8 writePacket<0> (x=0x7fff72cdb030) at
/usr/include/eigen2/Eigen/src/Core/Matrix.h:196
#9 copyPacket<Eigen::Matrix<double, 2, 1, 2, 2, 1>, 0, 0>
(x=0x7fff72cdb030) at /usr/include/eigen2/Eigen/src/Core/Coeffs.h:362
#10 Eigen::ei_assign_innervec_CompleteUnrolling<Eigen::Matrix<double, 2, 1,
2, 2, 1>, Eigen::Matrix<double, 2, 1, 2, 2, 1>, 0, 2>::run
(x=0x7fff72cdb030) at /usr/include/eigen2/Eigen/src/Core/Assign.h:166
#11 Eigen::ei_assign_impl<Eigen::Matrix<double, 2, 1, 2, 2, 1>,
Eigen::Matrix<double, 2, 1, 2, 2, 1>, 0, 2>::run (x=0x7fff72cdb030) at
/usr/include/eigen2/Eigen/src/Core/Assign.h:280
#12 lazyAssign<Eigen::Matrix<double, 2, 1, 2, 2, 1> > (x=0x7fff72cdb030) at
/usr/include/eigen2/Eigen/src/Core/Assign.h:407
#13 Eigen::ei_assign_selector<Eigen::Matrix<double, 2, 1, 2, 2, 1>,
Eigen::Matrix<double, 2, 1, 2, 2, 1>, false, false>::run (x=0x7fff72cdb030)
at /usr/include/eigen2/Eigen/src/Core/Assign.h:422
#14 _set_noalias<Eigen::Matrix<double, 2, 1, 2, 2, 1> > (x=0x7fff72cdb030)
at /usr/include/eigen2/Eigen/src/Core/Matrix.h:531
#15 Matrix (x=0x7fff72cdb030) at
/usr/include/eigen2/Eigen/src/Core/Matrix.h:390
#16 Vector2 (x=0x7fff72cdb030) at
/home/anton/dem/yade/testEigen/build-testEigen/include/yade-testEigen/yade/lib-base/yadeMath.hpp:89
#17 value_holder<boost::reference_wrapper<Vector2<double> const> >
(x=0x7fff72cdb030) at /usr/include/boost/python/object/value_holder.hpp:134
#18 boost::python::objects::make_instance<Vector2<double>,
boost::python::objects::value_holder<Vector2<double> > >::construct
(x=0x7fff72cdb030) at /usr/include/boost/python/object/make_instance.hpp:68
#19 execute<boost::reference_wrapper<Vector2<double> const> const>
(x=0x7fff72cdb030) at /usr/include/boost/python/object/make_instance.hpp:42
#20 boost::python::objects::class_cref_wrapper<Vector2<double>,
boost::python::objects::make_instance<Vector2<double>,
boost::python::objects::value_holder<Vector2<double> > > >::convert
(x=0x7fff72cdb030) at /usr/include/boost/python/object/class_wrapper.hpp:29
#21 boost::python::converter::as_to_python_function<Vector2<double>,
boost::python::objects::class_cref_wrapper<Vector2<double>,
boost::python::objects::make_instance<Vector2<double>,
boost::python::objects::value_holder<Vector2<double> > > > >::convert
(x=0x7fff72cdb030) at
/usr/include/boost/python/converter/as_to_python_function.hpp:40
#22 0x00007f1bff44fc80 in
boost::python::converter::detail::arg_to_python_base::arg_to_python_base(void
const volatile*, boost::python::converter::registration const&) () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#23 0x00007f1bec84c261 in value_arg_to_python (l=<value optimized out>,
r=<value optimized out>) at
/usr/include/boost/python/converter/arg_to_python.hpp:209
#24 arg_to_python (l=<value optimized out>, r=<value optimized out>) at
/usr/include/boost/python/converter/arg_to_python.hpp:256
#25 convert_result<Vector2<double> > (l=<value optimized out>, r=<value
optimized out>) at /usr/include/boost/python/operators.hpp:34
#26
boost::python::detail::operator_l<(boost::python::detail::operator_id)0>::apply<Vector2<double>,
Vector2<double> >::execute (l=<value optimized out>, r=<value optimized
out>) at /usr/include/boost/python/operators.hpp:212
#27 0x00007f1bec84d460 in
invoke<boost::python::detail::caller_arity<1u>::impl<F, Policies,
Sig>::operator()(PyObject*, PyObject*) [with F = PyObject*
(*)(Vector3<double>&), Policies = boost::python::default_call_policies, Sig
= boost::mpl::vector2<PyObject*, Vector3<double>&>]::result_converter,
PyObject* (*)(Vector2<double>&, const Vector2<double>&),
boost::python::detail::caller_arity<2u>::impl<F, Policies,
Sig>::operator()(PyObject*, PyObject*) [with F = PyObject*
(*)(Vector2<double>&, const Vector2<double>&), Policies =
boost::python::default_call_policies, Sig = boost::mpl::vector3<PyObject*,
Vector2<double>&, const Vector2<double>&>]::c_t0,
boost::python::detail::caller_arity<2u>::impl<F, Policies,
Sig>::operator()(PyObject*, PyObject*) [with F = PyObject*
(*)(Vector2<double>&, const Vector2<double>&), Policies =
boost::python::default_call_policies, Sig = boost::mpl::vector3<PyObject*,
Vector2<double>&, const Vector2<double>&>]::c_t1> (this=<value optimized
out>, args=<value optimized out>, kw=<value optimized out>) at
/usr/include/boost/python/detail/invoke.hpp:75
#28 boost::python::detail::caller_arity<2u>::impl<_object*
(*)(Vector2<double>&, Vector2<double> const&),
boost::python::default_call_policies, boost::mpl::vector3<_object*,
Vector2<double>&, Vector2<double> const&> >::operator() (this=<value
optimized out>, args=<value optimized out>, kw=<value optimized out>) at
/usr/include/boost/python/detail/caller.hpp:223
#29
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<_object*
(*)(Vector2<double>&, Vector2<double> const&),
boost::python::default_call_policies, boost::mpl::vector3<_object*,
Vector2<double>&, Vector2<double> const&> > >::operator() (this=<value
optimized out>, args=<value optimized out>, kw=<value optimized out>) at
/usr/include/boost/python/object/py_function.hpp:38
#30 0x00007f1bff44519e in boost::python::objects::function::call(_object*,
_object*) const () from /usr/lib/libboost_python-mt-py26.so.1.38.0
#31 0x00007f1bff445388 in ?? () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#32 0x00007f1bff44d184 in boost::function0<void>::operator()() const () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#33 0x00007f1bff44c988 in
boost::python::handle_exception_impl(boost::function0<void>) () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#34 0x00007f1bff441ffb in ?? () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#35 0x000000000041d6e7 in PyObject_Call ()
#36 0x00000000004254ff in ?? ()
#37 0x000000000041d6e7 in PyObject_Call ()
#38 0x00000000004768f6 in ?? ()
#39 0x00000000004783f4 in ?? ()
#40 0x000000000041dd5f in ?? ()
#41 0x000000000041e070 in PyNumber_Add ()
#42 0x000000000049fde4 in PyEval_EvalFrameEx ()
#43 0x00000000004a40e0 in PyEval_EvalCodeEx ()
#44 0x00000000004a41b2 in PyEval_EvalCode ()
#45 0x00000000004c33a0 in PyRun_FileExFlags ()
#46 0x000000000049b757 in ?? ()
#47 0x00000000004a290d in PyEval_EvalFrameEx ()
#48 0x00000000004a40e0 in PyEval_EvalCodeEx ()
#49 0x00000000004a41b2 in PyEval_EvalCode ()
#50 0x00000000004c33a0 in PyRun_FileExFlags ()
#51 0x00000000004c3564 in PyRun_SimpleFileExFlags ()
#52 0x0000000000418ab7 in Py_Main ()
#53 0x00007f1c0191dabd in __libc_start_main () from /lib/libc.so.6
#54 0x0000000000417ca9 in _start ()
Segmentation fault
______________________________
Anton Gladkyy
2010/2/18 Václav Šmilauer <eudoxos@xxxxxxxx>
> OK, let the fun begin:
>
> python: /usr/include/eigen2/Eigen/src/Core/MatrixStorage.h:44:
> Eigen::ei_matrix_array<T, Size, MatrixOptions, Align>::ei_matrix_array()
> [with T = double, int Size = 2, int MatrixOptions = 2, bool Align =
> true]: Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this
> assertion is explained here:
> http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html **** READ THIS
> WEB PAGE !!! ****"' failed.
>
> (read that page and you will see)
>
> for the start, I would just disable alignment and vectorization, which
> is the easy way.
>
> Cheers, Vaclav
>
> PS I got this error when running python script, running simulations just
> hard-crashed. I attach this script, it is adapted version of the math
> part of py/tests/wrapper.py.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References