Seg fault while reading ESA