ej1 sin segmentation fault