Issue installing x-pack with logstash 5.2.1

I also had similar issue before. I used to receive segmentation fault error after a very long time during xpack installation. Link to the issue here. This might help