Without more info it's hard to know what's going on.

You can run `gdb` and then dissassemble the faulty instruction.

Or run strace and see where it triggers the segmentation fault.