Buffer overflow when importing .stl files

Submitted by subhodhk on Tue, 06/03/2014 - 16:37

Hi

I get a buffer overflow error when the LIGGGHTS input script tries to import .stl files. I have LIGGGHTS 3.0.1 installed on my computer and what it is strange is that the same mesh file is working fine in another computer which has LIGGGHTS 2.3.8 installed. I am not sure what I am doing wrong. Any ideas on why this is happening and how I can proceed?

Here is the complete error message:

LIGGGHTS (Version LIGGGHTS-PUBLIC 3.0.1, compiled 2014-05-22-17:40:12 by subhodh based on LAMMPS 23 Nov 2013)
Created orthogonal box = (-0.056 -0.01 -0.104) to (0.056 0.454 0.105)
1 by 1 by 1 MPI processor grid
Fix particledistribution/discrete (id pdd1): distribution based on mass%:
pts1: d=2.000000e-03 (max. bounding sphere) mass%=100.000000%
Fix particledistribution/discrete (id pdd1): distribution based on number%:
pts1: d=2.000000e-03 (max. bounding sphere) number%=100.000000%
Fix particledistribution/discrete (id pdd2): distribution based on mass%:
pts2: d=2.500000e-03 (max. bounding sphere) mass%=100.000000%
Fix particledistribution/discrete (id pdd2): distribution based on number%:
pts2: d=2.500000e-03 (max. bounding sphere) number%=100.000000%

Reading STL file 'meshes/Blade_mixer.stl'
*** buffer overflow detected ***: /home/subhodh/Documents/liggghts/src/lmp_fedora terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f81b8f8008c]
/lib/x86_64-linux-gnu/libc.so.6(+0x111020)[0x7f81b8f7f020]
/lib/x86_64-linux-gnu/libc.so.6(+0x1104a9)[0x7f81b8f7e4a9]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdb)[0x7f81b8eeaa3b]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x37cf)[0x7f81b8ebaf4f]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x7f81b8f7e544]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f81b8f7e48d]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN8Settings14parseArgumentsEiPPc+0x182)[0x86ab02]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS15FixWallGranBaseIN13ContactModels12ContactModelINS1_9GranStyleILi3ELi1ELi0ELi0ELi0EEEEEE13init_granularEv+0x159)[0x942e59]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS11FixWallGran4initEv+0xe3)[0x7ece63]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS6Modify4initEv+0x248)[0xa19c68]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS6LAMMPS4initEv+0x33)[0x9e5fb3]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS3Run7commandEiPPc+0x7a1)[0xafe2c1]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS5Input15command_creatorINS_3RunEEEvPNS_6LAMMPSEiPPc+0x26)[0x9db916]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS5Input15execute_commandEv+0x7c7)[0x9d9677]
/home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS5Input4fileEv+0x506)[0x9da186]
/home/subhodh/Documents/liggghts/src/lmp_fedora(main+0x46)[0x582786]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f81b8e8fde5]
/home/subhodh/Documents/liggghts/src/lmp_fedora[0x583bbf]
======= Memory map: ========
00400000-00c8c000 r-xp 00000000 08:05 1053124 /home/subhodh/Documents/liggghts/src/lmp_fedora
00e8c000-00e8d000 r--p 0088c000 08:05 1053124 /home/subhodh/Documents/liggghts/src/lmp_fedora
00e8d000-00e90000 rw-p 0088d000 08:05 1053124 /home/subhodh/Documents/liggghts/src/lmp_fedora
00e90000-00e94000 rw-p 00000000 00:00 0
02bbd000-02ec0000 rw-p 00000000 00:00 0 [heap]
7f81b33d2000-7f81b33df000 r-xp 00000000 08:05 1194010 /usr/lib/openmpi/lib/openmpi/mca_osc_rdma.so
7f81b33df000-7f81b35de000 ---p 0000d000 08:05 1194010 /usr/lib/openmpi/lib/openmpi/mca_osc_rdma.so
7f81b35de000-7f81b35df000 r--p 0000c000 08:05 1194010 /usr/lib/openmpi/lib/openmpi/mca_osc_rdma.so
7f81b35df000-7f81b35e0000 rw-p 0000d000 08:05 1194010 /usr/lib/openmpi/lib/openmpi/mca_osc_rdma.so
7f81b35e0000-7f81b35ea000 r-xp 00000000 08:05 1194053 /usr/lib/openmpi/lib/openmpi/mca_osc_pt2pt.so
7f81b35ea000-7f81b37e9000 ---p 0000a000 08:05 1194053 /usr/lib/openmpi/lib/openmpi/mca_osc_pt2pt.so
7f81b37e9000-7f81b37ea000 r--p 00009000 08:05 1194053 /usr/lib/openmpi/lib/openmpi/mca_osc_pt2pt.so
7f81b37ea000-7f81b37eb000 rw-p 0000a000 08:05 1194053 /usr/lib/openmpi/lib/openmpi/mca_osc_pt2pt.so
7f81b37eb000-7f81b3804000 r-xp 00000000 08:05 1194012 /usr/lib/openmpi/lib/openmpi/mca_coll_tuned.so
7f81b3804000-7f81b3a03000 ---p 00019000 08:05 1194012 /usr/lib/openmpi/lib/openmpi/mca_coll_tuned.so
7f81b3a03000-7f81b3a04000 r--p 00018000 08:05 1194012 /usr/lib/openmpi/lib/openmpi/mca_coll_tuned.so
7f81b3a04000-7f81b3a05000 rw-p 00019000 08:05 1194012 /usr/lib/openmpi/lib/openmpi/mca_coll_tuned.so
7f81b3a05000-7f81b3a08000 r-xp 00000000 08:05 1194055 /usr/lib/openmpi/lib/openmpi/mca_coll_sync.so
7f81b3a08000-7f81b3c07000 ---p 00003000 08:05 1194055 /usr/lib/openmpi/lib/openmpi/mca_coll_sync.so
7f81b3c07000-7f81b3c08000 r--p 00002000 08:05 1194055 /usr/lib/openmpi/lib/openmpi/mca_coll_sync.so
7f81b3c08000-7f81b3c09000 rw-p 00003000 08:05 1194055 /usr/lib/openmpi/lib/openmpi/mca_coll_sync.so
7f81b3e0f000-7f81b3e11000 r-xp 00000000 08:05 1194024 /usr/lib/openmpi/lib/openmpi/mca_coll_self.so
7f81b3e11000-7f81b4010000 ---p 00002000 08:05 1194024 /usr/lib/openmpi/lib/openmpi/mca_coll_self.so
7f81b4010000-7f81b4011000 r--p 00001000 08:05 1194024 /usr/lib/openmpi/lib/openmpi/mca_coll_self.so
7f81b4011000-7f81b4012000 rw-p 00002000 08:05 1194024 /usr/lib/openmpi/lib/openmpi/mca_coll_self.so
7f81b4012000-7f81b4015000 r-xp 00000000 08:05 1194062 /usr/lib/openmpi/lib/openmpi/mca_coll_inter.so
7f81b4015000-7f81b4214000 ---p 00003000 08:05 1194062 /usr/lib/openmpi/lib/openmpi/mca_coll_inter.so
7f81b4214000-7f81b4215000 r--p 00002000 08:05 1194062 /usr/lib/openmpi/lib/openmpi/mca_coll_inter.so
7f81b4215000-7f81b4216000 rw-p 00003000 08:05 1194062 /usr/lib/openmpi/lib/openmpi/mca_coll_inter.so
7f81b4216000-7f81b421a000 r-xp 00000000 08:05 1194037 /usr/lib/openmpi/lib/openmpi/mca_coll_hierarch.so
7f81b421a000-7f81b4419000 ---p 00004000 08:05 1194037 /usr/lib/openmpi/lib/openmpi/mca_coll_hierarch.so
7f81b4419000-7f81b441a000 r--p 00003000 08:05 1194037 /usr/lib/openmpi/lib/openmpi/mca_coll_hierarch.so
7f81b441a000-7f81b441b000 rw-p 00004000 08:05 1194037 /usr/lib/openmpi/lib/openmpi/mca_coll_hierarch.so
7f81b441b000-7f81b4423000 r-xp 00000000 08:05 1194061 /usr/lib/openmpi/lib/openmpi/mca_coll_basic.so
7f81b4423000-7f81b4622000 ---p 00008000 08:05 1194061 /usr/lib/openmpi/lib/openmpi/mca_coll_basic.so
7f81b4622000-7f81b4623000 r--p 00007000 08:05 1194061 /usr/lib/openmpi/lib/openmpi/mca_coll_basic.so
7f81b4623000-7f81b4624000 rw-p 00008000 08:05 1194061 /usr/lib/openmpi/lib/openmpi/mca_coll_basic.so
7f81b4624000-7f81b462f000 r-xp 00000000 08:05 1194001 /usr/lib/openmpi/lib/openmpi/mca_btl_tcp.so
7f81b462f000-7f81b482e000 ---p 0000b000 08:05 1194001 /usr/lib/openmpi/lib/openmpi/mca_btl_tcp.so
7f81b482e000-7f81b482f000 r--p 0000a000 08:05 1194001 /usr/lib/openmpi/lib/openmpi/mca_btl_tcp.so
7f81b482f000-7f81b4830000 rw-p 0000b000 08:05 1194001 /usr/lib/openmpi/lib/openmpi/mca_btl_tcp.so
7f81b4830000-7f81b48b0000 rw-p 00000000 00:00 0
7f81b48b0000-7f81b48b5000 r-xp 00000000 08:05 1193997 /usr/lib/openmpi/lib/openmpi/mca_btl_sm.so
7f81b48b5000-7f81b4ab4000 ---p 00005000 08:05 1193997 /usr/lib/openmpi/lib/openmpi/mca_btl_sm.so
7f81b4ab4000-7f81b4ab5000 r--p 00004000 08:05 1193997 /usr/lib/openmpi/lib/openmpi/mca_btl_sm.so
7f81b4ab5000-7f81b4ab6000 rw-p 00005000 08:05 1193997 /usr/lib/openmpi/lib/openmpi/mca_btl_sm.so
7f81b4ab6000-7f81b4ab9000 r-xp 00000000 08:05 1194063 /usr/lib/openmpi/lib/openmpi/mca_btl_self.so
7f81b4ab9000-7f81b4cb8000 ---p 00003000 08:05 1194063 /usr/lib/openmpi/lib/openmpi/mca_btl_self.so
7f81b4cb8000-7f81b4cb9000 r--p 00002000 08:05 1194063 /usr/lib/openmpi/lib/openmpi/mca_btl_self.so
7f81b4cb9000-7f81b4cba000 rw-p 00003000 08:05 1194063 /usr/lib/openmpi/lib/openmpi/mca_btl_self.so
7f81b52f5000-7f81b52f9000 r-xp 00000000 08:05 1193999 /usr/lib/openmpi/lib/openmpi/mca_bml_r2.so
7f81b52f9000-7f81b54f8000 ---p 00004000 08:05 1193999 /usr/lib/openmpi/lib/openmpi/mca_bml_r2.so
7f81b54f8000-7f81b54f9000 r--p 00003000 08:05 1193999 /usr/lib/openmpi/lib/openmpi/mca_bml_r2.so
7f81b54f9000-7f81b54fa000 rw-p 00004000 08:05 1193999 /usr/lib/openmpi/lib/openmpi/mca_bml_r2.so
7f81b56fe000-7f81b5714000 r-xp 00000000 08:05 1194006 /usr/lib/openmpi/lib/openmpi/mca_pml_ob1.so
7f81b5714000-7f81b5913000 ---p 00016000 08:05 1194006 /usr/lib/openmpi/lib/openmpi/mca_pml_ob1.so
7f81b5913000-7f81b5914000 r--p 00015000 08:05 1194006 /usr/lib/openmpi/lib/openmpi/mca_pml_ob1.so
7f81b5914000-7f81b5915000 rw-p 00016000 08:05 1194006 /usr/lib/openmpi/lib/openmpi/mca_pml_ob1.so
7f81b5932000-7f81b5933000 r-xp 00000000 08:05 1193994 /usr/lib/openmpi/lib/openmpi/mca_topo_unity.so
7f81b5933000-7f81b5b32000 ---p 00001000 08:05 1193994 /usr/lib/openmpi/lib/openmpi/mca_topo_unity.so
7f81b5b32000-7f81b5b33000 r--p 00000000 08:05 1193994 /usr/lib/openmpi/lib/openmpi/mca_topo_unity.so
7f81b5b33000-7f81b5b34000 rw-p 00001000 08:05 1193994 /usr/lib/openmpi/lib/openmpi/mca_topo_unity.so
7f81b5b34000-7f81b5b39000 r-xp 00000000 08:05 1194046 /usr/lib/openmpi/lib/openmpi/mca_dpm_orte.so
7f81b5b39000-7f81b5d38000 ---p 00005000 08:05 1194046 /usr/lib/openmpi/lib/openmpi/mca_dpm_orte.so
7f81b5d38000-7f81b5d39000 r--p 00004000 08:05 1194046 /usr/lib/openmpi/lib/openmpi/mca_dpm_orte.so
7f81b5d39000-7f81b5d3a000 rw-p 00005000 08:05 1194046 /usr/lib/openmpi/lib/openmpi/mca_dpm_orte.so
7f81b5d3a000-7f81b5d3d000 r-xp 00000000 08:05 1194007 /usr/lib/openmpi/lib/openmpi/mca_pubsub_orte.so
7f81b5d3d000-7f81b5f3c000 ---p 00003000 08:05 1194007 /usr/lib/openmpi/lib/openmpi/mca_pubsub_orte.so
7f81b5f3c000-7f81b5f3d000 r--p 00002000 08:05 1194007 /usr/lib/openmpi/lib/openmpi/mca_pubsub_orte.so
7f81b5f3d000-7f81b5f3e000 rw-p 00003000 08:05 1194007 /usr/lib/openmpi/lib/openmpi/mca_pubsub_orte.so
7f81b5f3e000-7f81b5f40000 r-xp 00000000 08:05 1193984 /usr/lib/openmpi/lib/libmca_common_sm.so.1.0.2
7f81b5f40000-7f81b613f000 ---p 00002000 08:05 1193984 /usr/lib/openmpi/lib/libmca_common_sm.so.1.0.2
7f81b613f000-7f81b6140000 r--p 00001000 08:05 1193984 /usr/lib/openmpi/lib/libmca_common_sm.so.1.0.2
7f81b6140000-7f81b6141000 rw-p 00002000 08:05 1193984 /usr/lib/openmpi/lib/libmca_common_sm.so.1.0.2
7f81b6141000-7f81b6143000 r-xp 00000000 08:05 1194050 /usr/lib/openmpi/lib/openmpi/mca_mpool_sm.so
7f81b6143000-7f81b6342000 ---p 00002000 08:05 1194050 /usr/lib/openmpi/lib/openmpi/mca_mpool_sm.so
7f81b6342000-7f81b6343000 r--p 00001000 08:05 1194050 /usr/lib/openmpi/lib/openmpi/mca_mpool_sm.so
7f81b6343000-7f81b6344000 rw-p 00002000 08:05 1194050 /usr/lib/openmpi/lib/openmpi/mca_mpool_sm.so
7f81b6344000-7f81b6347000 r-xp 00000000 08:05 1194045 /usr/lib/openmpi/lib/openmpi/mca_mpool_rdma.so
7f81b6347000-7f81b6546000 ---p 00003000 08:05 1194045 /usr/lib/openmpi/lib/openmpi/mca_mpool_rdma.so
7f81b6546000-7f81b6547000 r--p 00002000 08:05 1194045 /usr/lib/openmpi/lib/openmpi/mca_mpool_rdma.so
7f81b6547000-7f81b6548000 rw-p 00003000 08:05 1194045 /usr/lib/openmpi/lib/openmpi/mca_mpool_rdma.so
7f81b6548000-7f81b6549000 r-xp 00000000 08:05 1194054 /usr/lib/openmpi/lib/openmpi/mca_mpool_fake.so
7f81b6549000-7f81b6748000 ---p 00001000 08:05 1194054 /usr/lib/openmpi/lib/openmpi/mca_mpool_fake.so
7f81b6748000-7f81b6749000 r--p 00000000 08:05 1194054 /usr/lib/openmpi/lib/openmpi/mca_mpool_fake.so
7f81b6749000-7f81b674a000 rw-p 00001000 08:05 1194054 /usr/lib/openmpi/lib/openmpi/mca_mpool_fake.so
7f81b674a000-7f81b674d000 r-xp 00000000 08:05 1194031 /usr/lib/openmpi/lib/openmpi/mca_rcache_vma.so
7f81b674d000-7f81b694c000 ---p 00003000 08:05 1194031 /usr/lib/openmpi/lib/openmpi/mca_rcache_vma.so
7f81b694c000-7f81b694d000 r--p 00002000 08:05 1194031 /usr/lib/openmpi/lib/openmpi/mca_rcache_vma.so
7f81b694d000-7f81b694e000 rw-p 00003000 08:05 1194031 /usr/lib/openmpi/lib/openmpi/mca_rcache_vma.so
7f81b694e000-7f81b6950000 r-xp 00000000 08:05 1194040 /usr/lib/openmpi/lib/openmpi/mca_allocator_bucket.so
7f81b6950000-7f81b6b4f000 ---p 00002000 08:05 1194040 /usr/lib/openmpi/lib/openmpi/mca_allocator_bucket.so
7f81b6b4f000-7f81b6b50000 r--p 00001000 08:05 1194040 /usr/lib/openmpi/lib/openmpi/mca_allocator_bucket.so
7f81b6b50000-7f81b6b51000 rw-p 00002000 08:05 1194040 /usr/lib/openmpi/lib/openmpi/mca_allocator_bucket.so
7f81b6b51000-7f81b6b53000 r-xp 00000000 08:05 1194038 /usr/lib/openmpi/lib/openmpi/mca_allocator_basic.so
7f81b6b53000-7f81b6d52000 ---p 00002000 08:05 1194038 /usr/lib/openmpi/lib/openmpi/mca_allocator_basic.so
7f81b6d52000-7f81b6d53000 r--p 00001000 08:05 1194038 /usr/lib/openmpi/lib/openmpi/mca_allocator_basic.so
7f81b6d53000-7f81b6d54000 rw-p 00002000 08:05 1194038 /usr/lib/openmpi/lib/openmpi/mca_allocator_basic.so
7f81b6d54000-7f81b6d60000 r-xp 00000000 08:05 4984743 /lib/x86_64-linux-gnu/libnss_files-2.17.so
7f81b6d60000-7f81b6f5f000 ---p 0000c000 08:05 4984743 /lib/x86_64-linux-gnu/libnss_files-2.17.so
7f81b6f5f000-7f81b6f60000 r--p 0000b000 08:05 4984743 /lib/x86_64-linux-gnu/libnss_files-2.17.so
7f81b6f60000-7f81b6f61000 rw-p 0000c000 08:05 4984743 /lib/x86_64-linux-gnu/libnss_files-2.17.so
7f81b6f61000-7f81b6f6c000 r-xp 00000000 08:05 4984747 /lib/x86_64-linux-gnu/libnss_nis-2.17.so
7f81b6f6c000-7f81b716b000 ---p 0000b000 08:05 4984747 /lib/x86_64-linux-gnu/libnss_nis-2.17.so
7f81b716b000-7f81b716c000 r--p 0000a000 08:05 4984747 /lib/x86_64-linux-gnu/libnss_nis-2.17.so
7f81b716c000-7f81b716d000 rw-p 0000b000 08:05 4984747 /lib/x86_64-linux-gnu/libnss_nis-2.17.so
7f81b716d000-7f81b7184000 r-xp 00000000 08:05 4984737 /lib/x86_64-linux-gnu/libnsl-2.17.so
7f81b7184000-7f81b7383000 ---p 00017000 08:05 4984737 /lib/x86_64-linux-gnu/libnsl-2.17.so
7f81b7383000-7f81b7384000 r--p 00016000 08:05 4984737 /lib/x86_64-linux-gnu/libnsl-2.17.so
7f81b7384000-7f81b7385000 rw-p 00017000 08:05 4984737 /lib/x86_64-linux-gnu/libnsl-2.17.so
7f81b7385000-7f81b7387000 rw-p 00000000 00:00 0 [LIGGGHTS:13924] *** Process received signal ***
[LIGGGHTS:13924] Signal: Aborted (6)
[LIGGGHTS:13924] Signal code: (-6)
[LIGGGHTS:13924] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfbb0) [0x7f81b9245bb0]
[LIGGGHTS:13924] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f81b8ea4f77]
[LIGGGHTS:13924] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f81b8ea85e8]
[LIGGGHTS:13924] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x744fb) [0x7f81b8ee24fb]
[LIGGGHTS:13924] [ 4] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c) [0x7f81b8f8008c]
[LIGGGHTS:13924] [ 5] /lib/x86_64-linux-gnu/libc.so.6(+0x111020) [0x7f81b8f7f020]
[LIGGGHTS:13924] [ 6] /lib/x86_64-linux-gnu/libc.so.6(+0x1104a9) [0x7f81b8f7e4a9]
[LIGGGHTS:13924] [ 7] /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdb) [0x7f81b8eeaa3b]
[LIGGGHTS:13924] [ 8] /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x37cf) [0x7f81b8ebaf4f]
[LIGGGHTS:13924] [ 9] /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94) [0x7f81b8f7e544]
[LIGGGHTS:13924] [10] /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d) [0x7f81b8f7e48d]
[LIGGGHTS:13924] [11] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN8Settings14parseArgumentsEiPPc+0x182) [0x86ab02]
[LIGGGHTS:13924] [12] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS15FixWallGranBaseIN13ContactModels12ContactModelINS1_9GranStyleILi3ELi1ELi0ELi0ELi0EEEEEE13init_granularEv+0x159) [0x942e59]
[LIGGGHTS:13924] [13] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS11FixWallGran4initEv+0xe3) [0x7ece63]
[LIGGGHTS:13924] [14] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS6Modify4initEv+0x248) [0xa19c68]
[LIGGGHTS:13924] [15] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS6LAMMPS4initEv+0x33) [0x9e5fb3]
[LIGGGHTS:13924] [16] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS3Run7commandEiPPc+0x7a1) [0xafe2c1]
[LIGGGHTS:13924] [17] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS5Input15command_creatorINS_3RunEEEvPNS_6LAMMPSEiPPc+0x26) [0x9db916]
[LIGGGHTS:13924] [18] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS5Input15execute_commandEv+0x7c7) [0x9d9677]
[LIGGGHTS:13924] [19] /home/subhodh/Documents/liggghts/src/lmp_fedora(_ZN9LAMMPS_NS5Input4fileEv+0x506) [0x9da186]
[LIGGGHTS:13924] [20] /home/subhodh/Documents/liggghts/src/lmp_fedora(main+0x46) [0x582786]
[LIGGGHTS:13924] [21] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f81b8e8fde5]
[LIGGGHTS:13924] [22] /home/subhodh/Documents/liggghts/src/lmp_fedora() [0x583bbf]
[LIGGGHTS:13924] *** End of error message ***
Aborted (core dumped)

Thank you.

subhodhk | Fri, 06/06/2014 - 00:45

I realized that this error is not caused by the .stl files. The error is caused because I used: 'rolling_friction cdt' while defining the wall in my input script. That section of my i/p script looks like this:
fix cad1 all mesh/surface file meshes/Blade_mixer.stl heal auto_remove_duplicates precision 1e-9 type 1 scale 1 curvature 1.0e-10
fix cad2 all mesh/surface file meshes/Body_mixer.stl heal auto_remove_duplicates precision 1e-9 type 1 scale 1 curvature 1.0e-10
fix mixer all wall/gran model hertz tangential history mesh n_meshes 2 meshes cad2 cad1 rolling_friction cdt

My script runs well if i do not use the 'rolling_friction cdt' command. I guess there is something wrong with the command in LIGGGHTS 3.0.1

ckloss's picture

ckloss | Fri, 06/06/2014 - 16:30

Hi subhodhk,
I suspect this is related to a bug in the arg parsing which comes up when arguments are provided in the wrong order
Should be fixed by 3.0.2

Christoph

uhelfenstein | Tue, 06/24/2014 - 10:43

Hi

I have tried it in 3.0.2 but the command "rolling_friction cdt" produces also in this version a buffer overflow. Is there a work around?

Thanks,

Urs

subhodhk | Tue, 06/24/2014 - 23:04

Like Uhelfenstein has mentioned, the command 'rolling_friction cdt' is producing buffer overflow error even in Liggghts 3.0.2

ckloss's picture

ckloss | Thu, 06/26/2014 - 12:45

Hi,

can you share an example reproducing the error? I'll then try to have a look before the next release

Best wishes
Christoph

subhodhk | Fri, 06/27/2014 - 23:00

Hi Christoph

I have attached the example files that produce buffer overflow error. It's basically one of the tutorial files shared by Chris (cstoltz).

Regards
Subhodh

ckloss's picture

ckloss | Tue, 08/26/2014 - 10:21

Hi,

this was due to the fact that for the fix wall/gran command the order of keywords is important, which was not reflected in the doc correctly. Also, LIGGGHTS should have given an error message instead of a buffer overflow error.
We had already fixed the error before, with our pre-release version it works fine

So both things will be fixed with 3.0.3

Christoph