style_body.h missing in lammps-1Feb13

There still seems to be a bug with the new BODY package. When I run
the attached test system, I get the following error: *** glibc
detected *** ./lmp_openmpi: double free or corruption (out):
0x0000000002026ea0 ***.

Valgrind complains about replicate.cpp line 354, and when I remove the
replicate command in the input script, the error goes away. Here is
output from Valgrind:

==7081== Conditional jump or move depends on uninitialised value(s)
==7081== at 0x61F6F3: LAMMPS_NS::Memory::sfree(void*) (memory.cpp:77)
==7081== by 0x4167A4: LAMMPS_NS::atom::~Atom() (memory.h:78)
==7081== by 0x416BE8: LAMMPS_NS::atom::~Atom() (atom.cpp:243)
==7081== by 0x7B9E9C: LAMMPS_NS::Replicate::command(int, char**)
(replicate.cpp:354)
==7081== by 0x60F42D: LAMMPS_NS::Input::execute_command() (replicate.h:16)
==7081== by 0x60FFB5: LAMMPS_NS::Input::file() (input.cpp:201)
==7081== by 0x61CB78: main (main.cpp:30)

==7081== Conditional jump or move depends on uninitialised value(s)
==7081== at 0x61F6F3: LAMMPS_NS::Memory::sfree(void*) (memory.cpp:77)
==7081== by 0x4167A4: LAMMPS_NS::atom::~Atom() (memory.h:78)
==7081== by 0x416BE8: LAMMPS_NS::atom::~Atom() (atom.cpp:243)
==7081== by 0x61604E: LAMMPS_NS::LAMMPS::destroy() (lammps.cpp:528)
==7081== by 0x617558: LAMMPS_NS::LAMMPS::~LAMMPS() (lammps.cpp:422)
==7081== by 0x61CB80: main (main.cpp:31)

Hope that helps,

Stan

data.spce (414 KB)

in.spce (629 Bytes)