← Back to team overview

yade-dev team mailing list archive

[Bug 724396] Re: crash after add particles in parallel mode

 

Seems, cause is next:

After adding new particles, the first thread runs on the "old" particles, so without resizing of _forceData in ensureSize() (ForceContainer.hpp:87)
And at time, when first thread adds new force to _forceData, second thread starts to run on the "new" particles and do resize of _forceData in ensureSize(). After this first thread have segfault.

Bug fixed after adding "forces.resize(bodies->size());" to Scene.cpp,
after line 76.

Vaclav, could not you fix it?

-- 
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
https://bugs.launchpad.net/bugs/724396

Title:
  crash after add particles in parallel mode

Status in Yet Another Dynamic Engine:
  New

Bug description:
  Yade crash in parallel mode if to add particles after run of simulation.
  Attached script runs without errors in serial mode (-j 1 option),
  but in parallel mode (-j 2 or more) it crash at second O.run.



References