gran/hooke/history/stiffness crash

Submitted by joesatch on Tue, 07/03/2012 - 10:52

Hi,

I am trying this out this pair style:

pair_style gran/hooke/history/stiffness
pair_coeff * *
fix m1 all property/global kn peratomtypepair 1 1.e8
fix m2 all property/global kt peratomtypepair 1 1.e8
fix m3 all property/global gamman peratomtypepair 1 0.1
fix m4 all property/global gammat peratomtypepair 1 0.1
fix m5 all property/global coefficientFriction peratomtypepair 1 0. # DOES NOT WORK!

The last property causes this crash:

lmp_mac_mpi(2028) malloc: *** error for object 0x10066c230: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
[MacBook-Pro:02028] *** Process received signal ***
[MacBook-Pro:02028] Signal: Abort trap (6)
[MacBook-Pro:02028] Signal code: (0)
[MacBook-Pro:02028] [ 0] 2 libSystem.B.dylib 0x00007fff852181ba _sigtramp + 26
[MacBook-Pro:02028] [ 1] 3 ??? 0x0000000100646970 0x0 + 4301547888
[MacBook-Pro:02028] [ 2] 4 libSystem.B.dylib 0x00007fff851be195 free + 128
[MacBook-Pro:02028] [ 3] 5 lmp_mac_mpi 0x000000010013a83f _ZN9LAMMPS_NS6Memory5sfreeEPv + 17
[MacBook-Pro:02028] [ 4] 6 lmp_mac_mpi 0x0000000100184780 _ZN9LAMMPS_NS20PairGranHookeHistoryD2Ev + 228
[MacBook-Pro:02028] [ 5] 7 lmp_mac_mpi 0x00000001001863f0 _ZN9LAMMPS_NS26PairGranHookeHistorySimpleD0Ev + 354
[MacBook-Pro:02028] [ 6] 8 lmp_mac_mpi 0x000000010011b8d2 _ZN9LAMMPS_NS5ForceD0Ev + 142
[MacBook-Pro:02028] [ 7] 9 lmp_mac_mpi 0x0000000100132362 _ZN9LAMMPS_NS6LAMMPS7destroyEv + 72
[MacBook-Pro:02028] [ 8] 10 lmp_mac_mpi 0x0000000100133f75 _ZN9LAMMPS_NS6LAMMPSD2Ev + 17
[MacBook-Pro:02028] [ 9] 11 lmp_mac_mpi 0x000000010013405f _ZN9LAMMPS_NS6LAMMPSD1Ev + 9
[MacBook-Pro:02028] [10] 12 lmp_mac_mpi 0x0000000100138365 main + 110
[MacBook-Pro:02028] [11] 13 lmp_mac_mpi 0x0000000100006790 start + 52
[MacBook-Pro:02028] [12] 14 ??? 0x0000000000000001 0x0 + 1
[MacBook-Pro:02028] *** End of error message ***
Abort trap

I have created a small example to illustrate this problem. See attached file.

Any ideas? I downloaded the version of LIGGGHTS directly from this website just several days ago.

Thanks,
Joe

AttachmentSize
Binary Data test.tar_.gz1.69 KB

joesatch | Tue, 07/03/2012 - 10:58

I used the version associated with this compressed file:

LIGGGHTS_2p0p1.tar.gz

on this website. This is v2.0.1, I think, from the extension.

Thanks,
Joe

joesatch | Wed, 07/04/2012 - 11:51

Hi, thanks. FYI, the run still manages to dump the output before the crash happens, but I haven't checked the validity of the solution yet.

Joe

ckloss's picture

ckloss | Thu, 07/05/2012 - 11:39

The simulation should actually run through b/c the issue is in the destructor only...
Anyway, will be fixed in the next release 2.0.2, presumably tommorrow!

Cheers, Christoph