help-make
[Top][All Lists]
Advanced

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

Re: make: *** virtual memory exhausted. Stop.


From: Ted Stern
Subject: Re: make: *** virtual memory exhausted. Stop.
Date: Tue, 07 Mar 2006 12:13:29 -0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On 07 Mar 2006 11:57:24 -0800, mathieu lacage wrote:
>
>>>I am looking for a workaround to what appears to be a make 3.80 bug. A
>>>bit of googling turned up this:
>>
>>Based on recommendations from Paul Smith, I added some "alloc(0)"
>>statements in various routines before return (read.c, etc).  This
>>frees up some memory.  But I was still not able to eliminate the
>>problem entirely.
>>  
>>
>
> I believe my problem is probably different: it happens only when a
> function defines a target with a long (where long seems to be very
> variable) dependency list and the fonction is evaled in a foreach.
>
> As a side note, this does not happen on pretty much every linux
> distribution: the make patches they have integrated seem to fix this
> issue.
>
> Mathieu
>

Nevertheless, I wonder if there might be an alloca-type memory leak
going on here.  I see that Paul added some 'alloca (0);' lines in
read.c.  You could try 3.81rc1, edit function.c,  and add 'alloca
(0);' just before the 'free (result);' line in func_foreach.  That's
probably overkill, as well as a serious slowdown, but it could give
Paul a better idea about how to workaround the problem.

Ted
-- 
 dodecatheon at gmail dot com
 Frango ut patefaciam -- I break so that I may reveal




reply via email to

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