Segmentation fault resolved. BUG with & in function"read".