Accessing e1 or e2 on messages raising segmentation fault