yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06530
[Bug 575198] Re: segfault, when moving 3D view, during calculation
Reopen if more information is available.
** Changed in: yade
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/575198
Title:
segfault, when moving 3D view, during calculation
Status in Yet Another Dynamic Engine:
Invalid
Bug description:
I am moving the window, while it is calculating (the bulldozer is moving). I suppose that it is multithread related, thus may be difficult to fix. It was ran with OMP_NUM_THREADS=5
janek@atak:~/40-Yade/Code/HEAD/trunk/examples/bulldozer$ /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py
Welcome to Yade bzr2194
FIXME: class CohesiveTriaxialTest does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
FIXME: class TriaxialTestWater does not register with YADE_CLASS_BASE_DOC_ATTR*; will be inaccessible from python.
TCP python prompt on localhost:9000, auth cookie `dckssa'
TCP info provider on localhost:21000
Running script ./bulldozer.py
python: /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/Engine/GlobalEngine/InsertionSortCollider.cpp:32: void InsertionSortCollider::handleBoundInversion(body_id_t, body_id_t, InteractionContainer*, Scene*): Assertion `id1!=id2' failed.
SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-5vybPs/tmp-0'
GNU gdb (GDB) 7.0.1-debian
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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f0c55ffb910 (LWP 18455)]
[New Thread 0x7f0c567fc910 (LWP 18454)]
[New Thread 0x7f0c56ffd910 (LWP 18453)]
[New Thread 0x7f0c577fe910 (LWP 18452)]
[New Thread 0x7f0c57fff910 (LWP 18451)]
[New Thread 0x7f0c5f1e3910 (LWP 18448)]
[New Thread 0x7f0c604a8910 (LWP 18447)]
[New Thread 0x7f0c60ca9910 (LWP 18446)]
0x00007f0c79d86131 in nanosleep () from /lib/libpthread.so.0
No symbol "info" in current context.
Thread 9 (Thread 0x7f0c60ca9910 (LWP 18446)):
#0 0x00007f0c79d85b0b in accept () from /lib/libpthread.so.0
#1 0x00007f0c614d5277 in ?? () from /usr/lib/python2.5/lib-dynload/_socket.so
#2 0x000000000048fc18 in PyEval_EvalFrameEx ()
#3 0x0000000000490ad6 in PyEval_EvalFrameEx ()
#4 0x0000000000490ad6 in PyEval_EvalFrameEx ()
#5 0x0000000000490ad6 in PyEval_EvalFrameEx ()
#6 0x00000000004915f9 in PyEval_EvalCodeEx ()
#7 0x00000000004dac19 in ?? ()
#8 0x0000000000418493 in PyObject_Call ()
#9 0x000000000042009f in ?? ()
#10 0x0000000000418493 in PyObject_Call ()
#11 0x0000000000489b63 in PyEval_CallObjectWithKeywords ()
#12 0x00000000004bce2d in ?? ()
#13 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#14 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
Thread 8 (Thread 0x7f0c604a8910 (LWP 18447)):
#0 0x00007f0c79d85b0b in accept () from /lib/libpthread.so.0
#1 0x00007f0c614d5277 in ?? () from /usr/lib/python2.5/lib-dynload/_socket.so
#2 0x000000000048fc18 in PyEval_EvalFrameEx ()
#3 0x0000000000490ad6 in PyEval_EvalFrameEx ()
#4 0x0000000000490ad6 in PyEval_EvalFrameEx ()
#5 0x0000000000490ad6 in PyEval_EvalFrameEx ()
#6 0x00000000004915f9 in PyEval_EvalCodeEx ()
#7 0x00000000004dac19 in ?? ()
#8 0x0000000000418493 in PyObject_Call ()
#9 0x000000000042009f in ?? ()
#10 0x0000000000418493 in PyObject_Call ()
#11 0x0000000000489b63 in PyEval_CallObjectWithKeywords ()
#12 0x00000000004bce2d in ?? ()
#13 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#14 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()
Thread 7 (Thread 0x7f0c5f1e3910 (LWP 18448)):
#0 0x00007f0c6ab91488 in ?? () from /usr/lib/libGLcore.so.1
#1 0x00007f0c6ab6d9a1 in ?? () from /usr/lib/libGLcore.so.1
#2 0x00007f0c6acc101e in ?? () from /usr/lib/libGLcore.so.1
#3 0x00007f0c6a77c18f in _nv001445gl () from /usr/lib/libGLcore.so.1
#4 0x00007f0c765ced76 in glutSolidSphere () from /usr/lib/libglut.so.3
#5 0x00007f0c683e964e in Gl1_Sphere::go (this=0x7f0c5814e130, cm=..., wire2=false) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/RenderingEngine/Gl1_Sphere.cpp:31
#6 0x00007f0c68411d14 in DynLibDispatcher<Shape, GlShapeFunctor, void, Loki::Typelist<boost::shared_ptr<Shape> const&, Loki::Typelist<boost::shared_ptr<State> const&, Loki::Typelist<bool, Loki::Typelist<GLViewInfo const&, Loki::NullType> > > >, true>::operator() (this=0x7f0c5802fa28, base=..., p2=..., p3=false, p4=...) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/build-trunk/include/yade-trunk/yade/lib-multimethods/DynLibDispatcher.hpp:518
#7 0x00007f0c683e6c58 in OpenGLRenderingEngine::renderShape (this=0x7f0c5802f8a0) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/RenderingEngine/OpenGLRenderingEngine.cpp:345
#8 0x00007f0c683e487b in OpenGLRenderingEngine::render (this=0x7f0c5802f8a0, _scene=..., selection=-1) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/RenderingEngine/OpenGLRenderingEngine.cpp:208
#9 0x00007f0c66cd464b in GLViewer::draw (this=0x7f0c5806c3c0) at gui/qt3/GLViewer.cpp:475
#10 0x00007f0c6b3b086c in QGLViewer::paintGL() () from /home/janek/40-Yade/Bin/HEAD-fast/lib/yade-trunk/py/yade/../../lib/../lib/libyade-QGLViewer.so
#11 0x00007f0c66ccb075 in GLViewer::paintGL (this=0x7f0c5806c3c0) at gui/qt3/GLViewer.cpp:55
#12 0x00007f0c760ce677 in QGLWidget::glDraw() () from /usr/lib/libqt-mt.so.3
#13 0x00007f0c66ccb014 in GLViewer::updateGL (this=0x7f0c5806c3c0) at gui/qt3/GLViewer.cpp:41
#14 0x00007f0c66df3e2c in YadeQtMainWindow::redrawAll (this=0x2104af0, force=true) at gui/qt3/YadeQtMainWindow.cpp:100
#15 0x00007f0c66dec468 in SimulationController::timerEvent (this=0x7f0c5804cdd0) at gui/qt3/SimulationController.cpp:293
#16 0x00007f0c75ea079c in QObject::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#17 0x00007f0c75ed4803 in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#18 0x00007f0c75e43725 in QApplication::internalNotify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#19 0x00007f0c75e444aa in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#20 0x00007f0c75e3a023 in QEventLoop::activateTimers() () from /usr/lib/libqt-mt.so.3
#21 0x00007f0c75df4abe in QEventLoop::processEvents(unsigned int) () from /usr/lib/libqt-mt.so.3
#22 0x00007f0c75e59fa1 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#23 0x00007f0c75e59e62 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#24 0x00007f0c66de63bf in boost::_mfi::mf0<int, QApplication>::operator() (this=0x215f510, p=0x20c8b30) at /usr/include/boost/bind/mem_fn_template.hpp:49
#25 0x00007f0c66de632f in boost::_bi::list1<boost::_bi::value<QApplication*> >::operator()<int, boost::_mfi::mf0<int, QApplication>, boost::_bi::list0> (this=0x215f520, f=..., a=...) at /usr/include/boost/bind/bind.hpp:243
#26 0x00007f0c66de62db in boost::_bi::bind_t<int, boost::_mfi::mf0<int, QApplication>, boost::_bi::list1<boost::_bi::value<QApplication*> > >::operator() (this=0x215f510) at /usr/include/boost/bind/bind_template.hpp:20
#27 0x00007f0c66de629a in boost::detail::thread_data<boost::_bi::bind_t<int, boost::_mfi::mf0<int, QApplication>, boost::_bi::list1<boost::_bi::value<QApplication*> > > >::run (this=0x215f3e0) at /usr/include/boost/thread/detail/thread.hpp:56
#28 0x00007f0c77b01200 in thread_proxy () from /usr/lib/libboost_thread.so.1.42.0
#29 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#30 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#31 0x0000000000000000 in ?? ()
Thread 6 (Thread 0x7f0c57fff910 (LWP 18451)):
#0 0x00007f0c7943785d in __libc_waitpid (pid=18461, stat_loc=<value optimized out>, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41
#1 0x00007f0c793d9169 in do_system (line=<value optimized out>) at ../sysdeps/posix/system.c:149
#2 0x00007f0c793d94a0 in __libc_system (line=<value optimized out>) at ../sysdeps/posix/system.c:190
#3 0x00007f0c7a033338 in crashHandler (sig=6) at core/main/pyboot.cpp:45
#4 <signal handler called>
#5 0x00007f0c793ccf45 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6 0x00007f0c793cfd80 in *__GI_abort () at abort.c:88
#7 0x00007f0c793c608a in *__GI___assert_fail (assertion=0x7f0c6870cfb7 "id1!=id2", file=<value optimized out>, line=32, function=0x7f0c68711180 "void InsertionSortCollider::handleBoundInversion(body_id_t, body_id_t, InteractionContainer*, Scene*)") at assert.c:78
#8 0x00007f0c682982fa in InsertionSortCollider::handleBoundInversion (this=0x21f6b20, id1=21, id2=21, interactions=0x1c345b0) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/Engine/GlobalEngine/InsertionSortCollider.cpp:32
#9 0x00007f0c6829867a in InsertionSortCollider::insertionSort (this=0x21f6b20, v=..., interactions=0x1c345b0, doCollide=true) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/Engine/GlobalEngine/InsertionSortCollider.cpp:61
#10 0x00007f0c6829ae0a in InsertionSortCollider::action (this=0x21f6b20) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/pkg/common/Engine/GlobalEngine/InsertionSortCollider.cpp:253
#11 0x00007f0c73d6dfe5 in Scene::moveToNextTimeStep (this=0x1c34380) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/Scene.cpp:87
#12 0x00007f0c73d78151 in SimulationFlow::singleAction (this=0x1bbab90) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/SimulationFlow.cpp:18
#13 0x00007f0c73d79956 in ThreadWorker::callSingleAction (this=0x1bbab90) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/ThreadWorker.cpp:71
#14 0x00007f0c73d78eab in ThreadRunner::call (this=0x1c38910) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/ThreadRunner.cpp:53
#15 0x00007f0c73d78bdd in ThreadRunner::run (this=0x1c38910) at /home/janek/20-Programowanie/10-cpp/50-Yade/Code/HEAD/trunk/core/ThreadRunner.cpp:27
#16 0x00007f0c73e649cd in boost::_mfi::mf0<void, ThreadRunner>::operator() (this=0x26bdb38, p=0x1c38910) at /usr/include/boost/bind/mem_fn_template.hpp:49
#17 0x00007f0c73e53208 in boost::_bi::list1<boost::_bi::value<ThreadRunner*> >::operator()<boost::_mfi::mf0<void, ThreadRunner>, boost::_bi::list0> (this=0x26bdb48, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#18 0x00007f0c73e3e5f7 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ThreadRunner>, boost::_bi::list1<boost::_bi::value<ThreadRunner*> > >::operator() (this=0x26bdb38) at /usr/include/boost/bind/bind_template.hpp:20
#19 0x00007f0c73e247d0 in 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:153
#20 0x00007f0c73eba0e1 in boost::function0<void>::operator() (this=0x26bdb30) at /usr/include/boost/function/function_template.hpp:1013
#21 0x00007f0c73ea3132 in boost::detail::thread_data<boost::function0<void> >::run (this=0x26bda00) at /usr/include/boost/thread/detail/thread.hpp:56
#22 0x00007f0c77b01200 in thread_proxy () from /usr/lib/libboost_thread.so.1.42.0
#23 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#24 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#25 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7f0c577fe910 (LWP 18452)):
#0 0x00007f0c740ced76 in ?? () from /usr/lib/libgomp.so.1
#1 0x00007f0c740cd826 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7f0c56ffd910 (LWP 18453)):
#0 0x00007f0c740ced76 in ?? () from /usr/lib/libgomp.so.1
#1 0x00007f0c740cd826 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7f0c567fc910 (LWP 18454)):
#0 0x00007f0c740ced76 in ?? () from /usr/lib/libgomp.so.1
#1 0x00007f0c740cd826 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7f0c55ffb910 (LWP 18455)):
#0 0x00007f0c740ced76 in ?? () from /usr/lib/libgomp.so.1
#1 0x00007f0c740cd826 in ?? () from /usr/lib/libgomp.so.1
#2 0x00007f0c79d7e73a in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3 0x00007f0c7946669d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f0c7a1816f0 (LWP 18442)):
#0 0x00007f0c79d86131 in nanosleep () from /lib/libpthread.so.0
#1 0x00007f0c664efc74 in pyOmega::wait (this=0x7f0c7a085640) at py/yadeWrapper/yadeWrapper.cpp:328
#2 0x00007f0c66614a05 in boost::python::detail::invoke<int, void (pyOmega::*)(), boost::python::arg_from_python<pyOmega&> > (f=@0x1c5f328, tc=...) at /usr/include/boost/python/detail/invoke.hpp:94
#3 0x00007f0c665f635f in boost::python::detail::caller_arity<1u>::impl<void (pyOmega::*)(), boost::python::default_call_policies, boost::mpl::vector2<void, pyOmega&> >::operator() (this=0x1c5f328, args_=0x2020dd0) at /usr/include/boost/python/detail/caller.hpp:223
#4 0x00007f0c665e0e61 in boost::python::objects::caller_py_function_impl<boost::python::detail::caller<void (pyOmega::*)(), boost::python::default_call_policies, boost::mpl::vector2<void, pyOmega&> > >::operator() (this=0x1c5f320, args=0x2020dd0, kw=0x0) at /usr/include/boost/python/object/py_function.hpp:38
#5 0x00007f0c76828c1e in boost::python::objects::function::call(_object*, _object*) const () from /usr/lib/libboost_python-py25.so.1.42.0
#6 0x00007f0c76828ec8 in ?? () from /usr/lib/libboost_python-py25.so.1.42.0
#7 0x00007f0c7683052b in boost::python::handle_exception_impl(boost::function0<void>) () from /usr/lib/libboost_python-py25.so.1.42.0
#8 0x00007f0c768257b8 in ?? () from /usr/lib/libboost_python-py25.so.1.42.0
#9 0x0000000000418493 in PyObject_Call ()
#10 0x000000000048f62e in PyEval_EvalFrameEx ()
#11 0x00000000004915f9 in PyEval_EvalCodeEx ()
#12 0x0000000000491722 in PyEval_EvalCode ()
#13 0x00000000004b0e9b in PyRun_FileExFlags ()
#14 0x0000000000488cbc in ?? ()
#15 0x000000000048fef6 in PyEval_EvalFrameEx ()
#16 0x00000000004915f9 in PyEval_EvalCodeEx ()
#17 0x0000000000491722 in PyEval_EvalCode ()
#18 0x00000000004b0e9b in PyRun_FileExFlags ()
#19 0x00000000004b103b in PyRun_SimpleFileExFlags ()
#20 0x0000000000414633 in Py_Main ()
#21 0x00007f0c793b9abd in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff821ae248) at libc-start.c:222
#22 0x0000000000413a29 in _start ()
zsh: abort /home/janek/40-Yade/Bin/HEAD-fast/bin/yade-trunk ./bulldozer.py
janek@atak:~/40-Yade/Code/HEAD/trunk/examples/bulldozer$
References