PhysiCell icon indicating copy to clipboard operation
PhysiCell copied to clipboard

PhysiCell::Cell_Definition possibly memory leaking

Open elmbeech opened this issue 8 months ago • 2 comments

I get a Segmentation fault (core dumped), if I try to generate a second instance of a Cell_Definition. Reading up on this, this potentially points to a memory leaking.

Minimal example:

  1. rest to a fresh PhysiCell installation.
make clean reset
make template
  1. add the following line to custom_modules/custome.cpp.
PhysiCell::Cell_Definition cell_defaults_two;
  1. compile and run the template project.
make 
./project

I will have to study the code in deep and use a debugger to resolve this issue.

elmbeech avatar Jun 28 '24 17:06 elmbeech