Mounir Bakkali wrote: > Hi, > > Well, don't worry, I handle errors a little bit bellow ;-) > > My question is that I don't understand why when > calling malloc it gives me a "segmentation fault" > while there is still a LOT of available memory.... Segmentation faults are caused by a process reading or writing to memory that the process does not have permission to access, regardless of how much memory is available. I suggest you explore further with a command line debugger such as gdb. William -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/