Valgrind reports about problems with InsertionSortCollider::handleBoundInversion. All memory leak from this function, as seems. May be something is wrong with creating of the interactions for the new particles?
Valgrind report:
--------------------------------------------------------------------------------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
--------------------------------------------------------------------------------
47 74,791,217,242 854,819,752 735,410,607 119,409,145 0
86.03% (735,410,607B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->33.37% (285,212,808B) 0x192CC889: InsertionSortCollider::handleBoundInversion(int, int, InteractionContainer*, Scene*) (in /home/sega/YADE/lib/yade-trunk/plugins/libplugins.so)
| ->33.37% (285,212,808B) 0x192CE9AD: InsertionSortCollider::action() (in /home/sega/YADE/lib/yade-trunk/plugins/libplugins.so)
| ->33.37% (285,212,808B) 0xFB86C02: Scene::moveToNextTimeStep() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->33.37% (285,212,808B) 0xFB8796A: SimulationFlow::singleAction() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->33.37% (285,212,808B) 0xFB80B3F: ThreadWorker::callSingleAction() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->33.37% (285,212,808B) 0xFB844F6: ThreadRunner::call() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->33.37% (285,212,808B) 0xFB84572: ThreadRunner::run() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->33.37% (285,212,808B) 0x8B31A52: boost::function0<void>::operator()() const (in /usr/lib64/libboost_python.so.1.39.0)
| ->33.37% (285,212,808B) 0x7B2500E: thread_proxy (in /usr/lib64/libboost_thread.so.1.39.0)
| ->33.37% (285,212,808B) 0x51B665B: start_thread (pthread_create.c:297)
| ->33.37% (285,212,808B) 0x5AF8ECB: clone (clone.S:112)
|
->12.20% (104,301,400B) 0xFB80F4C: InteractionContainer::insert(boost::shared_ptr<Interaction> const&) (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->12.20% (104,301,400B) 0x192CC8B2: InsertionSortCollider::handleBoundInversion(int, int, InteractionContainer*, Scene*) (in /home/sega/YADE/lib/yade-trunk/plugins/libplugins.so)
| ->12.20% (104,301,400B) 0x192CE9AD: InsertionSortCollider::action() (in /home/sega/YADE/lib/yade-trunk/plugins/libplugins.so)
| ->12.20% (104,301,400B) 0xFB86C02: Scene::moveToNextTimeStep() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->12.20% (104,301,400B) 0xFB8796A: SimulationFlow::singleAction() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->12.20% (104,301,400B) 0xFB80B3F: ThreadWorker::callSingleAction() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->12.20% (104,301,400B) 0xFB844F6: ThreadRunner::call() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->12.20% (104,301,400B) 0xFB84572: ThreadRunner::run() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->12.20% (104,301,400B) 0x8B31A52: boost::function0<void>::operator()() const (in /usr/lib64/libboost_python.so.1.39.0)
| ->12.20% (104,301,400B) 0x7B2500E: thread_proxy (in /usr/lib64/libboost_thread.so.1.39.0)
| ->12.20% (104,301,400B) 0x51B665B: start_thread (pthread_create.c:297)
| ->12.20% (104,301,400B) 0x5AF8ECB: clone (clone.S:112)
|
->11.78% (100,663,296B) 0xFC31010: std::vector<boost::shared_ptr<Interaction>, std::allocator<boost::shared_ptr<Interaction> > >::_M_fill_insert(__gnu_cxx::__normal_iterator<boost::shared_ptr<Interaction>*, std::vector<boost::shared_ptr<Interaction>, std::allocator<boost::shared_ptr<Interaction> > > >, unsigned long, boost::shared_ptr<Interaction> const&) (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0xFB80FC5: InteractionContainer::insert(boost::shared_ptr<Interaction> const&) (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0x192CC8B2: InsertionSortCollider::handleBoundInversion(int, int, InteractionContainer*, Scene*) (in /home/sega/YADE/lib/yade-trunk/plugins/libplugins.so)
| ->11.78% (100,663,296B) 0x192CE9AD: InsertionSortCollider::action() (in /home/sega/YADE/lib/yade-trunk/plugins/libplugins.so)
| ->11.78% (100,663,296B) 0xFB86C02: Scene::moveToNextTimeStep() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0xFB8796A: SimulationFlow::singleAction() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0xFB80B3F: ThreadWorker::callSingleAction() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0xFB844F6: ThreadRunner::call() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0xFB84572: ThreadRunner::run() (in /home/sega/YADE/lib/yade-trunk/lib/libcore.so)
| ->11.78% (100,663,296B) 0x8B31A52: boost::function0<void>::operator()() const (in /usr/lib64/libboost_python.so.1.39.0)
| ->11.78% (100,663,296B) 0x7B2500E: thread_proxy (in /usr/lib64/libboost_thread.so.1.39.0)
| ->11.78% (100,663,296B) 0x51B665B: start_thread (pthread_create.c:297)
| ->11.78% (100,663,296B) 0x5AF8ECB: clone (clone.S:112)
Valgrind reports about problems with InsertionSortCo llider: :handleBoundInv ersion. All memory leak from this function, as seems. May be something is wrong with creating of the interactions for the new particles?
Valgrind report: ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --- llider: :handleBoundInv ersion( int, int, InteractionCont ainer*, Scene*) (in /home/sega/ YADE/lib/ yade-trunk/ plugins/ libplugins. so) llider: :action( ) (in /home/sega/ YADE/lib/ yade-trunk/ plugins/ libplugins. so) moveToNextTimeS tep() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :singleAction( ) (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :callSingleActi on() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :call() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) YADE/lib/ yade-trunk/ lib/libcore. so) function0< void>:: operator( )() const (in /usr/lib64/ libboost_ python. so.1.39. 0) libboost_ thread. so.1.39. 0) create. c:297) ainer:: insert( boost:: shared_ ptr<Interaction > const&) (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) llider: :handleBoundInv ersion( int, int, InteractionCont ainer*, Scene*) (in /home/sega/ YADE/lib/ yade-trunk/ plugins/ libplugins. so) llider: :action( ) (in /home/sega/ YADE/lib/ yade-trunk/ plugins/ libplugins. so) moveToNextTimeS tep() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :singleAction( ) (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :callSingleActi on() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :call() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) YADE/lib/ yade-trunk/ lib/libcore. so) function0< void>:: operator( )() const (in /usr/lib64/ libboost_ python. so.1.39. 0) libboost_ thread. so.1.39. 0) create. c:297) boost:: shared_ ptr<Interaction >, std::allocator< boost:: shared_ ptr<Interaction > > >::_M_fill_ insert( __gnu_cxx: :__normal_ iterator< boost:: shared_ ptr<Interaction >*, std::vector< boost:: shared_ ptr<Interaction >, std::allocator< boost:: shared_ ptr<Interaction > > > >, unsigned long, boost:: shared_ ptr<Interaction > const&) (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) ainer:: insert( boost:: shared_ ptr<Interaction > const&) (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) llider: :handleBoundInv ersion( int, int, InteractionCont ainer*, Scene*) (in /home/sega/ YADE/lib/ yade-trunk/ plugins/ libplugins. so) llider: :action( ) (in /home/sega/ YADE/lib/ yade-trunk/ plugins/ libplugins. so) moveToNextTimeS tep() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :singleAction( ) (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :callSingleActi on() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) :call() (in /home/sega/ YADE/lib/ yade-trunk/ lib/libcore. so) YADE/lib/ yade-trunk/ lib/libcore. so) function0< void>:: operator( )() const (in /usr/lib64/ libboost_ python. so.1.39. 0) libboost_ thread. so.1.39. 0) create. c:297)
-------
n time(i) total(B) useful-heap(B) extra-heap(B) stacks(B)
-------
47 74,791,217,242 854,819,752 735,410,607 119,409,145 0
86.03% (735,410,607B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
->33.37% (285,212,808B) 0x192CC889: InsertionSortCo
| ->33.37% (285,212,808B) 0x192CE9AD: InsertionSortCo
| ->33.37% (285,212,808B) 0xFB86C02: Scene::
| ->33.37% (285,212,808B) 0xFB8796A: SimulationFlow:
| ->33.37% (285,212,808B) 0xFB80B3F: ThreadWorker:
| ->33.37% (285,212,808B) 0xFB844F6: ThreadRunner:
| ->33.37% (285,212,808B) 0xFB84572: ThreadRunner::run() (in /home/sega/
| ->33.37% (285,212,808B) 0x8B31A52: boost::
| ->33.37% (285,212,808B) 0x7B2500E: thread_proxy (in /usr/lib64/
| ->33.37% (285,212,808B) 0x51B665B: start_thread (pthread_
| ->33.37% (285,212,808B) 0x5AF8ECB: clone (clone.S:112)
|
->12.20% (104,301,400B) 0xFB80F4C: InteractionCont
| ->12.20% (104,301,400B) 0x192CC8B2: InsertionSortCo
| ->12.20% (104,301,400B) 0x192CE9AD: InsertionSortCo
| ->12.20% (104,301,400B) 0xFB86C02: Scene::
| ->12.20% (104,301,400B) 0xFB8796A: SimulationFlow:
| ->12.20% (104,301,400B) 0xFB80B3F: ThreadWorker:
| ->12.20% (104,301,400B) 0xFB844F6: ThreadRunner:
| ->12.20% (104,301,400B) 0xFB84572: ThreadRunner::run() (in /home/sega/
| ->12.20% (104,301,400B) 0x8B31A52: boost::
| ->12.20% (104,301,400B) 0x7B2500E: thread_proxy (in /usr/lib64/
| ->12.20% (104,301,400B) 0x51B665B: start_thread (pthread_
| ->12.20% (104,301,400B) 0x5AF8ECB: clone (clone.S:112)
|
->11.78% (100,663,296B) 0xFC31010: std::vector<
| ->11.78% (100,663,296B) 0xFB80FC5: InteractionCont
| ->11.78% (100,663,296B) 0x192CC8B2: InsertionSortCo
| ->11.78% (100,663,296B) 0x192CE9AD: InsertionSortCo
| ->11.78% (100,663,296B) 0xFB86C02: Scene::
| ->11.78% (100,663,296B) 0xFB8796A: SimulationFlow:
| ->11.78% (100,663,296B) 0xFB80B3F: ThreadWorker:
| ->11.78% (100,663,296B) 0xFB844F6: ThreadRunner:
| ->11.78% (100,663,296B) 0xFB84572: ThreadRunner::run() (in /home/sega/
| ->11.78% (100,663,296B) 0x8B31A52: boost::
| ->11.78% (100,663,296B) 0x7B2500E: thread_proxy (in /usr/lib64/
| ->11.78% (100,663,296B) 0x51B665B: start_thread (pthread_
| ->11.78% (100,663,296B) 0x5AF8ECB: clone (clone.S:112)