got 4 entries before seg fault