Changing mmap to sizeof(struct sem)
Adding semaphore's attributes
Tracing error
Adding ftruncate
Investigating SIGSEGV