Segmentation fault - invalid memory reference

Hello guys,
I downloaded the dev version of dl_poly and tried to compile it with py-chemshell. The dl_poly-dev version successfully compiles with Chemshell, however when I run the program it gives SIGSEGV: Segmentation fault - invalid memory reference error. I also tried to use the dl_poly5.1.0 version as well as dl_poly5.0.0, but unfortunately none of them compile (Cannot open module file ‘control_parameter_module.mod’), no matter which compiler I use.
I am wondering if anyone can help me fixing this problem. Any help would be greatly appreciated.

Thanks
Jose

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0 0x7f0aae239ae0 in ???
#1 0x7f0aae238c45 in ???
#2 0x7f0aae03051f in ???
at ./signal/…/sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
#3 0x7f0aae88dd32 in ???
#4 0x7f0aae88af57 in ???
#5 0x7f0aae88b354 in ???
#6 0x7f0aacb48e2d in ???
#7 0x7f0aacb45492 in ???
#8 0x7f0aacb58450 in ???
#9 0x7f0aacb57a67 in ???
#10 0x7f0aaea11d9b in ???
#11 0x7f0aae9a7a0b in ???
#12 0x7f0aaeaf21fe in ???
#13 0x7f0aaea12d07 in ???
#14 0x7f0aae9a2765 in ???
#15 0x7f0aaeaf21fe in ???
#16 0x7f0aaea13207 in ???
#17 0x7f0aaea12d07 in ???
#18 0x7f0aae9a2765 in ???
#19 0x7f0aaeaf21fe in ???
#20 0x7f0aaea12d07 in ???
#21 0x7f0aae9a2765 in ???
#22 0x7f0aaeaf21fe in ???
#23 0x7f0aaea12d07 in ???
#24 0x7f0aae9a2765 in ???
#25 0x7f0aaeaf21fe in ???
#26 0x7f0aaea12d07 in ???
#27 0x7f0aae9a2765 in ???
#28 0x7f0aaeaf21fe in ???
#29 0x7f0aaea12d07 in ???
#30 0x7f0aae9a2765 in ???
#31 0x7f0aaeaf21fe in ???
#32 0x7f0aaea13207 in ???
#33 0x7f0aaea12d07 in ???
#34 0x7f0aae9a2765 in ???
#35 0x7f0aaeaf21fe in ???
#36 0x7f0aae9a2765 in ???
#37 0x7f0aaeaf21fe in ???
#38 0x7f0aae9a5eed in ???
#39 0x7f0aaeaf21fe in ???
#40 0x7f0aaeaed1ad in ???
#41 0x7f0aaeb3bcfc in ???
#42 0x7f0aaeb3cec7 in ???
#43 0x55cc6d045943 in ???
#44 0x55cc6d0455bc in ???
#45 0x55cc6d04539e in ???
#46 0x7f0aae017d8f in __libc_start_call_main
at …/sysdeps/nptl/libc_start_call_main.h:58
#47 0x7f0aae017e3f in __libc_start_main_impl
at …/csu/libc-start.c:392
#48 0x55cc6d0453d4 in ???
#49 0xffffffffffffffff in ???
Segmentation fault (core dumped)
0.464u 0.071s 0:00.63 84.1% 0+0k 0+216io 0pf+0w