I would say that most probably you compiled the src folder of StaMPS using a newer C compiler. it should be around in the forum already the solution.
One of those : Segmentation Fault (core dumped) error during mt_prep_snap - #17 by ABraun
Let me know.
Best