Greetings, I’m trying to build the latest stable LAMMPS on our computer cluster, by adapting the following easybuild configuration to our current toolchain (based on GCC 13.1.0).
LAMMPS-22Jul2025_update4-foss-2025b-kokkos.eb
Output from LAMMPS version:
Large-scale Atomic/Molecular Massively Parallel Simulator - 22 Jul 2025 - Update 4
OS: Linux "Red Hat Enterprise Linux 8.6 (Ootpa)" 4.18.0-372.32.1.el8_6.x86_64 x86_64
Compiler: GNU C++ 13.1.0 with OpenMP 4.5
C++ standard: C++17
Embedded fmt library version: 10.2.0
Embedded JSON class version: 3.12.0
MPI v3.1: Open MPI v4.1.4, package: Open MPI user Distribution, ident: 4.1.4, repo rev: v4.1.4, May 26, 2022
During the testing phase of the build, a number of unit tests are crashing due to an issue with exception handling. This is the command that kicks off the tests:
ctest --no-tests=error -LE unstable -E “TestMliapPyUnified|AtomicPairStyle:meam_spline|KSpaceStyle:scafacos.\*”
The first test that fails is InvalidFlag:
Start 3: InvalidFlag
3/571 Test #3: InvalidFlag .....................................***Exception: SegFault 0.76 sec
ERROR: Invalid command-line argument: -xxx (src/lammps.cpp:486)
[hpcl003:3173099:0:3173099] Caught signal 11 (Segmentation fault: address not mapped to object at address (nil))
==== backtrace (tid:3173099) ====
0 0x0000000000012ce0 __funlockfile() :0
1 0x000000000001d2c8 base_from_object() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libgcc/../../../libgcc/unwind-dw2-fde.c:319
2 0x000000000001d2c8 linear_search_fdes() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libgcc/../../../libgcc/unwind-dw2-fde.c:969
3 0x000000000001df41 find_fde_tail() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:519
4 0x000000000001df41 _Unwind_Find_FDE() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:573
5 0x00000000000195ca uw_frame_state_for() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libgcc/../../../libgcc/unwind-dw2.c:1005
6 0x000000000001b03d _Unwind_RaiseException() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libgcc/../../../libgcc/unwind.inc:104
7 0x00000000000bc62b __cxa_throw() /scratch/easybuild/build/GCCcore/13.1.0/system-system/gcc-13.1.0/stage3_obj/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/../../../../libstdc++-v3/libsupc++/eh_throw.cc:93
8 0x0000000000c450d1 LAMMPS_NS::Error::universe_all() error.cpp:0
=================================
[hpcl003:3173099] *** Process received signal ***
[hpcl003:3173099] Signal: Segmentation fault (11)
[hpcl003:3173099] Signal code: (-6)
[hpcl003:3173099] Failing at address: 0x699700306aeb
[hpcl003:3173099] [ 0] /lib64/libpthread.so.0(+0x12ce0)[0x15554e60ace0]
[hpcl003:3173099] [ 1] /cm/shared/uniol/sw/zen4/13.1/GCCcore/13.1.0/lib64/libgcc_s.so.1(+0x1d2c8)[0x15554e21a2c8]
[hpcl003:3173099] [ 2] /cm/shared/uniol/sw/zen4/13.1/GCCcore/13.1.0/lib64/libgcc_s.so.1(_Unwind_Find_FDE+0xd1)[0x15554e21af41]
[hpcl003:3173099] [ 3] /cm/shared/uniol/sw/zen4/13.1/GCCcore/13.1.0/lib64/libgcc_s.so.1(+0x195ca)[0x15554e2165ca]
[hpcl003:3173099] [ 4] /cm/shared/uniol/sw/zen4/13.1/GCCcore/13.1.0/lib64/libgcc_s.so.1(_Unwind_RaiseException+0x1cd)[0x15554e21803d]
[hpcl003:3173099] [ 5] /cm/shared/uniol/sw/zen4/13.1/GCCcore/13.1.0/lib64/libstdc++.so.6(__cxa_throw+0x3b)[0x15554f6bf62b]
[hpcl003:3173099] [ 6] /scratch/easybuild/build/LAMMPS/22Jul2025_update4/foss-2023a-kokkos-test/easybuild_obj/liblammps.so.0(+0xc450d1)[0x1555506b00d1]
[hpcl003:3173099] *** End of error message ***
Besides #3, the following tests report SegFault:
- #4: Tokenizer
- #7: ArgUtils
- #8: Utils
- #10: Lepton
- #11: FmtLib
- #14: AtomStyles
- #16: InputConvert
- #17: MoleculeFile
- #19: PotentialFileReader
- #21: TextFileReader
- #22: FileOperations
- #23: DumpAtom
- #24: DumpAtomGZ
- #25: DumpCustomGZ
- #26: DumpCfgGZ
- #27: DumpLocalGZ
- #28: DumpXYZGZ
- #35: DumpCfg
- #38: SimpleCommands
- #39: LatticeRegion
- #40: Groups
- #41: Regions
- #42: DeleteAtoms
- #43: SetProperty
- #44: Labelmap
- #45: Variables
- #46: KimCommands
- #47: ResetAtoms
- #48: ComputeGlobal
- #54: LibraryProperties
- #55: LibraryObjects
- #65: AdvancedUtils
- #66: ErrorClass
- #72: FortranProperties
- #84: PythonOpen
- #85: PythonCommands
- #86: PythonNumpy
- #167: MolPairStyle:lepton
Despite these Segmentation Faults in the testing, basic functionality, like running the lowercase examples, seems to work.
At the moment, I do not understand what is causing the SegFaults in the unit tests, so I am not sure what to change to fix the build. Any advice would be appreciated.