[Top][All Lists]

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

Re: Malloc can not allocate memory

From: Roman Fleysher
Subject: Re: Malloc can not allocate memory
Date: Sun, 19 Jan 2003 19:28:00 -0500

Dear Wolfram,

I am afraid to answer, I use glibc version 2.1.3-24. Is this the real
answer to my problem? At the point of failure, I try to allocate about
12KB. As to the total memory (780 MB), this is the size of arena reported
by mallinfo, thus I presume, it includes all. Here is the maps file:

08048000-08137000 r-xp 00000000 00:0a 7258352    /..../Background_iterate.exe
08137000-08199000 rw-p 000ee000 00:0a 7258352    /..../Background_iterate.exe
08199000-3f158000 rwxp 00000000 00:00 0
40000000-4043a000 rw-p 0000c000 00:00 0
bfe5a000-c0000000 rwxp ffe63000 00:00 0

it was obtained few seconds before failure.

Thank you for your help,


On Sun, 19 Jan 2003, Wolfram Gloger wrote:

> > I have a problem, where malloc() can not allocate memory, while I know it
> > is physically available on the system (I consume about 780 MB out of 2GB).
> > This is reported by both NULL pointer and errno variable.
> What glibc version?  (Please only use glibc-2.2.5 or later.)
> How large is the chunk that you are trying to allocate and which fails?
> Is 780MB the total size handed out to the application, including
> mmap()ed chunks?  (There may be much more memory actually allocated
> already.)
> Please send the content of /proc/<pid>/maps when the problem occurs.
> (Though I may not be able to reply over the next few days.)
> Regards,
> Wolfram.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]