valgrind is a very useful memory debugger which can be used to find segfaults and other memory errors.
you can run it on ubuntu by
valgrind liggghts < in.script &> LOG
this will print debugging information into the LOG file. if you compile LIGGGHTS with the '-d' flag, it will also show you the code line which causes the trouble. if running in parallel, you should use
mpirun -np X valgrind liggghts < in.script &> LOG
Christoph