Hi @sonicrules1234 and welcome to the julia discourse! From the stacktrace you posted it’s not possible to say why you’re getting a segmentation fault. Please see Please read: make it easier to help you, for some tips on how to add more information to your post so we can help you track down your problem.
Without knowing more, one question I have is, are you able to run the examples in the PackageCompiler documentation? I’m asking because I’m wondering if your problem is just with the specific sysimage you’re trying to build, or if you’re having trouble getting PackageCompiler to run at all. Also, which platform are you on (e.g. Linux, Windows)?