Re: kernel memory issue using malloc()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux