Re: kernel memory issue using malloc()

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

 



On Sun, 11 Feb 2007, Mounir Bakkali wrote:

> Well the kernel manages the memory and malloc makes a kernel call
> to give you or not the amount of memory requested... so it is a kernel
> issue and therefore my question fits totally in here.

>From what I remember, malloc() is a C library function, which calls
brk() system call after it does some checking or internal book-keeping.

So, this could be one of 3 possibilities:

 1) Your code is wrong or you do something that you shouldn't.

 2) The C library on your system might have a bug in its malloc()
    implementation.

 3) There could be a bug in the kernel brk() implementation or some
    related function or subsystem (eg. memory management) in the kernel
    version that you use.

You could try changeing each individually, and see which solves your
problem. Try your code with a livecd distro that you know has a C
compiler and that has a newer C library/kernel.

Good luck,

Srdjan

--
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