A core-dump with ILL is a signature that your CPU is not supporting this. If you are running in a virtual machine and the underlying host supports AVX then it is likely the hypervisor or vm require further configuration.
You can run this to check if the cpu grep -qm1 '^flags.*avx' /proc/cpuinfo && echo OK || echo NOT OK