==============
#0 0x0000557b10ddd180 in ()
#1 0x00007fac49e31cf9 in boost::python::converter::shared_ptr_deleter::operator()(void const*) () at /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.62.0
#2 0x00007fac4bbb951a in boost::detail::sp_counted_base::release() (this=0x557b134a25c0) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:146
#3 0x00007fac4bbb9af5 in boost::detail::sp_counted_base::release() (this=<optimized out>) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:144
#4 0x00007fac4bbb9af5 in boost::detail::shared_count::~shared_count() (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:473
#5 0x00007fac4bbb9af5 in boost::shared_ptr<Body>::~shared_ptr() (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/boost/smart_ptr/shared_ptr.hpp:336
#6 0x00007fac4bbb9af5 in boost::shared_ptr<Body>::reset() (this=0x557b1356d900) at /usr/include/boost/smart_ptr/shared_ptr.hpp:667
#7 0x00007fac4bbb9af5 in BodyContainer::erase(int, bool) (this=0x557b11b86410, id=<optimized out>, eraseClumpMembers=eraseClumpMembers@entry=false) at ./core/BodyContainer.cpp:61
#8 0x00007fac4c0b17ce in DomainLimiter::action() (this=0x557b13686ba0) at ./pkg/dem/DomainLimiter.cpp:27
#9 0x00007fac4bc55cb2 in Scene::moveToNextTimeStep() (this=this@entry=0x557b11aa97b0) at ./core/Scene.cpp:88
#10 0x00007fac4bc58a63 in SimulationFlow::singleAction() (this=0x557b119961f0) at ./core/SimulationFlow.cpp:24
#11 0x00007fac4bc5c58f in ThreadWorker::callSingleAction() (this=0x557b119961f0) at ./core/ThreadWorker.cpp:71
#12 0x00007fac4bc59707 in ThreadRunner::call() (this=this@entry=0x557b11b887e0) at ./core/ThreadRunner.cpp:52
#13 0x00007fac4bc599e0 in ThreadRunner::run() (this=0x557b11b887e0) at ./core/ThreadRunner.cpp:26
#14 0x00007fac4bc5bb42 in boost::function0<void>::operator()() const (this=<optimized out>) at /usr/include/boost/function/function_template.hpp:770
#15 0x00007fac4bc5bb42 in boost::detail::thread_data<boost::function0<void> >::run() (this=<optimized out>) at /usr/include/boost/thread/detail/thread.hpp:116
#16 0x00007fac48ebbf96 in () at /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.62.0
#17 0x00007fac4eb72494 in start_thread (arg=0x7fac01d84700) at pthread_create.c:333
#18 0x00007fac4df91abf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
Thanks for bug report. Backtrace is here:
============== python: :converter: :shared_ ptr_deleter: :operator( )(void const*) () at /usr/lib/ x86_64- linux-gnu/ libboost_ python- py27.so. 1.62.0 detail: :sp_counted_ base::release( ) (this=0x557b134 a25c0) at /usr/include/ boost/smart_ ptr/detail/ sp_counted_ base_gcc_ x86.hpp: 146 detail: :sp_counted_ base::release( ) (this=<optimized out>) at /usr/include/ boost/smart_ ptr/detail/ sp_counted_ base_gcc_ x86.hpp: 144 detail: :shared_ count:: ~shared_ count() (this=<optimized out>, __in_chrg= <optimized out>) at /usr/include/ boost/smart_ ptr/detail/ shared_ count.hpp: 473 shared_ ptr<Body> ::~shared_ ptr() (this=<optimized out>, __in_chrg= <optimized out>) at /usr/include/ boost/smart_ ptr/shared_ ptr.hpp: 336 shared_ ptr<Body> ::reset( ) (this=0x557b135 6d900) at /usr/include/ boost/smart_ ptr/shared_ ptr.hpp: 667 :erase( int, bool) (this=0x557b11b 86410, id=<optimized out>, eraseClumpMembe rs=eraseClumpMe mbers@entry= false) at ./core/ BodyContainer. cpp:61 :action( ) (this=0x557b136 86ba0) at ./pkg/dem/ DomainLimiter. cpp:27 moveToNextTimeS tep() (this=this@ entry=0x557b11a a97b0) at ./core/Scene.cpp:88 :singleAction( ) (this=0x557b119 961f0) at ./core/ SimulationFlow. cpp:24 :callSingleActi on() (this=0x557b119 961f0) at ./core/ ThreadWorker. cpp:71 :call() (this=this@ entry=0x557b11b 887e0) at ./core/ ThreadRunner. cpp:52 887e0) at ./core/ ThreadRunner. cpp:26 function0< void>:: operator( )() const (this=<optimized out>) at /usr/include/ boost/function/ function_ template. hpp:770 detail: :thread_ data<boost: :function0< void> >::run() (this=<optimized out>) at /usr/include/ boost/thread/ detail/ thread. hpp:116 x86_64- linux-gnu/ libboost_ thread. so.1.62. 0 4700) at pthread_ create. c:333 unix/sysv/ linux/x86_ 64/clone. S:97
#0 0x0000557b10ddd180 in ()
#1 0x00007fac49e31cf9 in boost::
#2 0x00007fac4bbb951a in boost::
#3 0x00007fac4bbb9af5 in boost::
#4 0x00007fac4bbb9af5 in boost::
#5 0x00007fac4bbb9af5 in boost::
#6 0x00007fac4bbb9af5 in boost::
#7 0x00007fac4bbb9af5 in BodyContainer:
#8 0x00007fac4c0b17ce in DomainLimiter:
#9 0x00007fac4bc55cb2 in Scene::
#10 0x00007fac4bc58a63 in SimulationFlow:
#11 0x00007fac4bc5c58f in ThreadWorker:
#12 0x00007fac4bc59707 in ThreadRunner:
#13 0x00007fac4bc599e0 in ThreadRunner::run() (this=0x557b11b
#14 0x00007fac4bc5bb42 in boost::
#15 0x00007fac4bc5bb42 in boost::
#16 0x00007fac48ebbf96 in () at /usr/lib/
#17 0x00007fac4eb72494 in start_thread (arg=0x7fac01d8
#18 0x00007fac4df91abf in clone () at ../sysdeps/
==============
Full relevant backtrace:
#7 0x00007fac4bbb9af5 in BodyContainer: :erase( int, bool) (this=0x557b11b 86410, id=<optimized out>, eraseClumpMembe rs=eraseClumpMe mbers@entry= false) at ./core/ BodyContainer. cpp:61
b = @0x557b1356d900: {
px = 0x0,
pn = {
pi_ = 0x0
}
}
scene = @0x557b11b863d0: {
px = 0x557b11aa97b0,
pn = {
pi_ = 0x557b11b87b10
}
}
==============
body[id] is probably a nullptr here [1].
[1] https:/ /github. com/yade/ trunk/blob/ 2017.01/ core/BodyContai ner.cpp# L61
Anton