← Back to team overview

yade-users team mailing list archive

crash in running

 

hi ,
when I run a scrip, usually  crash occur;
but not always!
the massage in terminal:

Running script MyProject/ConnectiveModelTest.py
SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-5aAFEU/tmp-0'
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[Thread debugging using libthread_db enabled]
[New Thread 0xb2900b70 (LWP 4134)]
[New Thread 0xb3101b70 (LWP 4133)]
[New Thread 0xb3902b70 (LWP 4132)]
[New Thread 0xb5439b70 (LWP 4131)]
[New Thread 0xb5cffb70 (LWP 4130)]
[New Thread 0xb66ffb70 (LWP 4129)]
0x00d30422 in __kernel_vsyscall ()
No symbol "info" in current context.

Thread 7 (Thread 0xb66ffb70 (LWP 4129)):
#0  0x00d30422 in __kernel_vsyscall ()
#1  0x0042ca71 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x0812584b in ?? ()
#3  0x080dc0d0 in PyEval_EvalFrameEx ()
#4  0x080dddf2 in PyEval_EvalCodeEx ()
#5  0x0816014c in ?? ()
#6  0x0806120a in PyObject_Call ()
#7  0x080684ac in ?? ()
#8  0x0806120a in PyObject_Call ()
#9  0x080d6ef2 in PyEval_CallObjectWithKeywords ()
#10 0x08107d88 in ?? ()
#11 0x00e0180e in start_thread (arg=0xb66ffb70) at pthread_create.c:300
#12 0x004338de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xb5cffb70 (LWP 4130)):
#0  0x00d30422 in __kernel_vsyscall ()
#1  0x0042ca71 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x0812584b in ?? ()
#3  0x080dc0d0 in PyEval_EvalFrameEx ()
#4  0x080dddf2 in PyEval_EvalCodeEx ()
#5  0x0816014c in ?? ()
#6  0x0806120a in PyObject_Call ()
#7  0x080684ac in ?? ()
#8  0x0806120a in PyObject_Call ()
#9  0x080d6ef2 in PyEval_CallObjectWithKeywords ()
#10 0x08107d88 in ?? ()
#11 0x00e0180e in start_thread (arg=0xb5cffb70) at pthread_create.c:300
#12 0x004338de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xb5439b70 (LWP 4131)):
#0  0x00d30422 in __kernel_vsyscall ()
#1  0x0042ca71 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x011c7b14 in QEventLoop::processEvents(unsigned int) () from
/usr/lib/libqt-mt.so.3
#3  0x012364b0 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#4  0x01236356 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#5  0x0121db0f in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#6  0x03068067 in boost::_mfi::mf0<int, QApplication>::operator()
(this=0x8c8e4b8) at /usr/include/boost/bind/mem_fn_template.hpp:49
#7  operator()<int, boost::_mfi::mf0<int, QApplication>, boost::_bi::list0>
(this=0x8c8e4b8) at /usr/include/boost/bind.hpp:222
#8  boost::_bi::bind_t<int, boost::_mfi::mf0<int, QApplication>,
boost::_bi::list1<boost::_bi::value<QApplication*> > >::operator()
(this=0x8c8e4b8) at /usr/include/boost/bind/bind_template.hpp:20
#9  boost::detail::thread_data<boost::_bi::bind_t<int, boost::_mfi::mf0<int,
QApplication>, boost::_bi::list1<boost::_bi::value<QApplication*> > > >::run
(this=0x8c8e4b8) at /usr/include/boost/thread/detail/thread.hpp:56
#10 0x001a7c1d in thread_proxy () from /usr/lib/libboost_thread-mt.so.1.38.0
#11 0x00e0180e in start_thread (arg=0xb5439b70) at pthread_create.c:300
#12 0x004338de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb3902b70 (LWP 4132)):
#0  0x00d30422 in __kernel_vsyscall ()
#1  0x0042ca71 in select () from /lib/tls/i686/cmov/libc.so.6
#2  0x05f93d92 in ?? () from /usr/lib/libtcl8.5.so.0
#3  0x00e0180e in start_thread (arg=0xb3902b70) at pthread_create.c:300
#4  0x004338de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb3101b70 (LWP 4133)):
#0  0x004c66ec in ?? () from /usr/lib/libgomp.so.1
#1  0x004c686d in ?? () from /usr/lib/libgomp.so.1
#2  0x004c4ec1 in ?? () from /usr/lib/libgomp.so.1
#3  0x041b40cc in InteractionDispatchers::action (this=0x8cbbe90) at
/home/moradi/YADE-trunk/trunk/pkg/common/Engine/Dispatcher/InteractionDispatchers.cpp:60
#4  0x01800ed7 in Scene::moveToNextTimeStep (this=0x898a7f8) at
/home/moradi/YADE-trunk/trunk/core/Scene.cpp:87
#5  0x0180f612 in SimulationFlow::singleAction (this=0x8945868) at
/home/moradi/YADE-trunk/trunk/core/SimulationFlow.cpp:18
#6  0x017fdb8c in ThreadWorker::callSingleAction (this=0x8945868) at
/home/moradi/YADE-trunk/trunk/core/ThreadWorker.cpp:71
#7  0x017fe7bd in ThreadRunner::call (this=0x898cd60) at
/home/moradi/YADE-trunk/trunk/core/ThreadRunner.cpp:53
#8  0x0180be56 in ThreadRunner::run (this=0x898cd60) at
/home/moradi/YADE-trunk/trunk/core/ThreadRunner.cpp:27
#9  0x0181649d in boost::_mfi::mf0<void, ThreadRunner>::operator()
(function_obj_ptr=...) at /usr/include/boost/bind/mem_fn_template.hpp:49
#10 operator()<boost::_mfi::mf0<void, ThreadRunner>, boost::_bi::list0>
(function_obj_ptr=...) at /usr/include/boost/bind.hpp:232
#11 boost::_bi::bind_t<void, boost::_mfi::mf0<void, ThreadRunner>,
boost::_bi::list1<boost::_bi::value<ThreadRunner*> > >::operator()
(function_obj_ptr=...) at /usr/include/boost/bind/bind_template.hpp:20
#12
boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void,
boost::_mfi::mf0<void, ThreadRunner>,
boost::_bi::list1<boost::_bi::value<ThreadRunner*> > >, void>::invoke
(function_obj_ptr=...) at
/usr/include/boost/function/function_template.hpp:152
#13 0x0186ff3d in boost::function0<void>::operator() (this=0x947476c) at
/usr/include/boost/function/function_template.hpp:989
#14 0x018701e3 in boost::detail::thread_data<boost::function0<void> >::run
(this=0x94746b0) at /usr/include/boost/thread/detail/thread.hpp:56
#15 0x001a7c1d in thread_proxy () from /usr/lib/libboost_thread-mt.so.1.38.0
#16 0x00e0180e in start_thread (arg=0xb3101b70) at pthread_create.c:300
#17 0x004338de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb2900b70 (LWP 4134)):
#0  0x00d30422 in __kernel_vsyscall ()
#1  0x003fd58b in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2  0x0039fd03 in do_system (line=<value optimized out>) at
../sysdeps/posix/system.c:149
#3  0x003a0092 in __libc_system (line=0x974c794 "gdb -x
/tmp/yade-5aAFEU/tmp-0") at ../sysdeps/posix/system.c:190
#4  0x00e09fad in system (line=0x974c794 "gdb -x /tmp/yade-5aAFEU/tmp-0") at
pt-system.c:29
#5  0x006fdfda in crashHandler (sig=11) at core/main/pyboot.cpp:45
#6  <signal handler called>
#7
Ip2_cohesiveFrictMat_CohesiveFrictMat_CohesiveFrictionalContactInteraction::go
(this=0x8cc1350, b1=..., b2=..., interaction=...) at
/home/moradi/YADE-trunk/trunk/pkg/dem/Engine/GlobalEngine/NasibehMoradi.cpp:109
#8  0x041b3241 in InteractionDispatchers::action (.omp_data_i=0xb3100fa8) at
/home/moradi/YADE-trunk/trunk/pkg/common/Engine/Dispatcher/InteractionDispatchers.cpp:131
#9  0x004c4e0d in ?? () from /usr/lib/libgomp.so.1
#10 0x00e0180e in start_thread (arg=0xb2900b70) at pthread_create.c:300
#11 0x004338de in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb77396c0 (LWP 4128)):
#0  0x00d30422 in __kernel_vsyscall ()
#1  0x00e09466 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x02e226a7 in pyOmega::wait (this=0xb76e8bac) at
py/yadeWrapper/yadeWrapper.cpp:325
#3  0x02e228d9 in pyOmega::run (this=0xb76e8bac, numIter=50, doWait=true) at
py/yadeWrapper/yadeWrapper.cpp:319
#4  0x02d91da9 in
invoke<boost::python::detail::caller_arity::impl::operator()::result_converter,
void (pyOmega::*)(long int, bool),
boost::python::detail::caller_arity<3u>::impl<F, Policies,
Sig>::operator()(PyObject*, PyObject*) [with F = void (pyOmega::*)(long int,
bool), Policies = boost::python::default_call_policies, Sig =
boost::mpl::vector4<void, pyOmega&, long int, bool>]::c_t0,
boost::python::detail::caller_arity<3u>::impl<F, Policies,
Sig>::operator()(PyObject*, PyObject*) [with F = void (pyOmega::*)(long int,
bool), Policies = boost::python::default_call_policies, Sig =
boost::mpl::vector4<void, pyOmega&, long int, bool>]::c_t1,
boost::python::detail::caller_arity<3u>::impl<F, Policies,
Sig>::operator()(PyObject*, PyObject*) [with F = void (pyOmega::*)(long int,
bool), Policies = boost::python::default_call_policies, Sig =
boost::mpl::vector4<void, pyOmega&, long int, bool>]::c_t2> (this=0x89a2b40,
args=0x8be6e64, kw=0x0) at /usr/include/boost/python/detail/invoke.hpp:94
#5  boost::python::detail::caller_arity<3u>::impl<void (pyOmega::*)(long,
bool), boost::python::default_call_policies, boost::mpl::vector4<void,
pyOmega&, long, bool> >::operator() (this=0x89a2b40, args=0x8be6e64, kw=0x0)
at /usr/include/boost/python/detail/caller.hpp:223
#6
boost::python::objects::caller_py_function_impl<boost::python::detail::caller<void
(pyOmega::*)(long, bool), boost::python::default_call_policies,
boost::mpl::vector4<void, pyOmega&, long, bool> > >::operator()
(this=0x89a2b40, args=0x8be6e64, kw=0x0) at
/usr/include/boost/python/object/py_function.hpp:38
#7  0x00165a0f in boost::python::objects::function::call(_object*, _object*)
const () from /usr/lib/libboost_python-mt-py26.so.1.38.0
#8  0x00165ba7 in ?? () from /usr/lib/libboost_python-mt-py26.so.1.38.0
#9  0x0016d39c in boost::function0<void>::operator()() const () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#10 0x0016cb68 in
boost::python::handle_exception_impl(boost::function0<void>) () from
/usr/lib/libboost_python-mt-py26.so.1.38.0
#11 0x00162937 in ?? () from /usr/lib/libboost_python-mt-py26.so.1.38.0
#12 0x0806120a in PyObject_Call ()
#13 0x080dbc3c in PyEval_EvalFrameEx ()
#14 0x080dddf2 in PyEval_EvalCodeEx ()
#15 0x080ddef7 in PyEval_EvalCode ()
#16 0x080faa1f in PyRun_FileExFlags ()
#17 0x080d5f89 in ?? ()
#18 0x080dc0d0 in PyEval_EvalFrameEx ()
#19 0x080dddf2 in PyEval_EvalCodeEx ()
#20 0x080ddef7 in PyEval_EvalCode ()
#21 0x080faa1f in PyRun_FileExFlags ()
#22 0x080fac12 in PyRun_SimpleFileExFlags ()
#23 0x0805c8d8 in Py_Main ()
#24 0x0805baeb in main ()
Segmentation fault

Nasibeh Moradi

Follow ups