in reply to getting segmentation fault core dumped when I am running
Most likely you are using a faulty (version of) an XS module. Maybe that module was installed using the wrong version (or the wrong parameters) to the C compiler.