error opening file and segmentation fault in the user space helper