Problem on save superquadric state

Submitted by jachueire on Fri, 10/23/2020 - 10:29

Hello !

I've been using LIGGGHTS for around a year now mainly with spherical particles. I want to create a '2D' model using cylindrical particles, it would be a 3D plan symmetrical model. To do so I created superquadric particles with N1=8 and N2=2. But whenever I try to use the command 'write_data' to save state the program crashes. I get the following error :

write_data data.*
System init for write_data ...
double free or corruption (!prev)
[geom304-r001:29103] *** Process received signal ***
[geom304-r001:29103] Signal: Aborted (6)
[geom304-r001:29103] Signal code: (-6)
[geom304-r001:29103] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7f765302b8a0]
[geom304-r001:29103] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f7652c66f47]
[geom304-r001:29103] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f7652c688b1]
[geom304-r001:29103] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x89907)[0x7f7652cb1907]
[geom304-r001:29103] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x9097a)[0x7f7652cb897a]
[geom304-r001:29103] [ 5] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x534)[0x7f7652cbfef4]
[geom304-r001:29103] [ 6] lmp_auto(+0x4a2549)[0x55dd35dc8549]
[geom304-r001:29103] [ 7] lmp_auto(+0x4a497a)[0x55dd35dca97a]
[geom304-r001:29103] [ 8] lmp_auto(+0x4a4de5)[0x55dd35dcade5]
[geom304-r001:29103] [ 9] lmp_auto(+0x1826ce)[0x55dd35aa86ce]
[geom304-r001:29103] [10] lmp_auto(+0x1805c9)[0x55dd35aa65c9]
[geom304-r001:29103] [11] lmp_auto(+0x180e26)[0x55dd35aa6e26]
[geom304-r001:29103] [12] lmp_auto(+0x8bd4c)[0x55dd359b1d4c]
[geom304-r001:29103] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_maindouble free or corruption (!prev)
[geom304-r001:29104] *** Process received signal ***
[geom304-r001:29104] Signal: Aborted (6)
[geom304-r001:29104] Signal code: (-6)
+0xe7)[0x7f7652c49b97]
[geom304-r001:29103] [14] lmp_auto(+0x8ceea)[0x55dd359b2eea]
[geom304-r001:29103] *** End of error message ***
[geom304-r001:29104] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x128a0)[0x7f553ddbc8a0]
[geom304-r001:29104] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f553d9f7f47]
[geom304-r001:29104] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f553d9f98b1]
[geom304-r001:29104] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x89907)[0x7f553da42907]
[geom304-r001:29104] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x9097a)[0x7f553da4997a]
[geom304-r001:29104] [ 5] /lib/x86_64-linux-gnu/libc.so.6(cfree+0x534)[0x7f553da50ef4]
[geom304-r001:29104] [ 6] lmp_auto(+0x4a2549)[0x55fe2a218549]
[geom304-r001:29104] [ 7] lmp_auto(+0x4a497a)[0x55fe2a21a97a]
[geom304-r001:29104] [ 8] lmp_auto(+0x4a4de5)[0x55fe2a21ade5]
[geom304-r001:29104] [ 9] lmp_auto(+0x1826ce)[0x55fe29ef86ce]
[geom304-r001:29104] [10] lmp_auto(+0x1805c9)[0x55fe29ef65c9]
[geom304-r001:29104] [11] lmp_auto(+0x180e26)[0x55fe29ef6e26]
[geom304-r001:29104] [12] lmp_auto(+0x8bd4c)[0x55fe29e01d4c]
[geom304-r001:29104] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7f553d9dab97]
[geom304-r001:29104] [14] lmp_auto(+0x8ceea)[0x55fe29e02eea]
[geom304-r001:29104] *** End of error message ***

SIGINT/SIGTERM caught - Writing restart on next occasion and quitting after that.

Does anyone knows how to fix it?

Thanks in advance,
GONCALVES Joao
PhD Student at INSA de Lyon - France

yifan | Tue, 08/22/2023 - 16:35

"write_restart" can do what you want, but I haven't figured out why write_data can not.